Report

Help us improve this tool

Typography Scale Generator

Build harmonious font-size scales from a base size and musical ratio, with live preview and CSS, SCSS, or Tailwind export.

O M T

Build a modular type scale for interfaces

A modular scale multiplies a base font size by a consistent ratio so headings, body copy, and captions stay visually related. Pick a musical interval (major third, perfect fourth, golden ratio) or enter a custom multiplier, then export CSS variables, SCSS tokens, or a Tailwind fontSize block.

Choosing a ratio

Ratios near 1.25 (major third) suit dense dashboards. 1.333 (perfect fourth) is a common default for marketing sites. Larger ratios such as 1.618 create dramatic headline jumps. Pair the scale with the REM to PX Converter when you need to sanity-check root sizing.

Related tools

For decorative headline effects, try the Text Shadow Generator. To convert individual sizes between units, use PX to REM Converter.

Frequently Asked Questions

What is a modular typography scale?

It is a set of font sizes where each step is the base size multiplied by a fixed ratio raised to an integer power, producing harmonious size steps.

Which ratio should I start with?

Major third (1.25) for compact UIs, perfect fourth (1.333) for general web work, and golden ratio (1.618) when you want strong hierarchy.

Are rem values based on 16px?

Yes. Rem values assume a 16px root font size on the html element, which matches common browser defaults.

Can I paste the Tailwind output directly?

Copy the snippet into theme.extend.fontSize inside tailwind.config.js, then rebuild your CSS bundle.