How to set up a type scale: modular ratios vs hand-picked sizes
A type scale is the limited set of font sizes you allow in a project. Having one stops the slow creep of 13px, 14px, 15px and 15.5px text all over a product.
Option 1: a modular scale. Pick a base size and multiply by a ratio for each step up.
- Base 16px with a ratio of 1.25 gives roughly 16, 20, 25, 31, 39, 49.
- Smaller ratios (around 1.125 to 1.2) suit dense interfaces and dashboards.
- Larger ratios (1.333, 1.5 or more) create dramatic contrast for editorial and marketing pages.
Option 2: hand-picked steps. Many product teams simply choose sizes that work, often rounded to whole numbers or to a 4px rhythm, e.g. 12, 14, 16, 20, 24, 32, 40.
Steps to set one up:
- Choose body size first, since it is the text people read most.
- Decide how many levels you truly need; most products manage with six to eight.
- Pair each size with a line height and, ideally, a default weight.
- Name steps by role (
body,caption,heading-lg) rather than by pixel value. - Test with real content on mobile and desktop; consider a smaller ratio on small screens.
Exercise: take an existing screen and remap every text element to your new scale. Anything that will not fit is a hint the scale needs an extra step, or that the design had too many levels.
Questions:
- Do you prefer a strict ratio or rounded hand-picked sizes?
- How many sizes does your current project use?
Comments · 3
Modular scales give a nice rhythm, but I usually adjust sizes by eye. A ratio is a starting point, not a rule.
Storing the scale as CSS variables made it much easier to stay consistent. Change one value and the whole project updates.
Fluid type using clamp() is worth a look too. You set min and max sizes and the browser scales between them, so you skip a pile of breakpoints.