Skip to content

Scale

A 4px grid with half steps for tighter gaps and insets.

PreviewEach gridline is 16px apart on the scale. The table shows bars at actual size.
TokenSizeUse
2pxStacked rows and labels beside their descriptions.
4pxGaps inside chips, composer frame padding and between keycaps.
6pxIcons beside labels and compact row actions.
8pxDefault container padding, tooltips and gaps inside controls.
10pxPadding for medium controls, inputs and dense containers.
12pxCard, toast and notice padding, and gaps between sibling controls.
14pxVertical spacing between rows in a conversation.
16pxPanel, popover and dialog padding, gutters and group breaks.
18pxPadding between the panel and roomy steps.
20pxRoomy padding for cards and other containers.
24pxGaps between distinct groups and conversation turns.
32pxBreaks between major sections inside a panel.
40pxBreaks between sections on the same page.
48pxLarge vertical breaks between sections of a page.
64pxBase unit for wide columns and panels.

Container padding

Use the same padding on both axes. Adjust the top inset for text when needed so the visible edges still line up.

Preview
Equal vertical and horizontal inset on containers

Equal optical inset

Top padding compensates for line-height leading above capitals.

Optical top trim so capitals match the side inset