Skip to content

Spacing

Generated from $space-unit (default 0.25rem / 4px). Three tiers — numeric for precision, named for readability, semantic for intent.

See live demos →

Steps 1–4 are granular 4px increments. Steps 5–10 are progressive jumps — larger sizes need less precision:

TokenMultiplierDefault value
--space-1×10.25rem / 4px
--space-2×20.5rem / 8px
--space-3×30.75rem / 12px
--space-4×41rem / 16px
--space-5×61.5rem / 24px
--space-6×82rem / 32px
--space-7×123rem / 48px
--space-8×164rem / 64px
--space-9×205rem / 80px
--space-10×246rem / 96px
TokenMaps to
--space-xs--space-1
--space-sm--space-2
--space-md--space-4
--space-lg--space-6
--space-xl--space-8
--space-2xl--space-10
TokenMaps toUsage
--space-gutter--space-5Page and grid gutters
--space-section--space-9Between page sections
--space-stack--space-4Vertical spacing between elements
--space-inline--space-2Horizontal spacing between inline elements
--space-inset--space-4Padding inside components
--space-inset-sm--space-2Tight padding, small components
--space-inset-lg--space-6Loose padding, large components