Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute

Stop picking font sizes by eye

The rule

Set body text at 16 px, multiply by 1.25 for each size up and divide by 1.25 for each size down, then save those steps as tokens and use nothing else.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the interface I share against this type scale. Fix what fails, and change nothing else.

1. Base: body text is 16 px.
2. Ratio: every other size is a step on a 1.25 scale. Multiply by 1.25 for each step up (20, 25, 31, 39) and divide by 1.25 for each step down (13).
3. Tokens: save the steps as tokens and use nothing else. No size sits between two steps.

Keep the content, the features, the layout and the colours. When you are done, list every font size you found, the step it became, and how many sizes are left.

More prompts like this in the free guide 

The problem

The pricing card in the video uses seven font sizes, all picked by eye. Three of them are body sizes: 14, 15 and 17 px. They sit 3 px apart, too close to rank. The headings are guesswork as well, at 22 and 34 px. The sizes are so close that nothing leads.

The fix

One base, one ratio, and the maths picks every size.

  1. Base. Set body text at 16 px. Three almost equal sizes become one.
  2. Ratio. Pick 1.25. Multiply up: 20 for the plan name, 39 for the price. Divide down: 13 for labels.
  3. Tokens. Save those steps as tokens and use nothing else.

Seven guesses become four sizes, all from one scale.

Why it works

On a scale the ratio sets every size, so no two land almost equal: 13, 16, 20, 25, 31, 39. Each step is clearly bigger than the last, and the biggest can lead. Tokens keep it that way. Without them nothing stops a guess: in the video a 12 px size slips back in. With them the card uses four of those steps as tokens: 13, 16, 20 and 39. No size sits between two steps.

How to apply it

List every font size in your interface. Set body text at 16 px. Multiply by 1.25 for each step above it and divide by 1.25 for each step below. Give every size you found a step. Save the steps as tokens, and when a new size is needed, take the next step up or down instead of a guess.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on type

All 6 lessons on type