Spacing Scale Generator

Make a consistent spacing scale (steps of a base unit, or growing by a ratio) as CSS variables.

How it works

Makes a consistent spacing scale, in steps of a base unit or growing by a ratio, as CSS variables.

Common questions

Why a scale?
Using fixed steps keeps spacing consistent across a design.
Which base unit?
4 or 8 pixels are the common bases.
Is it free to use?
Yes. Copy the result into any project.

More in Design.