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 CSS custom properties for a design system.
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 step range is limited.
Questions and answers
How can I choose sizes for headings and body text?
Enter a base size and scale ratio. The generator calculates a sequence of sizes for your styles. Try it with real headings and paragraphs; one ratio will not suit every interface.
Will the generator choose a font and line spacing?
It calculates font sizes. Choose the font family, weight, and line height separately. After applying the sizes, check long headings and text on a narrow screen.
