All tools

Spacing Scale Generator

Choose a starting size and a ratio. Create a consistent set of spacing variables for your design.

Use the listed sizes in Oxygen’s gap, padding and margin controls, or create reusable spacing variables in the builder. For a code workflow, open More options & exports to download CSS tokens. Adjust the scale to suit your content.

Your result


Type that adapts.

Example: consistent spacing for a service website

Instead of choosing a new gap for every section, start with the Comfortable scale. Compare the visual bars and pick a small gap for labels, a medium gap for cards and a larger value for section spacing.

Put the result to work

  1. Choose a starting size, growth ratio and number of steps. Presets are starting points, not required design rules.
  2. Compare the PX and REM values and the relative bars. Keep only the steps your layout actually needs.
  3. Download the CSS tokens for a code workflow, or use the listed values in your builder’s spacing controls.

In Oxygen 6, create or select spacing variables through the builder interface and apply them to padding, margins or gaps. You do not need to paste a stylesheet to use this scale. The visual bars show relative differences, not a pixel ruler; review spacing again at smaller breakpoints.

Check spacing with realistic content →