Foundations
Space and size
The grid is 4px. Spacing is tight inside components and generous between sections.
4px
6px
8px
12px
16px
24px
32px
40px
| Thing | Value |
|---|---|
| Control height | 32px by default. Also 24, 28 and 36px |
| Square icon button | Same as the control heights |
| Horizontal padding in a control | 10px, or 8px on the side that has an icon |
| Gap inside a control or row | 6–8px |
| Gap between groups | 12–16px |
| Gap between stacked cards or sections | 24px |
| Pane header bar | 40px, with a hairline at 60% border strength |
| Chip or filter bar | 48px |
| App header row | 56px |
| Side navigation | 256px |
| Page padding | 16px on small screens, 24–40px on large ones, 40px vertical |
| Page widths | settings 896px, forms 672px, dialogs and empty states 384–448px |
| Card padding | 16px, or 12px for compact cards |
| Icons | 16px in buttons and menus, 14px in navigation and small buttons, 12px in badges |
Tokens
Space: --space-0-5 (2px) to --space-10 (40px). Controls: --control-xs, --control-sm, --control-md, --control-lg. Bars: --bar-pane, --bar-filter, --bar-app. Also --sidebar-width, --icon-xs, --icon-sm, --icon-md, --hairline.