Spacing
An 11-step spacing scale from 4 to 160 px. All gap, padding, and margin values must use --sp-* tokens — arbitrary px values are not allowed. The single source of truth is app/_v2/tokens.css.
Scale
Bar widths visualize the relative size of each token, normalized against the maximum value (160 px).
Usage
Spacing tokens cover three contexts. Use smaller values (xs–lg) inside components, mid-range values (xl–2xl) between components, and larger values (3xl–7xl) for section-level rhythm.
Inside components
Fine-grained spacing such as icon-to-text gap or button and input padding. Use xs(4)–lg(16).
Between components
Card grid gaps, form field spacing, nav item separation, and similar layout gaps. Use xl(24)–2xl(32).
Section rhythm
Page section padding-top/bottom and large grid gaps. Use 3xl(48)–7xl(160).