- Library
- Foundations
- Spacing
Spacing
A 4 px base scale: step n is n × 4 px, with half steps where controls need them. Tight inside groups, generous between them. Fewer choices means more consistent screens.
Updated Oct 16, 2026
In a layout
A review card built from the real components. Tinted areas are spacing: card padding, the gap between blocks and the gap inside a row of controls. They come from density tokens, so the compact density in the top bar tightens them.
A proposed change to color.bg.default. Check the contrast pairs before you approve it.
- Card padding layout.inset
- Between blocks layout.gap
- Title to badge, between buttons control.gap
- Padding inside cards, dialogs, popovers. 20px space 5
5 components
Components
- 16px space 4
- 8px space 2
1 component
Components
- 12px space 3
5 components
Components
- 16px space 4
- 20px space 5
1 component
Components
- 16px space 4
1 component
Components
Scale
space 16 tokens Inside a control: space 2 to 4. Between related items: space 1 to 3. Inside a card or panel: space 4 to 5. Between sections: space 8 and up.
- 0px Unused
- 2px
13 components
Components
- 4px
24 components
- 6px
12 components
Components
- 8px
- 12px
- 16px
- 20px
10 components
Components
- 24px
6 components
Components
- 28px Unused
- 32px
- 40px
1 component
Components
- 48px
1 component
Components
- 64px
1 component
Components
- 80px Unused
- 96px
1 component
Components