Measure, leading and the 65-character line
A practical guide to making long-form text comfortable on every screen size.
Why twelve columns, four breakpoints and a handful of predictable classes beat a pile of one-off overrides when you build for reading.
Read the essayA practical guide to making long-form text comfortable on every screen size.
How inline-size and margin-inline simplified our component library.
Gaps that scale with the viewport and why 24 pixels is a good default.
Five patterns for keyboard navigation that survive a design review.
A lightweight template for feedback that leads to decisions.
When a precompiled stylesheet is the right amount of tooling.
Essay · Layout
Most layouts fail in the gaps, not the boxes. A grid is the agreement about where those gaps live, and the smaller that agreement is, the longer it survives.
Twelve columns divide evenly by two, three, four and six. That single fact explains most of its popularity. Everything else is a question of which classes you allow yourself to write.
Every class should say what it does, where it goes, and when it applies.
Horizontal structure is only half the story. Pick a base unit, usually eight pixels, and derive every gap and padding from it. Consistency reads as quality long before anyone can say why.
A card row that is one column on phones, two on tablets and three on desktops needs three classes:
<div class="nar-grid nar-gap-auto">
<article class="nar-span-12 nar-span-md-6 nar-span-lg-4">…</article>
</div>
A small vocabulary is easier to teach, easier to review and easier to delete. That is the whole argument.