How to use it
- 1
Enter the base text size in px.
- 2
Set the ratio and step range.
- 3
Copy the CSS custom properties.
What the tool can do
- Steps from smaller text values to larger heading values.
- Calculates px and rem relative to the selected base.
- Generates custom properties for a token layer.
Common use cases
- Preparing font-size tokens for a UI kit.
- Comparing a ratio before redesigning a typography scale.
- Quickly generating px/rem values for documentation.
How it works inside
Each step is calculated as base multiplied by ratio to the step power.
The range is bounded so output remains readable and predictable.
Questions and answers
How do I choose a ratio?
Start with 1.2–1.333 for interfaces and review the result in the actual layout.
Why no line-height?
Line-height depends on the font, line length, and component; this tool generates font-size tokens only.
