Skip to the tool
RU

Type scale, fixed or fluid

Set a base size and a ratio, see every step in your fonts, switch on fluid sizes with clamp() — and copy CSS variables.

Headline
Text
Why it works:

Preview

Typography decides how a page feels

Good pairs balance contrast and harmony: one font sets the voice, the other carries long reading. Type your own words here to see how the pair holds up on real content — headings, paragraphs and buttons.

A section heading

Good pairs balance contrast and harmony: one font sets the voice, the other carries long reading. Type your own words here to see how the pair holds up on real content — headings, paragraphs and buttons.

A smaller heading

Good pairs balance contrast and harmony: one font sets the voice, the other carries long reading. Type your own words here to see how the pair holds up on real content — headings, paragraphs and buttons.

Get started

Size scale

Show all steps
StepSizeSample

Export


  

How it works

  1. Set base and ratio

    16 px and 1.25 are a good start. Smaller ratios for interfaces, bigger ones for landing pages.

  2. Turn on fluid

    Choose a ratio for phones and for desktops — sizes will grow smoothly between 360 and 1280 px.

  3. Copy CSS

    --step-* variables in rem, line heights and rules for headings — or the Tailwind @theme.

Why Fontpair

Questions

What is a type scale?

A set of sizes where each step is the previous one multiplied by the same ratio, for example 16 × 1.25 = 20, 25, 31… It keeps headings and text in proportion. 1.2 suits dense interfaces, 1.25–1.333 — most sites, 1.5–1.618 — posters and landing pages.

What is a fluid scale?

Sizes grow smoothly from a phone (360 px) to a desktop (1280 px) using CSS clamp(): a smaller ratio on phones, a bigger one on wide screens, no media queries.

Why rem and not px?

rem respects the font size the visitor set in the browser — important for accessibility (WCAG 1.4.4). We show px for clarity and export rem.

What does the CSS contain?

The Google Fonts link, --font-heading and --font-body with fallbacks, the size scale as --step-* variables (fixed or fluid with clamp()), line heights and ready rules for body, h1–h6 and small. Copy it or download a .css file.

About Fontpair

Fontpair is a free font pairing tool for designers, developers and anyone building a website. Unlike Fontjoy, Typescale or the Google Fonts site, it does three things in one place: suggests pairs by real typography rules and real font metrics (it explains why each pair works), shows them on your own text with a full size scale, and gives the finished CSS — Google Fonts link, variables, fluid sizes — in one click. For Russian-language sites it keeps only pairs where both fonts support Cyrillic. Everything runs in your browser; your text is not sent anywhere.

More tools