How to create a typographic hierarchy for websites and apps
Typographic hierarchy tells readers what to read first, what is related, and what is secondary. Without it, every line competes for attention.
Tools for creating hierarchy
- Size: the most obvious signal
- Weight: bold, regular and light weights within one family
- Color and contrast: secondary text in a softer tone (still accessible)
- Case and spacing: small uppercase labels with added tracking for eyebrows or categories
- Position and whitespace: space above a heading groups it with what follows
Building a type scale Many designers use a modular scale, multiplying each step by a ratio (such as 1.2 or 1.25) to get harmonious sizes. A practical set might include:
- Display / H1
- H2, H3
- Body (often around 16px on the web as a base)
- Small / caption
- Label / overline
Keep the number of styles small. Most interfaces need far fewer than they end up defining.
Responsive type
- Larger headings on desktop, scaled down on mobile
- Fluid type with CSS
clamp()can scale smoothly between breakpoints - Body text often changes less than headings across devices
Common mistakes
- Too many sizes that are only slightly different
- Using bold everywhere, which removes its power
- Heading styles that do not match semantic heading levels in code
A quick test Blur your eyes or zoom out. Can you still tell what is most important?
How many text styles does your current project use? And do you use a mathematical scale or set sizes by eye?
Comments · 3
I like the idea of testing hierarchy by squinting at the page. If the important parts don't stand out, size and weight need to work harder.
On the dev side, a type scale with a handful of tokens works much better than ad hoc font sizes. Fewer decisions, more consistency.
Same lesson as book covers and posters: title big, author medium, everything else small. The eye needs a path.