Type Scales & Text Layout
Transcript
Made automatically from the video's sound, so it may contain mistakes. Click a line to play from there.
Welcome back to The Explainer. Now, if you've ever been up at 2 a.m. staring at a screen, wondering why your web layout kind of feels like a cheap 1999 word document, but you literally can't put your finger on why.
Well, you are definitely in the right place. Today we're taking micro typography and translating it into macro readability. And we're going to do it all using mathematical scales and modern CSS. It's a real game changer.
So, just for a really crisp recap of where we left off. Having already chosen canopy's typefaces, optical sizing and open type polish, we are now ready to orchestrate macro readability through mathematical scale, line length, and leading equilibrium.
And don't worry, we are absolutely not going to re-explain font classifications, apertures, or tabular numbers today. We're assuming you know the basics, so we're jumping right into building a responsive typographic system.
Here's our roadmap for today. First, the four amateur typesetting sins. Second, modular and fluid typescales. Third, the canopy wall of text rescue.
Fourth, distinct brand visual archetypes. And finally, the size-leading tracking matrix. Right, let's jump straight into section one. Four amateur typesetting sins, or basically what ruins most SAS templates.
You see, there are four specific errors that just instantly destroy spatial relationships and user focus. First up is stretching 16 pixel copy over 140 plus characters in a 1200 pixel wrapper.
The human eye gets completely exhausted just trying to track back to the next line. Then there's applying a flat line height of 1.5 across the board. If you do that to a massive 56 pixel headline, your words literally float apart like lost balloons.
Third, those six-line centered feature blurbs with super jagged edges that make scanning a nightmare. And finally, just arbitrarily guessing heading sizes instead of using proportional math.
It's the stark contrast between a sprawling, broken template page, committing all four of those classic layout sins at once, and true readability equilibrium. By using content out mathematical scales, specifically leaning into Tim Brown's modular concepts and James Gilead's Utopia Fluid Scales, we shift completely away from aesthetic guesswork and establish genuine structural integrity.
Modular and fluid typescales. This is how we create harmony through mathematics. Now the real hero of our story today is the CSS clamp function. Think of it like the Goldilocks principle for web design.
It takes a minimum value, a preferred value that's usually tied to the viewport width, and a maximum value. It fluidly scales your typography as the browser window grows and shrinks. Not too small, not too big, just right.
And using James Gilead's Utopia Fluid Scales, this exact logic works identically across raw CSS, Webflow, Framer, and even Figma variables. So how does the math actually work? Well, by multiplying a base number by a strict ratio, we generate a modular scale that keeps our typography perfectly in tune.
On a 320 pixel mobile viewport, for instance, we might use a base of 16 pixels and a tight 1.2 ratio. But on a 1280 pixel desktop, we increase that base to 20 pixels and use a more dramatic 1.333 ratio.
The browser dynamically interpolates everything in between. You aren't just arbitrarily picking font sizes anymore, you're effectively writing a program to generate visual harmony. Let's actually put this theory into practice with section three, the canopy wall of text Rescue.
This is a 15-minute, five-move practical transformation. Okay. Keeping the fonts and colours we set for canopy completely locked, we can refactor our layout in five precise moves.
Move 1. Apply our responsive fluid typescale from 320 to 1280 pixels. Move 2. Cap the measure.
We want to lock our editorial pros and hero subtitles at a maximum of 62 characters to stop those exhausting long lines. Move 3. Tighten the H1 and H2 LED to a really snug 1.08 to 1.15.
Move 4. Adjust the tracking. We want to pull large headings in with a negative 0.02M tracking while opening up tiny 12 pixel uppercase eyebrows to a positive 0.08m.
And finally, move 5, we flip those messy multi-line-centred feature cards into crisp left-aligned rags and apply our text wrap properties. And speaking of wrapping text, these new CSS properties are absolute game changers. When you apply text wrap balance to headings and card titles, it automatically orchestrates a harmonious, even number of words per line.
It completely eliminates those awkward, jagged edges. And for paragraphs, we use text wrap pretty, which automatically prevents orphans, you know, those sad single words left stranded at the bottom of a block of text. The best part?
It does all of this dynamically without changing the element's maximum width. Distinct brand visual archetypes. This is how we break out of that generic SAS uniformity. Because the truth is, one single ratio never fits every brand.
For a crisp Swiss or technical utility brand, you're going to want a highly compact 1.125 to 1.2 productive ratio with strict 60 character columns. It feels dense, efficient, and perfect for high density scanning. But contrast that with a tactile craft brand.
There you'd want a grounded 1.25 ratio paired with 18-pixel storytelling copy and a generous 1.6 line height. It totally changes the pacing, inviting the user to slow down and actually read a story.
And then you have something like a warm editorial archetype. This leans into a much more dramatic 1.25 to 1.333 expressive fluid ratio. It might feature a large 20 to 22 pixel deck lead-in and really airy 65 character pros.
The crucial takeaway here is that intentionally manipulating these clamp and ratio values gives you direct tool agnostic control over the brand's entire emotional vibe. The math literally dictates the mood. And finally, section 5, the size leading tracking matrix.
These are the quantified rules for macro readability. If you take absolutely nothing else away today, remember this inverse physical relationship. As your text size goes up, your leading and tracking must mathematically go down.
It's a universal rule. A massive 48 to 64 pixel H1 heading requires a super tight line height, around 1.05 to 1.12, and negative 0.02 EM tracking, just a visually hold together. But a tiny 11-13 pixel all caps eyebrow?
That needs a looser 1.2 to 1.3 line height and heavy positive tracking, up to 0.12 em just to remain legible. Meanwhile, your standard body copy sits comfortably right in the middle. And the best part, this entire framework is completely tool agnostic.
These values power web content accessibility guidelines 1.4.4 zoom safe clamp rules using REM and viewport width units. You can plug this universal formula directly into your Figma max width variables, your Webflow or Framer Fluid styles, or just raw HTML and CSS.
It guarantees layout equilibrium everywhere, regardless of your text stack. So, we've completely perfected the text blocks themselves today, establishing beautiful fluid readability. But a layout isn't just the text, right?
It's the negative space breathing around it. We've deliberately held back our general four pixel and eight pixel section spacing tokens today. So you'll definitely want to join us next time as we master spacing and visual rhythm.
Until then, ask yourself is your typography dynamically orchestrating the reader's emotions, or are you still just guessing with pixels? Thanks for joining this explainer, and we'll catch you on the next one.