Spacing & layout.
One grid underneath everything. Spacing runs on an 8pt rhythm with 1rem = 16px as the base unit, plus two sub-steps for compact UI. Radius and border width sit on the same footing — every value is a token, and nothing in between is legal.
Pick a topic
Three sets of constants. Open one below.
Gaps, padding and margins. 2px through 64px on an 8pt rhythm.
How an edge looks, how thick it is, and how round the corner gets.
Breakpoints, container widths, columns and gutters — all built from space tokens.
Spacing
10 tokens · 8pt grid · 1rem = 16px
The system is built on the 8pt grid with 1rem = 16px as the base unit, which keeps spacing consistent and easy to scale across web and mobile. Two smaller steps — 2px and 4px — exist for compact elements like buttons and icons, where 8px is already too much.
spacing collection defines exactly these ten, space-3xs through space-4xl, with the same values — so this table and the variables agree.Rule of thumb: 8-multiples between components, half-steps within one.
Do & Don't
The three mistakes spacing and radius actually attract in review.