Skip to content

Spacing

8-point grid with a single 4px escape hatch. All spacing values are multiples of 8, except --space-1 (4px) for tight internal padding.

TokenValueUse
--space-14pxEscape hatch — icon padding, badge internals, fine gaps
--space-28pxTight component internal padding
--space-312pxComponent internal padding
--space-416pxStandard component padding; gap between related elements
--space-524pxGap between components; section internal padding
--space-632pxGap between sections; card padding at larger scale
--space-748pxMajor section gaps
--space-864pxPage-level vertical rhythm
Semantic TokenMaps ToIntent
--space-component-padding-tight--space-1Tight internal (icons, badges)
--space-component-padding--space-2Default component padding
--space-component-padding-loose--space-3Comfortable component padding
--space-component-gap--space-2Gap within a component
--space-section-padding--space-4Section internal padding
--space-section-gap--space-5Gap between sections
--space-layout-gap--space-6Major layout gaps
--space-layout-gap-lg--space-7Large layout divisions
--space-page-padding--space-8Page-level padding
  • 8px minimum is too limiting for dense desktop UI — --space-1 (4px) is the governed exception
  • Arbitrary small values (3px, 5px, 7px) are not permitted
  • --space-3 (12px) is the comfortable padding default; not a grid violation but a practical necessity for 8+4 compositions