Comment on Taming Typography: Building a Modern CSS Reset by Devan Vinsi
CSS-Tricks css-tricks.com
Listen to this summary
Thank you for pulling all of this together into tidy-typography.css, Stu. The section I keep coming back to is the one on rendering and fallback sanity. I spend a lot of time previewing font pairings, and the fallback swap is exactly where most sites lose their rhythm — a display face loads, the fallback is visibly narrower or taller, and the whole layout jumps. Your point about font-size-adjust: from-font reducing that apparent size change while a webfont swaps in is the clearest explanation of that fix I have read, and pairing it with font-synthesis: none so the browser does not invent a bold or italic face the family does not actually have makes the reset feel considered rather than…
The fluid typography section was the most useful part for me in practice. Using container query units so a heading scales to the column it occupies, instead of clamp() with vw scaling it as though it were always in a full-width article, solves a real problem I hit constantly: the same heading in a 300px sidebar should not behave like the same heading in the main column. The same goes for text-wrap: pretty and text-wrap: balance replacing the JavaScript orphan fixers I used to reach for, and the hyphenation tuning with hyphenate-limit-chars and hyphenate-limit-lines — I had never thought carefully about the ladder effect of several hyphenated lines in a row until this article. I also…
More ways to use this
Open on another device
Scan to open this page. Your saved notes and account access are not included.