How to choose font sizes with a type scale
Picking font sizes one at a time leads to a page with fifteen sizes that are nearly the same. A type scale gives you a short list of sizes that relate to each other.
Set your base size
For most websites, 16px is a sensible base for body text, and 18px suits long reading. Avoid going much smaller for body copy, especially on phones.
Choose a ratio
Multiply the base by a ratio to get each step. A ratio of 1.25 gives 16, 20, 25, 31 and 39. A ratio of 1.333 gives 16, 21, 28, 38 and 50. Smaller ratios suit dense apps, and larger ones suit expressive marketing pages.
Limit the list
You rarely need more than five or six sizes: small text, body, a subheading, a section heading, a page heading and sometimes a large display size. Round values to whole pixels when you apply them.
Adjust for phones
A 64px headline that looks strong on a laptop may break into five lines on a phone. Use the CSS clamp function to let large sizes shrink smoothly with the screen, such as clamp(2rem, 6vw, 4rem).
Hierarchy needs more than size
Weight, color and space also separate levels. A section heading can be the same size as a large paragraph and still stand out if it is bold, dark and has more space above it.
Keep reading
- How to pair fonts for a website
A simple approach to choosing one or two typefaces that work well together.
- Line height and line length: small settings that make text readable
The ranges to aim for, and why long lines and tight spacing make people stop reading.
- The 8-point spacing system for cleaner layouts
How a simple spacing scale makes designs feel consistent and speeds up decisions.