Type scale. Pick a base size and a ratio, preview every step in your font, and copy the sizes.

How it works

  1. Set the base and ratio

    Your body size, usually 16px, and a ratio from minor second to golden ratio.

  2. Preview it

    Every step set in a Google Font of your choice, from caption to display.

  3. 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