Spacing
A 4px base for gaps and padding. Radius is set from one base value, so every corner in the product matches.
Spacing scale
| Token | px | Preview |
|---|---|---|
| spacing-0 | 0 | |
| spacing-0.5 | 2 | |
| spacing-1 | 4 | |
| spacing-1.5 | 6 | |
| spacing-2 | 8 | |
| spacing-3 | 12 | |
| spacing-4 | 16 | |
| spacing-5 | 20 | |
| spacing-6 | 24 | |
| spacing-8 | 32 | |
| spacing-10 | 40 | |
| spacing-11 | 44 | |
| spacing-12 | 48 | |
| spacing-14 | 56 | |
| spacing-16 | 64 | |
| spacing-20 | 80 | |
| spacing-24 | 96 |
Radius
The base radius is 8px. Each step follows the token scale.
sm · 6px
md · 8px
lg · 10px
xl · 14px
2xl · 18px
3xl · 22px
4xl · 26px
full · full
| Token | Value |
|---|---|
| --radius | 8px (base) |
| buttons | md, 8px |
| inputs | sm, 6px |
| cards | lg to xl, 10 to 14px |
| badges | full |
Usage
- Use the 4px steps for gaps: 8, 12, 16, 24, 32, 48.
- Do not hardcode pixel values in components. Use Tailwind spacing classes.

