Tested tool guide
Tested browser tools
Checked August 16, 2026
What Spacing Scale Generator does, with a checked example
A design system holds together only if every margin, padding, and gap comes from one small set of numbers. This tool produces that set: enter a base unit and a ratio, and it returns a ladder of spacing values, each step multiplying the previous one by the ratio, the same modular-scale idea typographers use, applied to space. The output is meant to be copied into design tokens (CSS custom properties, Sass variables, a JSON token file) so every component draws on the same scale. The usual surprise: a ratio of 2 doubles each step (4, 8, 16, 32); it does not add the base (4, 8, 12).
Worked example
A concrete input and expected output from the current implementation.
Input
base: 4, ratio: 2, steps: 6
->
Expected output
4px, 8px, 16px, 32px, 64px, 128px
Each value multiplies the previous one by the ratio: 4 × 2 = 8, 8 × 2 = 16, and so on through six steps. The base is the first step, and the scale is geometric, so gaps between consecutive values widen as the scale grows.