Tools / Design
Type Scale Generator
Build a font size scale from a base size and ratio, or a fluid one that grows with the screen using CSS clamp(). See it in your font and export CSS, Tailwind, SCSS or JSON tokens.
Settings
Preview
Export
How to use it
- Pick a base size and a ratio, or switch to Fluid and set sizes for a small and a large screen.
- Check the steps in your font. Each line shows the size, line height and letter spacing it suggests.
- Copy CSS variables, a Tailwind fontSize config, an SCSS map or JSON tokens.
Questions
What is a type scale?
A set of font sizes where each step is the previous one multiplied by the same ratio, such as 1.25. It gives headings and body text a consistent rhythm.
How does the fluid scale work?
You set a base size and ratio for a small and a large screen. Each step becomes a clamp() value that grows smoothly with the screen width between those two points, so font sizes need no breakpoints.
Which ratio should I pick?
Apps and dashboards read well with 1.125 to 1.2. Marketing and editorial pages suit 1.25 to 1.333. Larger ratios like 1.5 work for a few big headings.