Spacing
A 4px base unit scales into 13 steps. Every layout gap, padding, and margin maps to one of these tokens.
Scale
spacing.0spacing.1spacing.2spacing.3spacing.4spacing.5spacing.6spacing.8spacing.10spacing.12spacing.16spacing.20spacing.24In context
Spacing decisions compound. Getting card padding, row gaps, and icon insets right together is what makes density feel intentional.
Card — spacing tokens applied
Project Alpha
Updated 2h ago
Design system tokens, component library and Figma integration for the core product team.
spacing.6 (24px)spacing.3 (12px)spacing.4 (16px)spacing.1 (4px)List row — spacing tokens applied
Notifications
Push, email, and in-app
Privacy
Data and permissions
Appearance
Theme, font size, density
Keyboard shortcuts
View and customize
spacing.4 (16px)spacing.3.5 (14px)spacing.3 (12px)spacing.0 (flush)Token Reference
| Token | Value | Tailwind | Use case |
|---|---|---|---|
spacing.0 | 0px | p-0 / gap-0 | Reset, borderless flush |
spacing.1 | 4px | p-1 / gap-1 | Icon gaps, tight insets |
spacing.2 | 8px | p-2 / gap-2 | Inline element gaps |
spacing.3 | 12px | p-3 / gap-3 | Small padding, badge insets |
spacing.4 | 16px | p-4 / gap-4 | Base component padding |
spacing.5 | 20px | p-5 / gap-5 | Input height padding, row gaps |
spacing.6 | 24px | p-6 / gap-6 | Card padding, section gutter |
spacing.8 | 32px | p-8 / gap-8 | Content block separation |
spacing.10 | 40px | p-10 / gap-10 | Between major sections |
spacing.12 | 48px | p-12 / gap-12 | Page-level vertical rhythm |
spacing.16 | 64px | p-16 / gap-16 | Hero padding, modal spacing |
spacing.20 | 80px | p-20 / gap-20 | Large layout breathing room |
spacing.24 | 96px | p-24 / gap-24 | Max vertical section gap |
Usage Principles
All spacing values are multiples of 4px. This keeps layouts aligned to a consistent grid and makes density decisions predictable.
Choose spacing by intent, not by feel. Use spacing.4 for component padding, spacing.6 for card insets, spacing.10+ for section separation.
Reference a token — never a raw pixel value. When the base unit changes, every layout updates automatically.