Scale settings
Results update live.
Spacing scale
| Step | Multiplier | Pixels | Preview |
|---|
Build a consistent spacing scale for your designs. Pick a base unit and ratio to generate harmonious padding and margin steps, with CSS variables included.
Results update live.
| Step | Multiplier | Pixels | Preview |
|---|
Random padding values make interfaces feel messy: 13px here, 17px there. A spacing scale derives every step from one base unit multiplied by a fixed ratio, so margins and padding relate to each other harmoniously. Developers love it too, because var(--space-lg) is clearer than a magic number.
A 4px base with a 1.5 ratio is a popular starting point that stays friendly to common screen densities. The classic 8-point grid (base 8, doubling ratio) is stricter and great for mobile. Pick what fits your design, then never hand-tune a padding value again.