Primitives
Spacing
A 4px base grid. All padding, margin, and gap values should align to this scale. Tailwind utility classes map directly to these steps.
Scale
Each step is a multiple of 4px. Decimals (0.5, 1.5, 2.5, 3.5) fill in the gaps for fine-grained component internals.
00px0rem0.52px0.125rem14px0.25rem1.56px0.375rem28px0.5rem2.510px0.625rem312px0.75rem3.514px0.875rem416px1rem520px1.25rem624px1.5rem728px1.75rem832px2rem936px2.25rem1040px2.5rem1248px3rem1456px3.5rem1664px4rem2080px5rem2496px6rem28112px7rem32128px8remUsage guidelines
Component internals (padding, icon gaps) typically use 1–6 (4px–24px). Layout spacing (section gaps, content margins) uses 8–32 (32px–128px).
Component padding
3–6 (12–24px)Button, Input, Badge
Component gap
1–3 (4–12px)Icon + label, avatar + name
Section spacing
10–20 (40–80px)Page sections, cards
Layout margin
16–32 (64–128px)Page gutters, hero padding