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-xlfor tiles and the ActionBanner,radius-lgfor cells,radius-mdfor inputs and nav items,radius-smfor chips,radius-pillfor everything you press. A nested corner is the outer radius minus the padding between them. - Bento grid. Tiles pad
space-5. Gaps arespace-2on phones andspace-3on 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
hairlineinlinebetween list rows and around the floating mode bar.line-strongwhen the border is the control: every input, select and textarea, a Menu's edge, the outline Button, an unchecked switch.surface-2on a tile is only 1.1:1, so a field's edge is its border, never its fill. - Touch.
touch-min44 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-sm36 px is for fine pointers only and grows to 44 px on a touch screen.display-touch56 px on the display, where minus and plus are 60 px discs and the action pill isdisplay-action64 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 inbundle.cssis 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 areink, a Menu has aline-stronghairline, a Dialog sits on thescrim.
Spacing
Every padding, gap and margin is one of these steps on a 4 px grid.
space-14pxspace-28pxspace-312pxspace-416pxspace-520pxspace-624pxspace-832pxspace-1040pxspace-1248pxspace-1664pxRadii
Everything you press is a pill. A nested corner is the outer radius minus the padding between them.
radius-sm8pxradius-md14pxradius-lg20pxradius-xl28pxradius-pill999px| Token | Value | Use it for |
|---|---|---|
control-sm | 36px | Small buttons in dense desktop rows. Fine pointers only: on a touch screen the same button is control-md tall. |
control-md | 44px | Default button, input, stepper disc, nav item. |
control-lg | 56px | The pinned action at the bottom of a form. |
banner | 76px | Minimum height of the action banner. |
icon | 24px | Every icon on the web. |
icon-display | 36px | Icons inside the display's mode discs; 28px in its small discs and at 12 o'clock. |
sidebar | 248px | Desktop sidebar width. |
content-max | 1280px | Maximum width of the page content. |
dialog | 400px | Maximum width of a dialog, a toast and a notice that floats. |
touch-min | 44px | Minimum hit area of any web control. A control drawn smaller (a segmented item, the switch, a standalone link) extends its hit area to this. |
mark | 6px | Thickness of a drawn mark off the ring: the widest a segment gets, the height of a phase bar, a status dot. |
display | 480px | Diameter of the round display. |
display-content | 392px | Diameter of the content circle: everything except the ring stays inside it. |
display-square | 276px | The inscribed square where two-line text is safe from the curve. |
display-touch | 56px | Minimum hit area on the display; minus and plus discs are 60px. |
display-action | 64px | Height of the display's action pill. |