Practical typography guide · Art and the City · Updated 24 November 2026

How to use a type scale in a real website

A type scale gives your font sizes a shared relationship. It does not choose the hierarchy for you. Use this workflow to turn the generator’s numbers into a readable article, portfolio or interface.

1. Start with the text people must read

Put a real paragraph into your layout before designing the headline. Try a base size of 16 or 18 pixels, then compare the same text in your chosen font on a phone and a larger screen. These sizes are useful starting points, not accessibility guarantees. Letter shapes, weight, line length and contrast all affect readability.

For a long article, start with a line height around 1.5–1.6 and a text column around 60–70 characters wide. Adjust by looking at complete paragraphs. A compact navigation label needs a different treatment from a page of continuous reading.

2. Choose a ratio for the job

The calculation is base size × ratio raised to the step number. With a 16-pixel base and a 1.25 ratio, step 1 is 20 pixels, step 2 is 25 and step 3 is 31.25. See the worked scale comparisons before deciding.

3. Generate, then assign roles

  1. Open the type scale generator and set the base and ratio.
  2. Replace the preview text with a heading from your project.
  3. Compare the proposed sizes with a paragraph, a subheading and a caption in your layout.
  4. Choose only the sizes you need. Record which value belongs to which role.
  5. Copy the CSS and apply the variables to your components.

The tool’s default labels are suggestions. It shows steps 6, 5, 4, 3, 2, 0 and −1, so the first step above body text is not displayed as a separate row. You can still use that intermediate value when the design needs a lead paragraph. HTML headings should describe the document structure; choosing a smaller visual heading is not a reason to skip heading levels.

4. Test a complete page

Use a long title, several paragraph lengths, a list, a link and a button. On mobile, a desktop headline may wrap into five lines. Reduce that display size or use a bounded responsive value rather than shrinking all body text. The CSS guide includes a starting example.

Check text enlargement and reflow, not just a narrow browser window. At 200% zoom, controls and text must remain usable without clipping or disappearing. A scale alone does not establish that the page meets accessibility requirements.

A short project exercise

Take a service page with eight unrelated font sizes. Keep the body size, choose one ratio and replace the headings with three values from the scale. Compare the before and after at the same width. If a heading no longer looks important, first inspect spacing and weight before adding another font size.

Before you publish