Shape and layout

Tiles on a bento grid, one tone step per layer, a 4 px spacing grid and generous touch targets for wet hands.

  • Radii. radius-xl for tiles and the ActionBanner, radius-lg for cells, radius-md for inputs and nav items, radius-sm for chips, radius-pill for everything you press. A nested corner is the outer radius minus the padding between them.
  • Bento grid. Tiles pad space-5. Gaps are space-2 on phones and space-3 on desktop. Tiles span whole columns and align on every edge; a tile grows to fill its row rather than leaving a ragged edge.
  • Borders. A hairline in line between list rows and around the floating mode bar. line-strong when the border is the control: every input, select and textarea, a Menu's edge, the outline Button, an unchecked switch. surface-2 on a tile is only 1.1:1, so a field's edge is its border, never its fill.
  • Touch. touch-min 44 px on the web, for every control. Where the drawing is smaller (a 36 px segmented item, the 28 px switch, a text link) the hit area still fills 44 px. control-sm 36 px is for fine pointers only and grows to 44 px on a touch screen. display-touch 56 px on the display, where minus and plus are 60 px discs and the action pill is display-action 64 px tall.
  • Spacing. Padding, gap and margin are always a space-* token: the 4 px grid, with no 6, 10, 14 or 22. A literal length in bundle.css is the size of one drawn part (a knob, a dot, a bar).
  • Narrowest screen. Every page works at 320 px wide with nothing clipped and no sideways scroll. The WebPhone card shows what gives way.
  • Layers. Floating things stack by layer-*: mode bar, menu, scrim, dialog, toast. With no shadows, each separates another way: a Toast and a Tooltip are ink, a Menu has a line-strong hairline, a Dialog sits on the scrim.

Spacing

Every padding, gap and margin is one of these steps on a 4 px grid.

space-14px
space-28px
space-312px
space-416px
space-520px
space-624px
space-832px
space-1040px
space-1248px
space-1664px

Radii

Everything you press is a pill. A nested corner is the outer radius minus the padding between them.

radius-sm8px
radius-md14px
radius-lg20px
radius-xl28px
radius-pill999px
TokenValueUse it for
control-sm36pxSmall buttons in dense desktop rows. Fine pointers only: on a touch screen the same button is control-md tall.
control-md44pxDefault button, input, stepper disc, nav item.
control-lg56pxThe pinned action at the bottom of a form.
banner76pxMinimum height of the action banner.
icon24pxEvery icon on the web.
icon-display36pxIcons inside the display's mode discs; 28px in its small discs and at 12 o'clock.
sidebar248pxDesktop sidebar width.
content-max1280pxMaximum width of the page content.
dialog400pxMaximum width of a dialog, a toast and a notice that floats.
touch-min44pxMinimum hit area of any web control. A control drawn smaller (a segmented item, the switch, a standalone link) extends its hit area to this.
mark6pxThickness of a drawn mark off the ring: the widest a segment gets, the height of a phase bar, a status dot.
display480pxDiameter of the round display.
display-content392pxDiameter of the content circle: everything except the ring stays inside it.
display-square276pxThe inscribed square where two-line text is safe from the curve.
display-touch56pxMinimum hit area on the display; minus and plus discs are 60px.
display-action64pxHeight of the display's action pill.