Spacing scale. Build a consistent set of spacing steps on a 4 or 8 point grid.

How it works

  1. Choose the grid

    4pt for dense interfaces, 8pt for roomier layouts.

  2. Choose the steps

    Linear for small gaps, then growing for section spacing.

  3. Copy the tokens

    As CSS variables, a Tailwind v4 theme or JSON tokens.

Questions

Why use a spacing scale?

A short list of allowed gaps makes layouts line up and look intentional, and it makes design decisions faster.

4pt or 8pt?

8pt is easier to keep consistent. 4pt adds half-steps for tight interface parts such as icons and inputs.

More design tools