Palette ←→
zambo.io

Post

Snapping a design system to an 11px lattice

2026–08–14 · 9 min · css design


Departure Mono is a bitmap face. Its glyphs are drawn on a pixel grid, which means the font has opinions about what sizes it will tolerate. Set it at 17px and the stems land on fractional pixels; the browser antialiases them and the whole thing goes soft in a way that reads as cheap rather than retro.

The fix is not subtle and that turns out to be the point: every dimension is a multiple of 11. Type sizes, line heights, gaps, padding, the page gutter. The grid stops being a guideline and becomes a constraint you can check mechanically.

The scale falls out of the unit

Once 11 is the unit, the type scale is not a design decision so much as an arithmetic one. You get 11, 22, 33, 44, 88 for free, and 14 and 16.5 as the two useful in-between steps for reading text.

/* every value is 11 × n, or 11 × n/2 */
--text-label-caps: 11px;
--text-body-sm:    14px;
--text-body-md:    16.5px;  /* 11 × 1.5 */
--text-h3:         22px;
--text-h2:         33px;
--text-h1:         44px;
--text-display:    88px;

Headings get line-height: 1. Pixel type carries generous built-in sidebearing and leading, so the usual 1.2 multiplier pushes multi-line headings apart until they stop reading as one object.

The constraint is the aesthetic. Rhythm comes from the lattice, not from decoration — which is convenient, because a single-weight monospace family has almost no other levers to pull.

Where it breaks

Two places, both worth knowing before you commit:

  • Borders. A 2px rule is not on the lattice and never will be. Hairlines get their own escape-hatch tokens and you stop worrying about it.
  • Long-form reading. 16.5px pixel type is legible but effortful past a thousand words. If the site is writing-first, this is the token you swap.

The second one is the real tradeoff. Keeping the pixel face for headings, labels, and code while setting body copy in something built for prose costs you two tokens and keeps the identity intact. Purity is not the goal; the reader is.

Annotation voice — clay on light, mud on dark. Used for asides that should recede without disappearing.


Filed under css, design. Corrections welcome — open an issue.