Guidelines / Spacing

Scale

Strict 4px Grid; Tight Furniture, Generous Sections

01 Preview

02 Rule

Layout snaps to the 4px grid. Use the named steps (--space-1…10); don't invent one-off gaps. Micro-furniture sits tight on the grid (--space-2/3); sections separate at 64-144px - that contrast is the signature rhythm. Inside components a few optical values sit off-grid deliberately (10px button padding, 6px gaps) where the grid read wrong at small sizes; that is an existing exception, not licence for new ones.

03 Tokens

TokenValue
--space-14px
--space-28px
--space-312px
--space-416px
--space-524px
--space-632px
--space-748px
--space-864px
--space-996px
--space-10144px
--page-max1120px
--page-pad24px

Defined in src/tokens/spacing.css. Use these via var(--name) rather than literal values — npm run lint enforces it wherever a token holds the value.