Typography & Typefaces
Approved typefaces, the modular scale, line-height rhythm, and OpenType features.
Typography is the invisible architecture of the page. Standard imposes a
strict modular scale based on mathematical ratios and limits typeface
choices to high-utility families that preserve clarity, ergonomics, and dignity.
Every typographic decision in Standard is derived from historical typesetting research
and rigorous screen geometry rather than subjective aesthetics.
The Standard framework documentation provides the engineering specifications, tokens, and utility classes.
For the underlying history of letterpress printing, mathematical proofs, and design philosophy, explore the living notes in the Utopie Garden:
- Measure and Leading (local note) — The ergonomics of reading and physical lead strips.
- Trim and Half-Leading (local note) — The digital bounding box flaw and
text-box-trim. - Silver Ratio and Golden Ratio (local note) — Why $\sqrt{2} \approx 1.414$ governs screen UI where $\phi \approx 1.618$ fails.
- Typography Stylesheet & Tokens — Compiled CSS font pairings, scale variables, and typography classes.
- Vertical Rhythm and Baseline Grid (local note) — Why arbitrary decimal multipliers break cadence.
Approved Typefaces (Font Stacks)
Three semantic stacks, optimized for screen rendering and accessibility:
- Sans-serif (interface & body text) —
Instrument Sans,system-ui. Modern, geometric, humanist; excellent small-scale readability. - Serif (editorial reading) —
Newsreader,Instrument Serif. For long narratives — a literary, grounded tone. - Monospaced (data & code) —
IBM Plex Mono,ui-monospace. Code blocks, tables, metadata, aligned numbers.
Semantic Roles
Every interface element consumes an abstract typographic role, never a
physical font directly:
--font-text— reading body text (defaultvar(--font-sans)).--font-header— titles and headings ("Inter", or a theme-specific typeface).--font-interface— buttons, form controls, navigation (var(--font-sans)).
The Modular Scale (Optical Scale)
Text sizing is never arbitrary — it follows a geometric scale based on the
Silver Ratio ($\sqrt{2} \approx 1.414$):
$$\text{Size}_N = \text{Base} \times (\text{Optical Ratio})^N$$
While the classical Golden Ratio ($\phi \approx 1.618$) is celebrated in art, it expands too quickly for digital screens ($16 \to 26 \to 42 \to 68\text{px}$), breaking multi-column layouts and mobile headers. The Silver Ratio ($\sqrt{2} \approx 1.414$, the geometry of the ISO 216 paper standard) provides a self-similar octave doubling every two steps ($16 \to 32 \to 64\text{px}$), maintaining unmistakable hierarchy without container overflow.
(Read the complete mathematical analysis in the Garden: Silver Ratio and Golden Ratio / local note.)
On screens under 768px, --optical-ratio modulates to --ratio-mobile (1.272, the square root of the golden ratio or half-step silver factor) to compress headings harmoniously without broken line wraps (see Responsive & Mobile Architecture).
| Token | Desktop Size (1.414) |
Mobile Size (1.272) |
Utility Class | Usage / Role |
|---|---|---|---|---|
--scale-d5 |
~9px |
~9px |
.text-3xs / .text-scale-d5 |
Fine print, legal mentions (floored at 9px) |
--scale-d3 |
~12px |
~12px |
.text-xs / .text-scale-d3 |
Frontmatter metadata, labels |
--scale-d2 |
~14px |
~14px |
.text-sm / .text-scale-d2 |
Image captions, helper text |
--scale |
16px (1rem) |
18px (1.125rem) |
.text-base / .text-scale |
Main body text (--font-size-mobile on mobile) |
--scale-2 |
~22.6px |
~20.6px |
.text-lg / .text-scale-2 |
Subheadings, H3 |
--scale-3 |
~32.0px |
~26.2px |
.text-xl / .text-scale-3 |
Section titles, H2 |
--scale-4 |
~45.3px |
~33.3px |
.text-2xl / .text-scale-4 |
Article titles, H1 |
--scale-5 |
~64.0px |
~42.4px |
.text-3xl / .text-scale-5 |
Main document title / Hero display |
--scale-6 |
~90.5px |
~53.9px |
.text-4xl / .text-scale-6 |
Display numbers, drop caps |
Line Heights, Leading & Optical Trim
Standard calculates line heights and spacing dynamically from reader density:
- Density Anchor (
--density) — clamped between1.35and1.75, defaulting to the silver ratio1.414. - Base Line Height (
--line-height) — resolves directly from--density. - Leading Token (
--leading) — the actual vertical space between lines beyond the font size:
(See the historical origins in Measure and Leading / local note.)--leading: calc((var(--line-height) - 1) * var(--font-size)); - Optical Trim Token (
--trim) — exactly half of the leading:
In CSS, the browser splits extra line space evenly: 50% above and 50% below the font bounding box (half-leading). This creates unwanted digital whitespace when aligning headings, icons, or buttons. The--trim: calc(var(--leading) / 2);--trimtoken provides the mathematical half-leading offset, matching modern CSStext-box-trim: trim-bothbehavior.
(See Trim and Half-Leading / local note.) - Compact Line Height (
--line-height-compact) — used for large headings (H1, H2) to prevent multi-line titles from drifting apart. - Letter Spacing — optically tuned:
--tracking-tight(-0.01em) tightens large titles;--tracking-open(0.01em) opens small uppercase labels.
Vertical Rhythm & The Baseline Engine
Vertical rhythm ensures that every element on the page — text, headings, cards, and gutters — steps to an unwavering harmonic pulse.
- Official Rhythm Unit (
--baseline) — anchored at1rlh(root line height). - Base Space (
--space: var(--baseline)) — locks all component margins and gutters directly to text leading. - No Arbitrary Multipliers: Standard strictly prohibits floating decimal multipliers (
calc(var(--space) * 1.45)), enforced automatically bystnd check(ERR_ARBITRARY_RHYTHM_MULTIPLIER). - Harmonic Composition: Spacing is composed exclusively via integral steps (
--space-1..--space-12), harmonic divisions (--space-half,--space-d1..--space-d5), and optical trim (--trim):
(Read why arbitrary floats destroy rhythm in Vertical Rhythm and Baseline Grid / local note.)/* Composed vertical rhythm: 1.5x beat */ margin-block-end: calc(var(--space) + var(--space-half)); /* Optical baseline adjustment */ padding-block-end: calc(var(--space) + var(--trim));
System OpenType Features
Enabled by default, per family:
- Inter —
"calt"(contextual alternates),"cv05"(lowercase l),"cv11"(capital W),"ss03"(digit alternates). - Instrument Sans —
"figa"(ligatures),"ss01","ss02","ss05". - UI —
"dlig"(discretionary ligatures),"zero"(slashed zero,0vsO).