About this tool
A type scale multiplies a base font size by a fixed ratio to get harmonious heading sizes. Choose a base, a ratio such as the major third or perfect fourth, and how many steps you need above and below. Turn on fluid mode to get clamp() values that grow smoothly between a small and a large screen.
How to use Type Scale Generator
- Enter the base font size.
- Pick a ratio and the number of steps.
- Optionally enable fluid sizing and set the viewport range.
- Copy the CSS variables.
Frequently asked questions
Which ratio should I choose?
Smaller ratios like 1.2 suit dense interfaces and long reading. Larger ratios like 1.333 or 1.5 create dramatic headings for landing pages.
What does fluid mode change?
Each size becomes a clamp() that moves between a smaller scale on phones and your full scale on wide screens, with no media queries.