Skip to the tool
Fluxes

Free tool

Type scale builder

Pick a font pairing, set the body size and the ratio, and copy a set of sizes that grows smoothly from phone to desktop.

How it works

  1. Pick one of 50 font pairings.
  2. Set the body size and the ratio between steps, for phones and for desktops.
  3. Drag the preview width to watch every size change between the two.
  4. Copy the result as CSS or as a Tailwind theme.

What you get

  • Nine sizes from small print to the largest heading, each with a line height that reads well.
  • Sizes written with clamp(), so text grows smoothly between phone and desktop without breakpoints.
  • Font stacks with sensible fallbacks for the pairing you chose.

Questions

What is a type scale?

A set of font sizes that share one ratio, so headings and text look related. A ratio of 1.25 means each step is a quarter larger than the one below.

What does clamp() do?

It gives a size a smallest value, a largest value and a rate of growth in between. Text set this way grows with the screen instead of jumping at breakpoints.

Which ratio should I use?

Smaller ratios such as 1.125 or 1.2 suit phones and dense pages. Larger ones such as 1.25 or 1.333 suit desktops and pages with big headings. The builder lets you set one for each.

Why do the smallest sizes stop shrinking?

Text under 12 pixels is hard to read, so the two small steps are held at 12 pixels or above.

From the blog

More tools