📐Spacing Scale
Also known as Spacing System, Space Scale, Spacing Tokens
A short fixed list of gaps, like 4, 8, 16 and 24 pixels, used for all spacing.
Think of it like
It is like a set of cups for baking. You only use the sizes in the set. So a cake comes out the same each time.
Example
Lucy spaces a card with 16 inside and 24 between cards. She never has to wonder if it should be 15 or 17.
Why it matters
Even spacing makes a product look tidy. The fixed list also ends fights over one pixel.
Definition
Example code
css
:root {
--space-1: 4px; --space-2: 8px; --space-3: 16px;
--space-4: 24px; --space-5: 32px; --space-6: 48px;
}Common mistake
Key takeaways
- 1A short list. Pick, do not guess.
- 2Grows as it goes. Fine steps when small.
- 3Stored as tokens. Shared by design and code.