03 / Illustrated reference / Butterick / 11 November 2026
A practical guide to reading typography
The principles behind the typography rubric, with adjustable settings and original visual examples for documentation themes.
Elegant is a collection of themes for SmallDocs, a Python website generator. This guide explains the typography principles used to review that collection.
Set body text before display text
The body is where a documentation reader spends most of their time. Choose its typeface, apparent size, line spacing, and reading width together. Typographers call the reading width the measure and line spacing the leading. Then make navigation, headings, captions, and code fit that reading system. These notes paraphrase Butterick's guidance and use original examples. They do not replace the book.
Body size
A starting range for web reading, adjusted for the typeface's apparent size.
Line spacing
Leave enough space to follow each line while keeping the paragraph together.
Average line length
Count actual rendered characters, including spaces. A CSS width alone cannot establish it.
A small reading laboratory
Change one setting at a time, then judge the complete paragraph. The CSS width unit ch is based on the width of the font's zero character. The line counter uses rendered character positions instead of estimating a count from that unit. At narrow window sizes the container limits the requested width.
A good reading page gives the argument a quiet place to unfold. The reader should be able to follow a sentence, find the next line, and recognize a new section without studying the interface. Type size, line length, and line spacing work together. Extra space helps when it reveals a relationship; too much can pull a paragraph apart. A strong theme makes these decisions deliberately and then carries them consistently through the rest of the document.
A short sample is sensitive to word lengths and paragraph endings. The average for complete lines estimates line capacity and excludes the final short line. The all-line average includes it. Neither replaces reading a long chapter.
Compare line spacing
A reader should be able to find the next line without losing the sentence. The space between lines changes the texture of the whole paragraph.
A reader should be able to find the next line without losing the sentence. The space between lines changes the texture of the whole paragraph.
A reader should be able to find the next line without losing the sentence. The space between lines changes the texture of the whole paragraph.
The settings compare line spacing without assigning universal good or bad labels. Font proportions and line length influence the result.
Set heading size and spacing
Start with spacing and a modest change of weight or size. Use a small number of distinguishable levels. Butterick prefers restrained, left-aligned section headings and generally favors bold over italic; a literary italic can still be a conscious design exception. Tracking means extra letter spacing. Read the heading guidance.
A smaller thought
The section heading is bigger, bold, tracked, and capitalized all at once. The paragraph must work harder to reclaim attention.
A smaller thought
A modest weight change and a larger gap above the heading reveal the structure while keeping the argument in view.
Space between paragraphs and headings
Mark the beginning of a paragraph with an indent or a gap. Usually, one marker is enough. Butterick describes paragraph separation around half to one body em, where an em equals the body text size. Around headings, leave more space above than below so the heading belongs to its following text. Paragraph spacing; heading spacing.
An idea begins here and is developed in a paragraph.
The next paragraph belongs to the same argument, but the oversized gap suggests a new section.
An idea begins here and is developed in a paragraph.
The next paragraph belongs to the same argument. A clear but modest gap marks the new start.
Set margins from the reading width
Set the reading width first, then accept the space around it. Do not stretch prose just because the viewport is wide. Let readable measure determine the margins instead of setting a fixed decorative width. Page margins.
Choose typefaces and letter spacing
Choose a typeface suited to its role, with designed emphasis styles and reliable fallback fonts. Serifs are the small strokes at letter ends. A serif typeface is not automatically better than a sans serif typeface, which has no such strokes. Butterick is particularly skeptical of most free and system fonts. Our review judges visible quality and suitability for sustained reading separately from font cost.
Reading is a continuous activity. Excess space between lowercase letters can weaken the shapes of words.
Reading is a continuous activity. The font already contains spacing decisions for ordinary lowercase text.
FIELD NOTES / READING
Butterick recommends extra letter spacing, or tracking, for short runs of capitals, usually 0.05 to 0.12em. Ordinary lowercase generally does not need it. Letterspacing.
Set punctuation and emphasis
“Read slowly,” she said. The reader’s notes — concise, precise, and useful — became a small reference.
Curly quotes and apostrophes, one space after a sentence, proper dashes, and restrained emphasis support the text.
query = "room" slug = "a-room-with-a-view"
Code keeps literal straight quotes and hyphens because those characters have program meaning.
Quotation marks; bold or italic; hyphens and dashes. Content punctuation is shared by all gallery specimens, so it is not used to invent differences between themes.
Set code size and typeface
Monospace typefaces give each character the same width. Butterick objects to their use for ordinary body text but explicitly recognizes code as a useful exception. A documentation theme needs a clear monospace face, preserved indentation, distinguishable symbols, and a contained scroll area. Monospaced fonts.
0O 1Il {}[]() => != <=
books = find_books(library, "room")0O 1Il {}[]() => != <=
books = find_books(library, "room")These examples come from Elegant. The original custom mobile example uses 11.9px code. The current project themes use 16px code when the browser base text size is 16px. The typography rubric keeps its 14px code threshold. Neither the examples nor that threshold give a numeric code-font rule from Butterick.
Check text contrast
Restrained color helps the reader understand what is a link, an aside, or a syntax token (a colored word or symbol in code). Check every relevant surface in both modes. Butterick discusses screen comfort and color restraint; the numeric 4.5:1 normal-text threshold comes from the Web Content Accessibility Guidelines (WCAG). The threshold is a minimum, not a definition of beauty.
A 17px paragraph can still be difficult to read when the foreground and background are too similar.
A calm palette can preserve its warmth while using enough contrast to support sustained reading.
Color. Review main prose, small captions, links, code, and supporting text separately; a good body ratio does not guarantee the rest.
Review a theme
- Read a long, representative chapter before adjusting ornamental details.
- Set body face, size, measure and leading as one system.
- Check paragraphs, headings, lists, links, captions, code and tables in both modes.
- Inspect narrow layouts with readable text and contained code scrolling.
- Keep deliberate exceptions, and document why they help the intended reader.
The references above point to Matthew Butterick's Practical Typography. For his web-specific position on design identity, see Websites. The weights and partial-credit bands used in the assessment are our own. All demonstrations on this page are original HTML compositions.
November line spacing and code size
The current themes use 1.60 leading and larger code by choice. The line spacing lies outside the fixed Butterick preferred band, so the new scores show the deduction. Inspect the actual page before adjusting the reading settings for tighter line spacing. The handbook below explains those settings. Do not shrink interface text or code just to improve a prose score.
Current results and the unchanged rubric / Reading roles and optional density