Type scale. Pick a base size and a ratio, preview every step in your font, and copy the sizes.
How it works
Set the base and ratio
Your body size, usually 16px, and a ratio from minor second to golden ratio.
Preview it
Every step set in a Google Font of your choice, from caption to display.
Copy the sizes
In rem or px, as CSS variables or a Tailwind v4 theme, with line heights.
Questions
Which ratio should I use?
1.2 to 1.25 suits interfaces with lots of text. 1.333 to 1.5 gives a marketing page more drama. Larger ratios make the top sizes very big very quickly.
Why rem instead of px?
rem follows the reader's browser font size setting, so your text grows for people who set a larger default.
More design tools
- Fluid type: A CSS clamp() value that scales text between two screens.
- Line height and length: Readable line height and line length for any size.
- Font pairing: Heading and body fonts side by side on a real layout.