Spacing scale. Build a consistent set of spacing steps on a 4 or 8 point grid.
How it works
Choose the grid
4pt for dense interfaces, 8pt for roomier layouts.
Choose the steps
Linear for small gaps, then growing for section spacing.
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
- Grid calculator: Column widths from columns, gutters and margins.
- Type scale: A modular scale of font sizes, previewed in your font.
- Nested corners: The inner radius that matches an outer corner.