Design tokens
Spacing
From space-0 and space-1 up to 96. Layout, padding, and gaps only use this ramp.
Buy nowPrimitive tokens
- Space 00px
- Space 11px
- Space 22px
- Space 44px
- Space 88px
- Space 1212px
- Space 1616px
- Space 2020px
- Space 2424px
- Space 3232px
- Space 4040px
- Space 4848px
- Space 6464px
- Space 8080px
- Space 9696px
space-12
Every gap and every padding value is a step on this ramp. A button uses 8 by 16. The space between two buttons is 12. A section uses 48.
If a layout needs a size that is not on the ramp, the layout is wrong, not the ramp.
Tokens
| Token | Value | Use |
|---|---|---|
| --space-0 | 0px | No space |
| --space-1 | 1px | Hairline |
| --space-2 | 2px | Tight offset |
| --space-4 | 4px | Icon nudge |
| --space-8 | 8px | Button padding, vertical |
| --space-12 | 12px | Gap between buttons |
| --space-16 | 16px | Button padding, horizontal |
| --space-24 | 24px | Stack of related blocks |
| --space-48 | 48px | Section break |
| --space-96 | 96px | Page section |
Code
.actions {
display: flex;
gap: var(--space-12);
}
.button {
padding: var(--space-8) var(--space-16);
}Included
- space-0 and space-1, then 2 through 96
- Button padding and the gap between actions
- No off-ramp spacing
Memorisely