Tile and cell
The unit of every page: a rounded surface-1 block on the surface-0 ground, holding one thing.
HTML
<div class="bm-stage">
<section class="bm-tile" style="width:248px" aria-labelledby="t1"><div class="bm-tile__head"><h2 class="bm-sub" id="t1">Recent shots</h2><a class="bm-link" href="#">All shots</a></div><p class="bm-help">One title, one list or reading, one control group.</p><button class="bm-btn">Tare</button></section>
<section class="bm-tile bm-tile--heat" style="width:248px"><div class="bm-tile__head"><span class="bm-eyebrow">Steam boiler</span><span class="bm-chip bm-chip--heat">Heating</span></div><div class="bm-stat"><div class="bm-stat__row"><span class="bm-stat__value">118</span><span class="bm-stat__unit">°C</span><span class="bm-stat__target">/ 145</span></div><div class="bm-segbar bm-segbar--fill bm-segbar--heat" data-segbar="15/20/18"></div></div><button class="bm-btn bm-btn--outline">Cancel</button></section>
<section class="bm-tile bm-tile--primary" style="width:248px"><div class="bm-tile__head"><h2 class="bm-sub">Adaptive v2</h2><span class="bm-chip bm-chip--ink">In use</span></div><span class="bm-data">93° · 36 g · 3 phases</span><p class="bm-help">Preinfuse, bloom, then ramp to 9 bar.</p></section>
<section class="bm-tile" style="width:248px"><div class="bm-tile__head"><h2 class="bm-sub">Shot results</h2><span class="bm-chip">30.2 s</span></div><div class="bm-grid2"><div class="bm-cell"><div class="bm-stat bm-stat--sm"><span class="bm-eyebrow">Yield</span><div class="bm-stat__row"><span class="bm-stat__value">36.1</span><span class="bm-stat__unit">g</span></div></div></div><div class="bm-cell"><div class="bm-stat bm-stat--sm"><span class="bm-eyebrow">Ratio</span><div class="bm-stat__row"><span class="bm-stat__value">1:2.0</span></div></div></div></div></section>
</div>- A tile holds at most one title or eyebrow, one reading or list, and one control group.
- Give a reading tile this order:
eyebrow, numeral with its raisedunitand optional target, then a segment bar. - Put several small readings in cells (
surface-2,radius-lg) inside one tile, two columns,space-2apart. A tile never holds a tile; nest with a cell. - A tile that only acts (the ActionBanner) is the cobalt one. A tile that only links is a ListRow, not a tile.
- No border and no shadow: the tone step from
surface-0tosurface-1is the edge.
Anatomy
section.bm-tile: radius-xl, padding space-5, children space-3 apart. .bm-tile__head is a row with the title or eyebrow on the left and one Chip or link on the right. .bm-cell is surface-2, radius-lg, padded space-3 by space-4. On the grid, tiles sit space-2 apart on a phone and space-3 on desktop, span whole columns and stretch to fill their row.
Tones
| Class | Ground | Only when |
|---|---|---|
| none | surface-1 | Always, except the two cases below. |
bm-tile--heat | heat-soft | Its boiler is heating. It carries a HEATING Chip. |
bm-tile--primary | primary-soft | It is the selected profile. It carries an IN USE Chip. |
A tinted tile always has its Chip, so the tint is never the only sign. On a tint, ink reads 11:1 or better and ink-muted 5.8:1 or better. A default Button inside a tinted tile becomes bm-btn--outline.
Content
- A title is
subheadingon a phone andheadingon desktop, sentence case, at most 24 characters. - When a tile has nothing to show yet, keep its title and put an EmptyState inside. A tile never collapses or disappears while data loads.
Screen reader
A tile with a title is a section labelled by that title (aria-labelledby), so the page reads as a list of regions. A tile with only an eyebrow and a reading is a role="group" with an aria-label.