Setting Text — the space inside and around a line of type: how tall each line is, how long, how far apart its paragraphs sit, how its letters are spaced, and what happens when it runs out of room.
A type scale decides which sizes and weights exist; setting decides how much room each line gets, and it is the half that users actually see. The same scale, set badly, reads as a different and worse product, which is why setting gets its own rules rather than a column in the scale table.
Typography Part I §III fixed nine voices, each a size, a weight, a tracking value and a leading. Most teams that adopt a scale like that copy the sizes and weights into their tokens and leave the rest to whatever the CSS reset does. What the reset does is set line-height: 1.5 on the body and let everything inherit it, leave every column as wide as its container, put the same margin under every paragraph, and never touch letter-spacing. Nothing in that list is a size or a weight, so a review against the scale passes. The screen still looks wrong.
Here is a sample record from an invented lab archive set that way. Every size, weight and family on it comes from the scale. Look at it before turning the line boxes on.
| Aliquot | Location | Volume | Thaws | Last assay |
|---|---|---|---|---|
| SMP-2291-PL-A | /coldroom-b/rack-14/box-07/pos-01 | 0.00 mL | 1 | QC-17 · Oct 4 |
| SMP-2291-PL-B | /coldroom-b/rack-14/box-07/pos-02 | 1.50 mL | 0 | — |
| SMP-2291-PL-C | /coldroom-b/rack-14/box-07/pos-03 | 1.50 mL | 0 | Reserved |
| SMP-2291-PL-D | /coldroom-b/rack-14/box-07/pos-04 | 0.75 mL | 11 | QC-09 · Sep 30 |
The failures are all in the space. The title, at 28px with the inherited 1.5, gets a 42px line box, which leaves the overline floating above it and the metadata detached below it. The description runs across the whole record at 76 to 82 characters a line, so the eye loses its place on every return sweep. Its two paragraphs are separated by exactly one line of leading, so the break between them reads as no stronger than a line break and no weaker than the gap before the table. The body text carries a little positive tracking someone added to "open it up," the overline carries none, and the one word that needed emphasis got italics, which at 16px in a geometric sans barely registers. In the table, every ID is truncated at the end, so four different aliquots read as the same SMP-229…, and every location reads as the same path. The log's 18px lines don't divide its 96px window, so the last line is sliced through its middle.
None of those is a size or a weight problem. They are the six things this part covers: leading (§II), measure (§III), paragraph and block spacing (§IV), tracking (§V), numerals (§VI) and truncation (§VII), plus emphasis (§VIII) and the way density posture moves them (§IX). Section X audits this record and resets it with nothing but those values.
The boundaries, stated once. The scale, the families, the weights and the tokens are Typography Part I; which voice speaks where on a screen, and contrast, are Part III. Baselines in mixed-size rows and the rule that the eye aligns visible edges are settled in Grid & Layout Part II §VIII, and right-aligned numeric columns in §VI of the same part. Vertical rhythm between sections is Spacing & Density §IX. This part owns only the space inside text: within a line, between lines, between paragraphs, and at the end of a line that doesn't fit.
Leading is set per voice as a pixel value on the 4px grid: 20 for the 13px UI voice, 24 for 16px reading text, tighter ratios as size grows. Unitless 1.5 is wrong as a system because a single ratio can't serve both ends of the scale. It lands on the grid at exactly one step and gives every heading far too much air.
Leading is the height of a line box: the distance from one baseline to the next. The term comes from the strips of lead set between rows of metal type; in CSS it is line-height, and the glyphs sit centered in it with the leftover split above and below as half-leading. It has two jobs that pull in opposite directions. In running text it has to be open enough for the eye to find the start of the next line after a long sweep back. In UI text, which is mostly one line in a row, a cell or a control, it is the height of the box the text occupies, and every extra pixel is a taller row.
For the 13px UI voice, 20. At 16 the line box is barely taller than the glyphs: descenders on one line nearly meet ascenders on the next, and any text that wraps (a helper message, a two-line cell, a menu item with a description) turns into a block. At 24 the text floats: a list of one-line rows at 24 is a list of rows four pixels taller than it needs to be, and the lines of a wrapped message drift apart until they read as separate messages. Eighteen looks fine and is the most tempting wrong answer, because it is the ratio most systems used before they had a grid. It breaks the grid on every other line: a paragraph of 18px lines ends between grid lines half the time, and a list of 18px rows drifts off the 4px rows of everything beside it. Twenty is on the grid, gives a ratio of about 1.54, and is the value Material 3 and Carbon both converged on for their 14px body styles, which carry the same job at one size up.
For 16px reading text, 24. Twenty crowds a paragraph at a real measure: the eye sweeping back from the end of a 66-character line has to land on a line only four pixels clear of the one it just read. Twenty-eight is the editorial setting, right for long-form articles at wider measures, and in a product it makes a three-line description look like three captions. Twenty-four, a ratio of 1.5, is the reading voice in the scale.
The common advice is unitless line-height: 1.5 on the body, and it exists for a real reason: a unitless value inherits as a ratio, so a child with a different font size gets a proportional line box, where a pixel value would inherit as a fixed height. That reason disappears once every text style is a voice token that sets size and leading together, which is what Typography Part I §VI does. What's left is the ratio itself, and across the scale it is wrong far more often than right:
One ratio gives half-pixel line boxes at 11 and 13, a 21px box at 14, and line boxes at heading sizes that are half again as tall as the type, so a two-line heading reads as two headings. The ratio that suits reading text is too loose for display, and the ratio that suits display is too tight for reading. Type families that publish their own guidance say the same: the leading ratio falls as size rises. Apple's text styles go from about 1.3 at body size to about 1.2 at the large titles, and Material's from 1.5 at its 16px body to about 1.12 at the largest display style. The scale's leading column (1.4 at the overline, 1.54 at the UI voice, 1.5 at reading, 1.29 at the heading voice, 1.11 at display) is the same curve with every value rounded to the 4px grid.
| Voice | Size / leading | Ratio | Why this value |
|---|---|---|---|
| text-2xs | 10 / 14 | 1.40 | Uppercase has no descenders to clear; 14 keeps a tag's box small enough for a 20px pill. |
| text-xs · text-sm | 11 / 16 · 12 / 16 | 1.45 · 1.33 | Metadata, helper text and dense cells. Sixteen is the smallest box that keeps a wrapped hint legible. |
| text-base · text-md | 13 / 20 · 14 / 20 | 1.54 · 1.43 | The UI voices. One leading for both, so a posture change from default to comfortable never changes a row height by itself. |
| text-lg | 16 / 24 | 1.50 | Reading text at a 65–85 character measure. |
| text-xl · text-2xl | 20 / 28 · 28 / 36 | 1.40 · 1.29 | Headings wrap rarely and short; when they do, the lines must read as one heading. |
| text-3xl | 36 / 40 | 1.11 | Display numbers and empty-state titles. Almost always one line. |
Leading lives in the token as a pixel value, never unitless. If the system's sizes are in rem so that they follow the user's default font size, write the leading in rem too (1.25rem for 20px at the default root), so the pair scales together and stays on the grid at the default. Two things follow. Never derive a fixed height from leading: a row that is "exactly two lines" clips the moment a user applies the text-spacing overrides that WCAG 1.4.12 requires a page to survive, so heights are minimums and boxes grow. And never reset leading inside a component to make it fit; if a 13px label doesn't center in its control, the control's padding is wrong, not the leading (Spacing & Density §VIII: a control's height derives from its inset and its line height, both on the grid).
Prose gets a measure of 65–85 characters, set as a maximum width in em on the text itself, and the width that produces it depends on the face and on the leading: in this series' sans at 16px with 24px leading that is 30–34em, 480–544px; with the open 27px leading this site's own articles use, the same face reads at 38em, 620px, the top of the range. The 640px column that is often quoted holds 83–91 characters at 24px leading, which is past it. UI text (labels, cells, menu items) has no measure; only running text does.
Measure is the length of a line of running text, counted in characters including spaces. The book-typography range is 45 to 75, with 66 the long-standing ideal; Butterick and Bringhurst give versions of it, and it was derived for print leading. On screen, where leading runs more open, reading-speed studies find long lines of 80 to 100 characters read as fast or faster, while readers say they prefer 55 to 75. The range this series uses sits where those overlap: 65 to 85, with the longer end earned only by open leading, because the return sweep from the end of one line to the start of the next is what fails on a long line, and more space between lines is what makes that sweep land. Below 55 the eye spends more time jumping than reading and every phrase breaks across lines. The specimen sets the same paragraph at four widths in the same face, size, leading and tracking; the counts are measured per rendered line.
Grid & Layout Part I §III estimated that 60–75 characters at 16–18px puts a text column between about 640 and 820px. Measured in a real proportional face, that estimate is a third too wide. It is the monospace arithmetic: 66 characters × 0.6em × 16px is 634px, and in IBM Plex Mono at 16px a 640px line does hold 65–68 characters. A proportional sans averages much narrower characters, about 0.46em in DM Sans across running English, because spaces and lowercase letters are narrow and they are most of the text. The same 640px holds 83–91 characters of the paragraph above. A wider sans moves the number only a little: the system UI face on macOS also measured 81–94 at 640px. The measure is a count of characters, and the width that produces it depends on the face; measure it, never compute it from a rule of thumb.
Two units look right for this and aren't. A pixel width is correct for one size only: the 480px that gives 61–69 characters at 16px gives about 88 if the text drops to 12px. The ch unit sounds like "characters" but is the width of the digit zero, which in most sans faces is far wider than an average character; in DM Sans 1ch is 0.68em, so max-width: 66ch is a 720px column holding about a hundred characters. em scales with the text's own size, and a measured em count transfers between sizes in the same face.
| Written as | Width at 16px | Characters a line, DM Sans, measured |
|---|---|---|
| max-width: 640px | 640 | 83–91. Past the range at 24px leading, and wrong again at any other size. |
| max-width: 66ch | 720 | 93–103. The unit counts zeros, not characters. |
| max-width: 30em | 480 | 61–69, average 66. Holds the count at any size in this face; 34em reaches 75, 38em reaches 85 and needs leading of 27px or more. |
The measure caps the text, not the container. Grid I's prose container (about 720px) and its narrow one (560–640px) are still the right homes for reading screens: they hold headings, images, code, tables and forms that may use the full width. Inside them, paragraphs, lists and blockquotes carry max-width: var(--measure). The order is measure first, then the container sized to hold the measure plus whatever wider content the page needs. This is how the series' own theme is built: an 820px container whose paragraphs are capped separately.
UI text has no measure. A label, a table cell, a menu item, a button and a toast are read as phrases, not lines, and their width comes from the layout: a table column gets its width from its content (Grid & Layout Part III §II), and a label gets the width of its field. Capping them at 30em does nothing useful and occasionally truncates something that had room. The measure applies to anything a person reads line after line: descriptions, comments, help text longer than two lines, documentation, release notes, error explanations. A description field in a detail panel is prose, even in a dense tool, so it gets the measure even when the panel is wider.
Paragraph spacing is more than zero and less than a line: 16px under 24px leading in prose, 8px under 20px in dense UI. It sits two steps below the gap around blocks and further still below the space above a heading, which is always larger than the space below it. This is Spacing & Density §V's nesting rule applied to text, with the line as the innermost level.
A body of text has four nested gaps, and the nesting rule says each must be clearly larger than the one inside it. Lines sit one leading apart. Paragraphs sit one leading plus the paragraph gap apart. Blocks (a list, a table, a property box, a figure) sit apart from the paragraphs around them by the block gap. Headings open a new group, so they get the largest gap above and the smallest below. The two common failures are at the paragraph level: no paragraph spacing at all, and paragraph spacing equal to the leading, a blank line between paragraphs.
With no paragraph spacing, the break between paragraphs is visible only when the last line of a paragraph happens to end short. When it ends near the full measure, as the first paragraph nearly does at this width, two thoughts run together. Print solves this with a first-line indent; screens don't indent, because indents fight left-aligned UI around the text and disappear on the narrow columns where paragraphs are most often short. Screens use space.
With paragraph spacing equal to the leading, each paragraph is followed by a blank line. That reads clearly in isolation, which is why it is the most common default, but it puts the paragraph gap one step from the block gap. Paragraphs, the property box and the next heading then sit at 24, 32 and 48, close enough that the eye stops reading levels: the second paragraph looks as separate from the first as the property box does, and the box no longer reads as belonging to the handling notes. The nesting rule wants adjacent levels at least one scale step apart and preferably two, and text needs the stronger version because the line pitch is already an inner level. At 16, each gap in the stack is double the one inside it.
Inside dense UI, paragraph spacing is half a line or less. A note in an inspector, a multi-paragraph helper or the body of a confirmation dialog sits inside a container whose own inset and stack gaps are small (Spacing & Density §VII). A prose-sized paragraph gap there inverts the nesting: the paragraphs end up further apart than the note is from the property box under it, which is the second frame's failure. The values scale down with the container, never below the leading's own gap: 8 at 20 leading, 4 between a heading and its first line, 16 to the next block.
A heading's space above is always larger than its space below, two to three times, because a heading belongs to the text it introduces. Spacing & Density §IX settled this for page sections; inside text the same rule holds at every heading level, and both frames above use it (48 above, 8 below in prose; 16 above, 4 below in dense UI). What this part adds is the reason a declared gap is never the gap the eye sees. Every line box carries half-leading above and below its glyphs: 4px in a 16/24 line, 4px in a 28/36 heading, 3.5px in a 13/20 label. A declared 8px gap between a heading and its first paragraph is 16px or more of white between ink once the half-leading on both sides and the descender space are counted, and a declared 0 is not zero.
Two consequences. First, measure gaps between line boxes, as tokens do, and accept that the visible gap is larger by a fixed amount per voice; don't nudge individual gaps to compensate. Second, where an optical match matters, such as the top of a card's first heading against the card's inset, text-box: trim-both cap alphabetic trims the line box to the cap height and baseline so that the declared inset is the visible inset. It is supported in Chromium and WebKit; elsewhere the box simply keeps its half-leading, which is a safe fallback.
No baseline grid in product UI. Spacing & Density deferred strict vertical rhythm, every baseline on a shared grid, to this chapter. The verdict is not to build one. Product screens put several voices in one row, put text inside boxes with borders and padding, and stack components from different teams; holding all of that to a 4px baseline grid takes fractional offsets in every component and breaks as soon as one of them changes. What the eye actually detects is stacks drifting off a shared rhythm, and keeping every leading and every gap a multiple of 4 already prevents that. Line boxes on the grid, gaps on the grid, and the baselines land where they land.
Tracking is tight above 20px, loose on uppercase small text, and never on body text. The scale's values are the verdict: −0.015em on the 28px heading voice, +0.08em on the 10px uppercase voice, 0 on everything a person reads in sentences.
Tracking is uniform letter-spacing across a run of text, the CSS letter-spacing, always in em so that it scales with the size. A typeface's built-in spacing is tuned for one range of sizes, usually text sizes around 12–16px. Larger than that, the same proportional spacing looks loose, because the gaps between letters grow faster than the eye needs them to. Smaller than that, and especially in capitals, which were designed to start words rather than to stand in rows, letters crowd. Variable families with an optical-size axis adjust this themselves (Typography Part I §VII), and Inter publishes a tracking formula by size. For a face without either, the scale's tracking column does the same job by hand.
Uppercase small text gets +0.08em. At 10px with no tracking, capitals in a mono or a sans sit closer than lowercase does, because each capital fills its cell; the overline turns into a dark bar that has to be decoded letter by letter. At +0.04em it is better and still tight. The scale's value is +0.08em, about 0.8px a letter at 10px, which is where each letter separates without the word breaking into spaced capitals. This series' own chrome sits a little looser, +0.10em on specimen labels and +0.12em on overlines, for an editorial page read at leisure; anything from +0.06 to +0.12 reads as deliberate, and the product voice takes the middle. One mechanical detail: letter-spacing is added after every glyph, including the last, so a tracked label in a centered or right-aligned slot sits off by one letter's tracking. In a pill that is under a pixel and can be ignored; in a right-aligned column header, trim it with a negative end margin of the same amount.
Headings at 20px and above get negative tracking, −0.01em at text-xl and −0.015em at the 28px heading voice, rising to −0.02em at display size. The effect is small in pixels (4.6px across the eleven glyphs of the specimen) and large in character: untracked, a large heading in a geometric sans reads like body text that has been enlarged. Past about −0.03em letters start to touch, first at pairs like ro and oo, and the word becomes a logo.
Body text is never tracked. The face's own spacing at text sizes is the most carefully tuned thing in it, and both directions damage it: negative tracking at 13px closes counters and makes rn read as m; positive tracking, the usual "it feels cramped" fix, breaks words into letters and slows reading. If body text feels cramped, the leading or the measure is wrong. The one exception is the scale's own +0.01em on text-xs, a hair of opening for 11px lowercase metadata, which is a size correction rather than a style. Tracking is a property of the voice: set once in the token, never added per screen.
Every number in a column, a counter or a timer uses tabular figures; proportional figures belong only in prose. UI numerals are lining, never oldstyle. Identifiers and hashes that must be read character by character go mono, and units and currency codes after a value take a smaller voice.
Grid & Layout Part II §VI settled the column: end-aligned, one precision, units in the header, one minus sign. That section also found that this series' sans, DM Sans as served by Google Fonts, has no tnum feature, so font-variant-numeric: tabular-nums silently does nothing in it. Following Typography Part I §V, the specimens here take their tabular figures from the mono. This section covers the figures themselves.
Tabular in every column, counter and timer; proportional only in prose. Proportional figures are the default in most faces because they set better in a sentence, where a narrow 1 beside a wide 0 looks even. Stack them, or let them change in place, and the variation becomes motion: a column's decimal points wander, and a ticking timer shifts sideways every second. The durations above, all end-aligned, show it; the proportional column's colons are spread over several pixels while the tabular column's land in one place. Running text keeps proportional figures, because "since 2019" in tabular figures has a visibly wide gap after the 1.
Lining, not oldstyle, in UI. Oldstyle figures have ascenders and descenders like lowercase letters, so 3, 4, 5, 7 and 9 drop below the baseline while 6 and 8 rise. In a paragraph of a book that blends numbers into the text; in a product it makes values look uneven and makes a 1 and a lowercase l nearly identical. Every common UI sans defaults to lining figures. The risk is a display or editorial face brought in for a marketing surface whose default is oldstyle, like Georgia above; set font-variant-numeric: lining-nums where the face supports it and don't use it for data where it doesn't.
Mono for values read character by character. Sample IDs, lot numbers, hashes, API keys, file paths and anything a person will type back or compare against another screen go in the mono voice. The reason is not alignment but identity: in most sans faces the capital I, lowercase l and the digit 1 are a few pixels apart, and the capital O and zero are distinguished by width alone. The three lot numbers above are different strings; in the sans, they are close to indistinguishable. Most data does not need this. Quantities, dates and names stay in the sans.
Units and currency codes are a smaller voice. In a stat tile the number is the value, and the unit after it is a label. Set at the value's size, "18.2 days" makes the unit as loud as the number and reads as a phrase. Set at the UI voice, 400, muted, on the same baseline (the rule from Grid & Layout Part II §VII), the number reads first and the unit qualifies it. Currency is one mark, not two. A product that handles one currency uses its symbol, at full size and before the number, because it is read as part of the value. A product that mixes currencies drops the symbol and uses the ISO code after the number, in the smaller voice, because $ alone no longer says which dollar and € or ¥ beside their code says the same thing twice. "$214,900 USD" is the common failure: it is a symbol-only product that added the code for safety, and the only reader it helps is one comparing US, Canadian and Australian dollars, who is better served by the code alone. In a table, units and currency go in the header and not in the cell at all.
Names truncate at the end, identifiers and paths in the middle, and numbers never. Descriptions clamp to a fixed number of lines instead of truncating to one. Headings wrap with text-wrap: balance and prose with pretty.
Text runs out of room in every product, and the choice is between three behaviours: wrap to more lines, truncate to one line with an ellipsis, or clamp to a fixed number of lines with an ellipsis on the last. Which one is right depends on where the information in the string lives. A name carries most of its meaning at the start. A path or an ID carries it at both ends: the root says where, the tail says which. A number carries it everywhere, and a truncated number is a different number.
End truncation for names and titles. "Ridgefield autumn sur…" still tells you which survey. It is the default text-overflow: ellipsis behaviour, and it is right for anything read from the start: names, titles, subjects, labels. The full string goes in the detail view one click away, or in a tooltip that keyboard focus also opens, since a hover-only tooltip doesn't exist on touch.
Middle truncation for identifiers and paths. The left list cuts its paths at the end, and three different files become the same /coldroom-b/rack-14/b…. Cut in the middle, the root and the distinguishing tail both survive. CSS has no middle ellipsis, so it's two spans in a flex row: the head truncates with an ellipsis and may shrink to zero, the tail is fixed and never shrinks. Keep the tail to the part that distinguishes rows: the file name, the last segment of an ID, the last six characters of a hash.
Never truncate a number. "1,284,3…" is not a shorter 1,284,310; it is an unreadable value that looks like data. When a numeric column runs out of room, the column wins and the text beside it gives up width (the fill column absorbs it, Grid & Layout Part III §II), or the number changes form: an abbreviated magnitude with the precision in a tooltip (1.28M), never a cut string.
Clamp descriptions; don't truncate them. A one-line description in a card says almost nothing, because the useful part of a sentence is rarely its first six words. Clamping at two or three lines (line-clamp, still shipped as -webkit-line-clamp) keeps the card's height fixed, which a card grid needs, and keeps enough of the sentence to judge whether to open it. In a detail view, nothing clamps; that is where the full text goes.
Balance headings, make prose pretty. A heading that wraps leaves its last word alone on the second line about as often as not, and a short heading split 90/10 reads as a heading and a fragment. text-wrap: balance evens the lines out, and it costs nothing on headings because browsers limit it to a handful of lines. text-wrap: pretty does a cheaper version for paragraphs: it avoids a single short word on the last line and leaves the rest alone. Both are progressive; a browser without them wraps normally. Neither belongs in UI text that sits in a fixed slot, like a cell or a button, where nothing should be wrapping at all.
Emphasis in UI is weight, one step that visibly registers, never italic. A row gets one emphasis at most. Links in prose are always underlined; links in UI chrome (navigation, tabs, menus) are bare or underlined by one choice made once for the product.
Weight, not italic. Italic is a book convention for emphasis inside a sentence, and it works there because a serif italic is a different design, visibly cursive. Most UI sans faces have an oblique, the roman slanted a few degrees, which at 13px changes the shape of the text so little that the emphasis is missed. Italic also renders worst at small sizes on low-density screens (Typography Part I §VIII). Inside the UI voice the emphasis is one step heavier at the same size and family, and the step has to be one the eye can find: in faces whose medium is cut distinctly (Inter, SF, IBM Plex Sans) that is 500, the weight the scale keeps for such faces (Typography Part I §IV). In this series' face the medium sits about a pixel of width from the regular at 13px, which is why the first attempt at the Right frame above, set at 500, registered less than the italic beside it; the frame now uses 600. The test is the frame itself: if the emphasized value can't be found at a glance, the step is too small, and the fix is a heavier step, never a second device. Italic keeps its legitimate jobs: titles of works, terms being defined, and placeholder-like text that is not a value.
One emphasis per row. A row is read as one unit, and emphasis is a ranking within it; two emphasized runs in one row cancel each other, and the middle frame above, every value at 600, ranks nothing: it is a heavier panel, not a panel with a point. Pick the one thing the row is about, usually the value that differs from its neighbours, and emphasize that. A status pill is an emphasis; a row that has one doesn't also bold its value. Hierarchy, which voice the row's heading uses and how it differs from the row, is weight 600 and size, and it is Part III's subject; using the same weight for hierarchy and for emphasis is the failure that part opens with.
Underline links in prose. In running text, a link is a word that does something, and the only reliable signal is one that doesn't depend on colour. This series' specimens are achromatic, which makes the point by force: the bare links in the first frame are invisible. A colour-only link fails the same way for anyone who doesn't perceive the hue difference, and WCAG accepts it only with a 3:1 contrast against the surrounding text plus a non-colour cue on focus and hover. A 1px underline offset 3px below the baseline, in a muted tone, is quiet enough not to stripe a paragraph and unambiguous.
UI chrome is a choice, made once. Navigation items, tabs, menu items and breadcrumbs are interactive by position: everything in a sidebar is a link, so an underline on each one adds nothing the position doesn't already say, and the common choice is to leave them bare and let the current item carry weight and hover carry a background. The weight has to be a step that shows: in this face that is 600, as on the current item in both frames, because 500 is about a pixel from its neighbours and the current item would look unmarked. A product that would rather keep its chrome at 400 marks the current item with a background instead, which then cannot also be the hover. Underlined navigation is not wrong; it is a quieter, more editorial register that some products wear well, and the right frame reads either way. What is wrong is mixing: a sidebar where some items are underlined and some aren't, or a product whose tabs are bare and whose breadcrumbs are underlined. Decide once, write it into the system, and keep prose separate from it: prose links are underlined whatever the chrome does, because a link in a sentence has no position to tell it apart.
Density posture moves the UI voice one step and changes the space around text; it never changes a voice's leading and never changes the measure. Dense logs and data tables set at text-sm, 12px on 16px leading, in every posture.
Spacing & Density §VII made posture one system-wide decision and left the text to this chapter. Typography Part I §III fixed which voice each posture uses: text-sm in compact, text-base in default, text-md in comfortable. What changes with the posture is which voice the controls and rows use, and the inset and block spacing around the text; each voice keeps its own leading, so the row heights fall out on the grid.
Posture never changes leading within a voice. If compact also tightened text-sm from 16 to 14, the system would have two versions of every voice and row heights that no longer derive from a token. The step change in size is the density change; the leading comes with the voice. The row heights in the panel above are all whole multiples of 4, and they match the control heights Spacing & Density gives each posture (28, 36, 44), because each is the voice's leading plus twice the posture's row inset.
Posture never changes the measure. The reading voice, text-lg at 16 / 24 in a 30em column, is the same in all three postures. A compact product is denser in its rows and controls, not in its paragraphs; widening a description column to fit more words per line in a dense tool gives the same 83–91-character lines §III measured, and they are as hard to read in a trading screen as in an article. Compact may move a long description into a narrower inspector, but its paragraphs still stop at the measure.
Logs and data-dense tables set at text-sm, 12 / 16. A log viewer, a terminal pane, a diff or a dense data table is read by scanning down, many short lines at a time, and the number of lines visible is the feature. At 12/16 the 192px window shows twelve whole lines. The same 12px text at unitless 1.5 gets 18px lines: ten and two-thirds in the same window, a sliced last line, and a grid that no longer divides the pane. Mono for logs, because the timestamps and IDs in them must line up and be readable character by character (§VI); the sans for dense tables, with tabular figures. Content a person reads line after line stays at 12 or above; the smaller voices are for labels and metadata, and the minimum sizes are Typography Part III §VII.
Setting problems are found by measuring, not by looking, and the audit takes about fifteen minutes per screen. Here is the sample record from §I after one pass: the same family, the same sizes, the same weights, the same content.
| Aliquot | Location | Volume mL | Thaws | Last assay |
|---|---|---|---|---|
| SMP-2291-PL-A | /coldroom-b/rack-14/box-07/pos-01 | 0.00 | 1 | QC-17 · Oct 4 |
| SMP-2291-PL-B | /coldroom-b/rack-14/box-07/pos-02 | 1.50 | 0 | — |
| SMP-2291-PL-C | /coldroom-b/rack-14/box-07/pos-03 | 1.50 | 0 | Reserved |
| SMP-2291-PL-D | /coldroom-b/rack-14/box-07/pos-04 | 0.75 | 11 | QC-09 · Sep 30 |
| Check | Found in §I | Fix |
|---|---|---|
| Leading | One ratio: 15, 42, 19.5, 24, 16.5, 18 | The voice's own: 14, 36, 20, 24, 16, 16. All on the grid (§II). |
| Measure | Description across the record, 76–82 characters | 30em column, 62–67 characters; properties moved beside it (§III). |
| Paragraphs | Gap equal to the leading, 24 | 16, two steps under the 32 between sections (§IV). |
| Tracking | Body +0.02em, heading +0.01em, overline 0 | Body 0, heading −0.015em, overline +0.08em (§V). |
| Numerals | Proportional, left-aligned, units in cells | Tabular mono, end-aligned, unit in the header (§VI). |
| Truncation | IDs and paths cut at the end; four rows identical | IDs whole in the mono; paths cut in the middle (§VII). |
| Emphasis | Italic in prose; four treatments on one value; bare link | 600 on one run; link underlined (§VIII). |
| Log | 12 / 18, last line sliced | 12 / 16, six whole lines (§IX). |
Inspect the computed line height of every text run. In the browser's inspector, or with a one-line script that lists getComputedStyle(el).lineHeight for every element with text. Any value with a fraction, or not divisible by 4, is a finding. A unitless value anywhere in the cascade usually explains most of them at once.
Count characters on the longest line of every paragraph. Anything over 75 is a measure problem; anything under 45 that isn't a narrow inspector is a layout problem. Count on the real face at the real width, with real content.
Measure the gaps in one body of text. Lines, paragraphs, blocks, headings: four values, each about double the one inside it, heading space above larger than below. Two levels with the same value, or within one scale step, is a finding.
Read the letter-spacing of every voice. Positive on anything in sentence case is a finding. Zero on uppercase under 12px is a finding. Positive on anything over 20px is a finding.
Scan the numbers, the truncations and the emphasis. Every changing or stacked number tabular. Every ellipsis in the right place, none on a number. One emphasis per row, no italics in the UI voice, prose links underlined. Then fix in the order of this part: leading first, because it changes the size of everything below it, then measure, then spacing, then the run-level details.
Mobile is a reducing layer. The measure takes care of itself, because a 375px screen is narrower than 30em at 16px; the risk reverses, and the failure on a phone is the too-short line, which is why reading text never drops below 16px there and the page margin stays at 16 rather than growing. Leading holds per voice. The UI voice steps up one size on touch (Typography Part I §IX), and the leading comes with it. Truncation matters more because widths are smaller: middle truncation for paths and IDs, clamps on descriptions, and numbers that change form rather than lose digits.
Setting decisions depend on the scale and on each other, and they drift when they're made per component. In order, written down once for a product:
Steps one through eight are system decisions that live in tokens and components and rarely change. Step nine is the habit that keeps them true as screens are added.
A unitless line-height on the body. It looks like a decision and is the absence of one: right at a single size, off-grid at most of the others, and far too loose on every heading.
A measure computed from a rule of thumb. "640px is about 65 characters" is true for a monospace and wrong by a third for the sans most products ship. Count in the real face.
Paragraph spacing equal to the leading. The blank-line default that makes every paragraph as separate as a table or a card, and erases a level of the nesting.
Tracking as a fix for something else. Positive letter-spacing on body text to make it "breathe", which is a leading or measure problem in disguise.
Truncation by default. One text-overflow: ellipsis applied to every cell, which cuts paths at the end, numbers anywhere, and descriptions after six words.
Emphasis by accumulation. Bold, italic, uppercase and a pill on one value, and three emphasized runs in one row, until nothing stands out.
This part has been about setting a run of text so it reads. Part III takes the voices onto the screen: which voice the page title, the section heading and the group label use, the label, value and helper roles in fields and property rows, text inside controls and tables, contrast and minimum sizes, and one complete screen with every run labelled with its token.
Part II of Typography. Continues The Typeface & the Scale.
A reader never notices a well-set line. They notice the one that made them read it twice.