How to use Spacing Scale Generator
- Choose linear or factor spacing.
- Set the base, factor, number of increments and root font size.
- Review the values and copy the CSS custom properties.
Example: Spacing Scale Generator
Double spacing at each step.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
Name tokens for their role when useful
A numeric scale is easy to compare. In your stylesheet, a semantic alias such as a section gap can point to one scale value, so the role stays clear when the value changes.
Questions about Spacing Scale Generator
How does linear spacing differ from geometric spacing?
Linear spacing grows by a fixed increment. Geometric spacing multiplies by a fixed factor at each step.
Can I use these tokens for every margin?
Use them where they fit the content. A scale is a reference, not a reason to add space that the layout does not need.
Do rem tokens track the root font size?
Yes. The browser uses the page’s actual root font size; this tool uses your entered root size when converting.