Cookie settings

Choose how much analytics you share. Your player and accessibility preferences work with any choice.

Cancel Save preferences

Menu

Home Playground Finding balance in zoom
AccessibilityDesign SystemsTypography

About 4–7 min to explore

Finding balance in zoom

Can you make small print easier to read without letting the headings take over? Learn the magic of non-linear text scaling and see for yourself.

Ever bump up the text size to read a recipe’s ingredient list, only to find the title now takes up your whole screen? That’s linear scaling at work. Traditional zoom makes every piece of text bigger by the same percentage, which sounds totally logical and valid all the way up until you start hitting the real world use cases. At 200%, an 11px caption only picks up 11 extra pixels while a 44px headline picks up an addtional 44, so the text that needed the most help gets the smallest boost and the headline that was likely already readable becomes massive.

To finish hammering it home: the newly zoomed, 200% bigger captions are still only half the size that the headlines were to begin with.

Non-linear scaling approaches the size change from a different lens and distributes the increase differently. The smaller that text is, the larger percentage of zoom it gets while larger text like headings work in the opposite direction. The body text acts as a pivot, applying exactly the amount of zoom that was requested. This site’s text size setting in the works like this, and the demo below runs on the same curve.

Try it

The demo starts at 100%, where both sides are the same recipe. Pick 200% and they split apart, with Linear on the left doubling every size and Non-linear on the right using the curve. Drag the handle on the divider to move between them, or focus it and use the left and right arrow keys. The panel has a fixed bottom edge, so anything pushed below it is off screen, the same as it would be on a phone before you start scrolling.

Keep an eye on the ingredient list and the allergen note at the bottom. The tables under the demo keep score as you go, measuring how much of the screen the headline takes up and how many ingredients are still visible on each side.

Curve sets how hard the non-linear side leans toward small text. At 0 the two sides are identical, since that’s just linear scaling again. At 1 every size gets the same number of extra pixels and the headings start blending into everything else. It starts at 0.725, which is what this site uses.

Set left Reset Set right

Dinner · 40 min

Miso butter roast chicken with charred lemon and thyme

Mostly hands-off. The miso does the work while the oven’s on.

Ingredients

  • 1 chicken, about 1.6 kg
  • 3 tbsp white miso
  • 50 g butter, softened
  • 1½ tsp flaky salt
  • 2 lemons, halved
  • 1 small bunch of thyme

Contains soy and dairy.

Dinner · 40 min

Miso butter roast chicken with charred lemon and thyme

Mostly hands-off. The miso does the work while the oven’s on.

Ingredients

  • 1 chicken, about 1.6 kg
  • 3 tbsp white miso
  • 50 g butter, softened
  • 1½ tsp flaky salt
  • 2 lemons, halved
  • 1 small bunch of thyme

Contains soy and dairy.

Scaling

Copy link
100%
100%150%200%300%
0.72

Small text gets a bigger share of the zoom and headings get a smaller one.

How the controls work

Both sides match right now. They split apart once Zoom is above 100% and Curve is above 0.

Measured from the rendered page at 100% zoom, curve 0.72
MeasuredLinearNon-linear
Headline0px — 0% of the screen0px — 0% of the screen
Smallest text0px0px
Ingredients on screen0 of 00 of 0
Allergen note on screenNoNo
Hierarchy range0.0×0.0×
Every step of the scale at 100% zoom
StepAt 100%LinearNon-linear
Caption11px11px11px
Small13px13px13px
Body (the pivot)16px16px16px
Heading 222px22px22px
Heading 144px44px44px

How the controls work

Zoom sets how much bigger the text gets. Body text hits exactly that size on both sides, and everything else is scaled around it.

Curve sets how strongly the non-linear side favors small text. At 0 both sides are identical. Closer to 1 the sizes bunch together, though headings always stay bigger than body text.

The first table measures the recipe as it's actually drawn. Off screen means below the panel's bottom edge, where you'd have to scroll to reach it on a real page, and Hierarchy range is the largest text size divided by the smallest. The second table lists every size in the scale, with Body (the pivot) matching the zoom exactly.

The demo's Zoom only changes the recipe. This site's Text size setting uses the same curve on the whole page, including this dialog, and browser zoom works on top of both.

Close

Show me the math

Every size in the demo runs through this one function. A zoom of 2 means 200%, base is the size at 100%, and the pivot is the 16px body size. Finally, strength is the curve control, from 0 to 1.

export function multiplier(base: number, zoom: number, strength: number, pivot = 16) {
  const exponent = zoom < 1 ? -strength : strength;
  return 1 + (zoom - 1) * Math.pow(pivot / base, exponent);
}

When text is getting bigger, anything smaller than the pivot gets a multiplier above the zoom and anything larger gets one below it, while the pivot lands exactly on the zoom. Every size still grows and nothing overtakes the size above it, so the order of the scale stays intact.

All demos
Sharing options

About

Content

Connect

© 2026 Mark Zebley