Spacing
Scale
| Token | Size | Use |
|---|---|---|
| 2px | Stacked rows and labels beside their descriptions. | |
| 4px | Gaps inside chips, composer frame padding and between keycaps. | |
| 6px | Icons beside labels and compact row actions. | |
| 8px | Default container padding, tooltips and gaps inside controls. | |
| 10px | Padding for medium controls, inputs and dense containers. | |
| 12px | Card, toast and notice padding, and gaps between sibling controls. | |
| 14px | Vertical spacing between rows in a conversation. | |
| 16px | Panel, popover and dialog padding, gutters and group breaks. | |
| 18px | Padding between the panel and roomy steps. | |
| 20px | Roomy padding for cards and other containers. | |
| 24px | Gaps between distinct groups and conversation turns. | |
| 32px | Breaks between major sections inside a panel. | |
| 40px | Breaks between sections on the same page. | |
| 48px | Large vertical breaks between sections of a page. | |
| 64px | Base unit for wide columns and panels. |
Container padding
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