Type Scale Generator
Font sizes from body text to headings, by a ratio, fixed or fluid with clamp(), as CSS variables with a preview
Scale
px
The base size and ratio above apply at the min viewport and below; these at the max viewport and above.
px
px
px
Enter sizes and viewports above 0, ratios above 1, and a max viewport wider than the min.
CSS
Step 0 is the body text; the steps up go to headings (h1 is often step 4 or 5), the steps down to small print.
Preview
| Step | px | Sample |
|---|