How to use the typography scale generator
- 1
Choose a comfortable base sizeStart with 16px for most websites, or use 17-18px when reading comfort is the priority.
- 2
Select a modular scale ratioUse Minor Third for a compact interface, Major Third for a versatile website, or a larger ratio for expressive headings.
- 3
Test the hierarchyDrag the viewport control and switch preview fonts to see how your scale behaves on realistic content.
- 4
Copy your type tokensExport static or fluid CSS variables, or copy the same sizes into your Tailwind configuration.
TIP
A scale is a guide, not a law
Optical size changes between typefaces. Test your scale with the actual font, content and layout, then adjust any step that feels crowded or overly dramatic.
What is a modular typography scale?
A modular typography scale is a sequence of font sizes connected by a ratio. With a 16px base and a 1.25 Major Third ratio, each step is 1.25 times the previous one: 16px, 20px, 25px, 31.25px and so on. The result gives body text, labels and headings a shared visual rhythm.
Choosing the best type scale ratio
Smaller ratios create subtle changes and more usable intermediate sizes. They work well in dashboards, dense interfaces and mobile layouts. Larger ratios produce stronger contrast, making them useful for editorial pages, marketing sites and display-heavy designs. This online typography scale calculator lets you compare those personalities before you commit.
Responsive and fluid typography with clamp()
Fluid typography grows gradually between a minimum and maximum viewport instead of jumping at a breakpoint. CSS clamp() keeps each font size within safe limits while the middle value responds to screen width. Enable Fluid type to generate accessible, copy-ready values for every step in your scale.