Member-only story
Opinionated Typography: Scale
Modernise web typography by combining CSS math functions like pow() and progress() to create mathematically sound, fully fluid font-size scales.
Most of what you look at on the web is text. Even if you’re watching videos. And there are a million different takes on what makes great typography. I think it’s fair, then, to throw my hat in the ring.
The font scale
There’s been a lot of debate about font scales and which ones to use. Some people go with something based on a “traditional” scale inherited from metal type foundries. You’ve seen these in things like Microsoft Word (6, 8, 9, 10, 11, 12, 16, 18, etc.).
Some just eyeball it. But this really isn’t sustainable or maintainable in the squishy world of web design. Today’s approach is basing scales on a ratio.
The advantage here is that there aren’t magic numbers everywhere. Just one.
This is the first thing to set up, and with a few modern techniques, a whole font-size scale can be produced in a jiffy.
:root {
--font-size-ratio: 1.2;
--font-size-base: 1em;
--font-size-1…





