The typeface and the scale. One sans and one mono, nine sizes that each do one job, two weights, and the loading and rendering work that keeps 13px the same size on every screen it reaches.
Most of a product screen is text, so a type system is not a list of sizes but a short list of voices, each one a size, a weight, and a job. A screen that uses more sizes than it has jobs looks unfinished before anyone reads a word of it.
Start with the failure, because it is the common one. Here is the firings screen of an invented studio-kiln scheduler: a top bar, a page header with three actions, a table of five firings, and a footer line. Nobody designed its type. Each component chose a size when it was built: the table came from an older admin kit that sets its kiln column in Verdana, the ID column asks for Courier New, the buttons were styled in uppercase from a marketing page, and the program column is 0.8rem because someone converted 13px by eye. Look at it before you turn the inventory on.
Three things are wrong, and none of them is any single size. Sizes without jobs. Fourteen sizes, ten of them between 10 and 14px, where the eye can tell apart perhaps four. A reader cannot tell 12.5px from 12.8px, but each is a separate decision in the code, and the next component will choose a fifteenth. Weights doing two jobs at once. 700 marks the product name, the page title, the column headers, the count badge, and the status pills, so it no longer marks anything; 300 makes the subtitle and the footer look faint. Families by accident. Verdana in the kiln column and the crumb, Courier New for the IDs, DM Sans everywhere else: three x-heights and three widths in one table row. Section X audits this screen and gets it down to four sizes and five voices.
Type deserves a Foundations chapter because it is most of the interface. Oliver Reichenstein's old provocation that web design is 95% typography is close to literal on a product screen: take away the text and what's left is borders, a few icons, and empty boxes sized to fit the text that used to be in them. Control heights come from line height plus padding (Spacing & Density §VI). Column widths come from the widest value. Row height in a table comes from the cell's leading. A type decision is a layout decision, a density decision, and a hierarchy decision at once, made hundreds of times per screen.
15, 13.5, 13, 12.5. Four sizes the eye reads as one size with a mistake in it.
The overcorrection. Nothing is wrong and nothing is findable: the title, the value, and the timestamp all say the same thing.
Title, the UI voice, a measured value in mono, metadata a step down. Each difference is big enough to see and means something.
The boundary with the neighbouring chapters, stated once. This part chooses the families, fixes the size scale and the weights, names the voices, and covers what happens between a font file and a pixel. Typography Part II sets text with those voices: leading, measure, tracking, numerals, truncation. Typography Part III decides which voice speaks where on a screen, and owns contrast minimums and dark mode. Spacing & Density owns vertical rhythm and the posture decision this part's UI voice follows (§VII). Grid & Layout Part II owns how two voices share a row (§VIII), which this chapter does not re-derive. Color (unwritten) owns the text-colour ramp and contrast ratios. Buttons and inputs inherit the UI voice and keep their own tables.
Use one sans for every word of the product and one mono for values that must line up, and choose the sans by measuring it at 13px, the size it will spend its life at. Four things decide it: x-height, width, figures, and real weights at 400 and 600. A typeface's specimen page, set at 72px, tells you none of them.
The specimen sets the same panel, at the same 13px and the same line height, in three candidates: Verdana, Georgia, and DM Sans, the sans this series uses. A fourth frame shows the fix the third one needs. The measurements under each frame were taken in headless Chrome. Width is the advance of one fixed string, Kiln 3 · Cone 10 · Glaze firing, at 13px.
x-height decides legibility at small sizes. The lowercase letters carry almost all of the reading, and at 13px the difference between an x-height of 0.48em and 0.52em is the difference between 6.3 and 6.8 pixels of letter. Faces drawn for screens, such as Inter, IBM Plex Sans, and the system faces (San Francisco, Segoe UI, Roboto), all sit at or above 0.5em. That is where to look. Verdana goes further, at 0.55em, and pays for it with width.
Width decides what fits. A product's labels are written once and have to fit in columns, buttons, tabs, and menus sized for them. Verdana is 16% wider than DM Sans on the same string, so a column sized for one truncates in the other, as frame A shows. Width also sets how many characters a table cell holds before it needs an ellipsis (Typography Part II §VII). The safe band is a normal-width sans; condensed faces save space and lose legibility at small sizes, and wide faces do the opposite.
Figures decide whether numbers can be compared. A product is full of numbers that sit in columns: temperatures, counts, money, durations. They need to be lining figures (all the height of the capitals) and tabular figures (every digit the same width). Georgia has oldstyle figures, which rise and fall like lowercase letters and suit prose. DM Sans has lining figures but proportional widths. The build Google Fonts serves to this site has no tabular alternates, so font-variant-numeric: tabular-nums changes nothing (measured: 1111 is 16.2px with it and without it). That is why frame C needs the mono for its numbers, and it is exactly the case the mono voice covers (§V). A sans that ships tnum, as Inter and Plex do, can set its own columns (Typography Part II §VI).
Weights decide whether the scale can be built. The scale needs real 400 and 600 faces (§IV), and a real 500 as well if the product intends to use one. Verdana and Georgia ship regular and bold only, so a 600 renders as 700 and a 500 as 400: the semibold the headings and the one emphasis depend on is not there. A variable font with a weight axis passes this test automatically.
| Criterion | Measure at 13px | Passes when | A · B · C |
|---|---|---|---|
| x-height | Height of x ÷ font size | 0.50em or more: 6.5px of letter at 13px. | ✓ · ✗ · ✓ |
| Width | One fixed string against a normal-width grotesque | Within about ±5%. Wider truncates; narrower loses legibility at small sizes. | ✗ · ✓ · ✓ |
| Figures | Height and advance of 0–9 | Lining by default; tabular available via tnum, or a mono beside it. | ✓ · ✗ · mono |
| Weights | Faces or axis range | Real 400 and 600 (500 as well if the product intends to use it). A wght axis covers them all in one file. | ✗ · ✗ · ✓ |
| Coverage | Character set | Every script and symbol the product shows: °, ×, −, arrows, and the languages it ships in. | — · — · — |
A second sans for headings is the most common way a product picks up a second family, usually a display face chosen for the marketing site. It costs a second file and a second set of metrics to keep in step, and it buys nothing that size and weight within one family don't already give: the heading voice is the same sans at 28px and 600 (§III). Systems that have converged on one family per product (Carbon on Plex, Apple on San Francisco, Microsoft on Segoe) did it for that reason. A serif has no job in product UI. Its strengths are long-form reading at body sizes and print, and a product screen is neither; at 11 to 13px its serifs are a pixel or less and its oldstyle figures break tables. The serifs on this page, DM Serif Display in the headings and Instrument Serif in the italics, are editorial chrome for an essay about design. They are not a recommendation for the specimens, which is why no specimen uses them.
Choose a webfont you load and control when the product must look the same on every platform, and the system stack when it should look native and cost nothing to load. The system stack (system-ui) passes every test in the table on each platform, but it is a different face on each one, with a different width and x-height, so a column sized on a Mac truncates on Windows (§VIII). A loaded face is one set of metrics everywhere, at the price of a download and a swap (§VII). For a product people use all day across platforms, the loaded face is the better choice; for an internal tool used on one platform, the system stack is.
The product scale has nine steps, from 10px to 36px. They were chosen for jobs, not generated by a ratio, and each step is a voice: one size, one leading on the 4px grid, a fixed weight range, a fixed tracking, and one job. The specimen sets all nine on one baseline. Turn the metrics on to see each step's line box, cap height, and x-height, drawn from the font's own metrics, and the measured values under each tag.
| Token | px / lh | Weight | Tracking | The voice: its one job |
|---|---|---|---|---|
| text-2xs | 10 / 14 | 500 mono or 600 sans | +0.08em, caps | Overlines, tags, measured values in figures. Capitals only. |
| text-xs | 11 / 16 | 400 | +0.01em; +0.06em caps | Metadata, pills, table headers, group labels. The smallest lowercase. |
| text-sm | 12 / 16 | 400 / 600 | 0 | Helper text, compact cells and labels, secondary UI. The compact UI voice. |
| text-base | 13 / 20 | 400 / 600 | 0 | The UI voice: controls, cells, labels, menus. |
| text-md | 14 / 20 | 400 / 600 | 0 | Comfortable UI, dialog body, primary labels. |
| text-lg | 16 / 24 | 400 / 600 | −0.005em | Reading body, section leads, h3. |
| text-xl | 20 / 28 | 600 | −0.01em | h2, dialog and panel titles. |
| text-2xl | 28 / 36 | 600 | −0.015em | Page title: the heading voice. |
| text-3xl | 36 / 40 | 600 | −0.02em | Display stats; whole-screen first-run titles only. |
The table is fixed for the series (it is the scale in the authoring primer, and every later chapter's specimens use it). Read it by its gaps. The bottom is crowded: 11, 12, 13, and 14 are a pixel apart because that is where product UI lives, and because density posture moves the UI voice by exactly one step, so the steps on either side of 13 have to exist. The top is sparse: 16, 20, 28, 36, each 1.25 to 1.4 times the last, because a screen has few headings and each must be visibly bigger than the one below it. A step that is only a pixel bigger than its neighbour is a voice only when it is also a different job. A heading a pixel bigger than another heading is not.
Leading is part of the step, not a separate choice. Every line height is a multiple of the 4px base unit (Spacing & Density §II), so text boxes stack on the same grid as everything else and a 13px control with 8px of padding is exactly 36px tall. The one exception is text-2xs at 14, on the 2px half-step. A tag never stands alone in a stack; it sits inside a chip or a header row whose own height is on the grid, so the box keeps the grid and the leading doesn't have to. Part II sets out why each leading is the size it is (Typography Part II §II); this part only fixes them.
Generate a scale from a ratio and you get the steps the ratio produces rather than the ones the product needs. A modular scale from 13px at 1.25 (the "major third" type tools offer by default) gives the top row below. It skips 11, 12, and 14, so the compact and comfortable UI voices don't exist. It puts a step at 8.3px, below the floor, and every step but one is a fraction of a pixel that each browser rounds its own way. The bottom row is the scale above: the same range, a step wherever a job is, and every value a whole pixel.
Ratios are a good tool for editorial type, where a page has a body size and four or five heading levels and nothing else. Product UI has the opposite shape: most of its text is within two pixels of the body size, and the jobs there (metadata, helper, cell, label, comfortable label) need real, distinct, whole-pixel steps. That is the same argument the spacing scale made against a pure geometric series (Spacing & Density §III), and it lands in the same place: a scale that is dense at the small end and thins out as it grows.
13px is the default UI voice, 12px the compact one, and 14px the comfortable one. This is the one place the series states it. Density posture (Spacing & Density §VII) chooses which of text-sm, text-base, and text-md controls, cells, labels, and menus share, and it chooses once for the whole product. Posture never changes the leading within a step: 13px is 20px leading in every posture, and a compact row gets its tighter line by moving to 12/16, not by squeezing 13px onto 16. The evidence is close to unanimous. Apple's macOS type styles set body text at 13pt. Fluent 2, Material 3, and Carbon all use 14/20 as their body style and 12/16 as their caption or label, which is this scale's comfortable and compact voices.
The heading voice is text-2xl, 28/36 at 600 with −0.015em tracking, the page title. Grid & Layout Part II used it as the dominant voice in its hardest alignment specimen (§VIII), and the scale ratifies it. Which heading voice goes where on a screen, and how many a screen may have, is Part III's subject (Typography Part III §II).
10px is the floor, and only for capitals. Nothing in a product is set smaller, and 10px is legal only as text-2xs: uppercase, tracked out, for tags and overlines, where every letter has the full 7px cap height. Lowercase stops at 11px, where the x-height is still 5.5px (§VIII shows why that line falls there). This series sets its own anatomy-figure tags at 9px, as the inventory tags in section I do. Those are annotations on a drawing, not interface text; 9px never appears in a product.
In this face two weights do all the work. 400 reads and does every role; 600 heads and marks the one emphasis. 500 stays in the token set for faces whose medium is cut distinctly from the regular, and no specimen in this series sets the sans at it except to show why. 700 is loaded on this site, but the product scale never asks for it, and 300 never ships. A weight the eye can't tell from its neighbour is not a third rank but a tie, and the usual sign is a selected tab or a label that nobody notices was marked.
| Weight | Job | Use for | Never for |
|---|---|---|---|
| 400 · regular | Read, and every role | Body, cells, values, menu items, input text, helper text; labels, column headers, button labels, pills, the selected tab or nav item. Ink, a box, capitals, a rule, or position separates a role, so weight doesn't have to. | Headings; the one emphasis. |
| 600 · semibold | Head, and the one emphasis | text-xl, text-2xl, text-3xl; text-lg as h3; the sans form of text-2xs caps; the single emphasis inside the UI voice, at the UI size (Part II §VIII). | Button labels, column headers, a selection a rule or background already marks; a second emphasis in the same row. |
| 500 · medium | None in this face | A note in the token set for faces whose medium is cut distinctly (Inter, SF, IBM Plex Sans), where it can mark a role or carry the emphasis. | Anything set in DM Sans, where it is about a pixel from 400. |
| 700 · bold | None in the product | Loaded by this site's theme; unused by the product scale. | Anything a 600 already does. |
| 300 · light | None | Never ships. | Everything below 20px, which is all of the UI. |
Medium exists so a product can mark something without making it bigger or louder. A selected tab, the active item in a sidebar, a column header, a button label: each has to stand apart from its siblings at the same size and on the same baseline. In a face whose medium is cut distinctly from its regular, as it is in Inter, San Francisco, and IBM Plex Sans, 500 does that job, and it can carry the emphasis inside a voice as well. DM Sans, as Google Fonts serves it to this site, is not one of those faces. Measured at 13px, "Schedule" is 55.7px wide at 400 and 56.9px at 500: about 2% wider, a little over a pixel, with stems that look the same at a glance. Beside 400 at the same size and ink the eye does not find it, so in this face 500 marks nothing. The rule here is two weights: 400 reads and does every role, and 600 heads and marks the one emphasis. A role doesn't need weight, because something else already separates it: the muted ink separates a label from its value, the box separates a button, capitals and size separate a column header, and a rule or a background marks the selected tab. The single emphasis inside the UI voice is 600 at the UI size, told apart from a heading by size (Typography Part II §VIII, Part III §I). The width argument against heavy selection still holds, and it now points at 400. The same label is 58.3px at 600 and 59.4px at 700, so a tab bar whose selected label turns heavier shifts every label after it by three or four pixels each time the selection moves; at 400 with a rule under it, nothing moves. Button labels are 400 for the same reason a label is muted rather than heavy: the box already says "this is something to press" (Typography Part III §IV). Button Taxonomy §V reached 500 for buttons from the button's side, which is the right call in a face with a distinct medium; in this one it is a pixel nobody sees.
300 fails at UI sizes. At 13px the stems of a light weight are less than a device pixel wide on a 1× screen, so the rasteriser draws them as gray rather than black. The text loses contrast even though its colour hasn't changed, and the loss is worse with macOS's thinner antialiasing (§VIII). Light weights belong to display sizes in editorial design, and the product scale has no step big enough to use them. 700 has no job left. Once 600 heads and marks the one emphasis, a heavier weight can only be a louder heading, and a product heading already has size to do that. Systems that use 700 for headings tend to use 600 for emphasis and 500 for roles, which is this scale shifted louder for no gain. One rule protects all of this: set font-synthesis-weight: none at the root, so a weight that isn't loaded fails visibly instead of being faked by smearing the regular face.
Set a value in mono when its characters have to line up or be copied exactly: IDs, hashes, code, and measured values. Never set prose, labels, or headings in mono. Pair the mono to the sans by x-height, so both can sit at the same size on one baseline. Picking the mono by name, or leaving it to the generic monospace, gets you whatever x-height that face happens to have.
Mono is for characters that are data. In an ID like FR-2207 or a hash like 9f3c21ab, every character matters and some are easy to confuse: 0 and O, 1 and l, rn and m. A monospace face is drawn to tell those apart, and it gives every character the same width, so two IDs of the same length line up and a changed character stands out. Measured values in tables and inspectors (temperatures, durations, byte counts) go mono for the second reason: tabular alignment when the sans can't provide it (§II). Everything a person reads as language stays in the sans. That includes the labels beside these values, button text, names, and headings. The middle frame shows why. Set in mono, the labels are 46% wider, the panel reads like a configuration file, and the one difference that told values from labels is gone.
| Goes mono | Example | Stays in the sans | Example |
|---|---|---|---|
| IDs and keys | FR-2207, INV-00431 | Labels | Firing, Peak, Program |
| Hashes, tokens, versions | 9f3c21ab, v4.12.0 | Names and titles | Kiln 3, Glaze firings |
| Code, config, paths | c10-slow-cool, /kilns/3 | Buttons and menu items | Edit program |
| Measured values in tables and inspectors | 1,288 °C · 11 h 40 m | Counts and numbers in prose | 4 scheduled, 32 this month |
| Timestamps in logs | 04:12:37.214 | Relative times | 2 min ago |
Two faces at the same font size are the same size only if their x-heights match, because the lowercase letters are what the eye compares. IBM Plex Mono's x-height is 0.516em and DM Sans's is 0.504em, 2.4% apart. At 13px that is 6.7px against 6.6px, so the pair can share a size token, and this series sets both at the same pixel size everywhere. Courier New, at 0.423em, is 16% shorter: at the same 13px it reads as a size smaller and noticeably lighter, which is the left frame. The generic monospace keyword is worse, because it is a different face on each platform. The rule: choose the mono whose x-height is within about 5% of the sans and set both at the same size. If the mono you must use is further off, correct it with font-size-adjust: ex-height 0.504, which scales any fallback to the sans's x-height. Don't solve it with a separate, smaller mono size token, because then every value needs to know which font it is in.
When the sans has tabular figures, numbers that only need to line up (counts in a column, totals, a counter that ticks) can stay in the sans with font-variant-numeric: tabular-nums. Go to mono only when the characters themselves are the data. A price column in a sans with tnum is right. A price column in mono is a design that has confused money for code. How numerals align in columns, and how units and currency become a smaller voice beside them, is set out in Grid & Layout Part II §VI and Typography Part II §VI.
Ship each voice as one set of tokens that carries size, leading, weight, and tracking together. Point role aliases at those voices, let density posture re-point the aliases, and let components read only the aliases. A size token on its own lets every component choose its own line height, and that is how three rows built from the "same" 13px end up three different heights.
All three are "13px". With normal, 1.5, and 1.4 as leading, the same padding gives three heights, none of them on the grid.
Size and leading come together, so 20px of line plus 8px above and below is 36px, the default control height, in every component.
The architecture is the same three layers the spacing system uses (Spacing & Density §VIII). The scale is nine voices and never changes. The role aliases (the UI voice, the header voice, the meta voice) point at steps of the scale, and they are the only thing posture changes. Components read aliases and never touch a step directly, except for headings and display text, which never change with posture and can read their step directly.
Switch the posture below. The table reads three aliases. Nothing in its CSS changes except what the aliases point at. The row height steps with them, 28, 36 and 44px, as the rows in Spacing & Density §VII do.
| Alias | Compact | Default | Comfortable | Read by |
|---|---|---|---|---|
| --text-ui | sm · 12/16 | base · 13/20 | md · 14/20 | Controls, cells, labels, menus, input text. |
| --text-header | xs · 11/16 | xs · 11/16 | sm · 12/16 | Table headers, group labels in menus and sidebars. |
| --text-meta | xs · 11/16 | sm · 12/16 | sm · 12/16 | Helper text, timestamps, secondary lines. |
| headings | held | xl · 2xl · 3xl | held | Panel and dialog titles, page titles, display. Posture never moves them. |
| tags | held | 2xs · 10/14 | held | Overlines and tags. Already at the floor. |
Write font sizes in rem so text follows the user's browser font-size setting. That is settled, and Buttons Part IV §A1 makes the argument in full. Write the leading in rem too, as the rem equivalent of its px value: 1.25rem, not 20px and not 1.5. In px, a user who raises their default size gets 19.5px text on 20px lines. As a unitless ratio, the leading leaves the 4px grid at nearly every step, since 13 × 1.5 is 19.5. As the rem equivalent, it lands on the grid at the default root and scales with the text at every other. Part II explains why each step's leading is the number it is (Typography Part II §II).
The shortcut that fails for space fails for type in the same way: calc(var(--text-base-size) * var(--density)) at 0.92 gives 11.96px, which is not on the scale and not on any grid. It also scales the headings, which posture must not touch. Posture chooses a different step; it never multiplies one.
Load the sans as one variable file, preload it, and swap it in with font-display: swap. Give the fallback the sans's metrics with size-adjust and the override descriptors, so the swap changes the letterforms and moves nothing. When a webfont arrives a second after the page, the failure isn't the wait. It's the moment the text reflows under the user's cursor because the fallback was a different size.
Each frame below stacks two renderings of the same card. The dark text is the fallback the browser shows while the webfont loads. The pale text behind it is the same card in the loaded font, DM Sans, so wherever they disagree you can see the jump the user would see. The left frame is the common default: the family falls back to Arial and the leading is normal. The right frame uses the fallback face this page defines: Arial at size-adjust: 104% with DM Sans's ascent and descent, and px-based leading.
Peak reached 1,288 °C at 04:12. The controller holds a slow cool until the chamber is below 600 °C, then opens the vent and logs the curve.
View logPeak reached 1,288 °C at 04:12. The controller holds a slow cool until the chamber is below 600 °C, then opens the vent and logs the curve.
View logThree settings, one job each. Preload the one file the UI voice needs, so the request starts with the HTML instead of waiting for the CSS to be parsed: <link rel="preload" as="font" type="font/woff2" crossorigin>. The crossorigin attribute is required even for a font on the same origin, and leaving it out downloads the file twice. Preload only the sans in its one variable file; preloading every weight and the mono competes with the CSS and the images for the first round trips. font-display: swap shows the fallback at once and swaps when the font arrives. The fallback face is a local font (Arial, Helvetica, Roboto) adjusted to the webfont's metrics. size-adjust scales its glyphs so the advance widths match, and ascent-override, descent-override, and line-gap-override set its vertical metrics so the line box and baseline land where the webfont's will. The override values are themselves scaled by size-adjust, which is why this page's 95.2% ascent comes out at DM Sans's 0.99em. Fit the width on a large sample of real text, not on a few letters: measured over the 30,000 characters of this page's prose, DM Sans sets 4.0% wider than Arial, while single lines range from 2.5% narrower to 5.5% wider depending on which figures they contain. No factor matches every line, so a matched fallback keeps the line count and the baselines and will occasionally move a word. Tools such as Fontaine and Next.js's font loader compute the numbers from the two font files; web.dev's guide to size-adjust sets out the method.
| font-display | Behaviour | Verdict for product UI |
|---|---|---|
| block | Text is invisible for up to about 3s, then the fallback shows until the font arrives. | Never. Invisible labels and buttons are the worst version of the problem. |
| swap | Fallback at once; swap whenever the font arrives. | The default for the sans and the mono, with a metric-matched fallback so the swap doesn't move anything. |
| fallback | About 100ms invisible, then the fallback; swap only if the font arrives within about 3s. | Acceptable when you can't match metrics: a late font is skipped instead of reflowing a page in use. |
| optional | About 100ms; use the font only if it is already there, usually from cache. | Right for anything decorative. A product's UI face isn't decorative. |
This page does not follow its own advice. It loads five static DM Sans weights from Google Fonts with display=swap and no matched fallback, so on a cold load its text visibly settles. That is acceptable for an essay that is read once from the top. It isn't acceptable for a product screen that someone opens fifty times a day and starts clicking before it finishes loading.
Ship the sans as one variable file with a weight axis rather than a static file per weight. It is one request instead of several, it is usually smaller than the statics combined, and the semibold is guaranteed to share the regular's metrics because it is the same outlines. Two cautions. A variable font is a delivery format, not permission for more weights: the axis can render 450 or 550, and the scale still uses exactly 400 and 600 (§IV), which the font-weight: 400 600 range in the face declaration records. And subset it: a Latin product needs Latin, the punctuation it prints, the degree and minus signs, and the arrows, not every script the family supports.
A font with an optical-size axis (opsz) draws itself differently at different sizes: looser spacing, a larger x-height, and sturdier strokes at small sizes, and tighter, finer forms at display sizes. Browsers apply it automatically through font-optical-sizing: auto, which is the default; leave it on. San Francisco switches between its Text and Display cuts at 20pt this way, and Inter 4 ships an opsz axis. DM Sans has one in its source, but the build served here doesn't: measured, a 36px line is 284.6px wide at opsz 9 and at opsz 40. That is why the scale's tracking column does by hand what the axis would do automatically, opening text-xs by 0.01em and tightening from text-lg up to −0.02em at 36px. With a face that has opsz, re-measure the tracking before keeping it, because the axis has already done part of that work (Typography Part II §V).
The same 13px turns into different pixels on macOS, Windows, Android, and Linux. Set the floor by the worst renderer a product will meet, not by the designer's screen. At 1× density, lowercase below 11px no longer has enough pixel rows for its strokes and counters, which is why 10px is for capitals only and nothing goes smaller.
On a 1× screen, a lowercase letter has as many rows of pixels as its x-height rounds to, and letters like e, a, and s need five: three strokes and the two gaps between them. The figure draws a lowercase e of DM Sans at the x-height each size rounds to, one square per device pixel. Hinting rounds differently in each renderer, but no renderer can create a sixth row from 5.04 pixels of x-height.
That is the minimum-size consequence, and it is the reason the scale's floor works the way it does. Capitals at 10px are fine, because their 7px cap height and the tracking text-2xs adds give each letter enough pixels. Lowercase stops at 11px, the first size whose x-height (5.54px) rounds to six rows rather than five. A high-density laptop screen hides all of this, because at 2× a 10px e has ten rows, and that is how sub-11px lowercase ships: it looked fine on the screen it was designed on. The audit in section X treats lowercase under 11px as a defect for this reason.
A CSS pixel is the same everywhere; what it becomes isn't. The renderers differ. macOS's Core Text keeps the outline faithful and antialiases it, so text is accurate but a little soft. Windows' DirectWrite hints the outline toward the pixel grid, so x-heights and stems snap to whole pixels, which makes text crisper and often lighter, and two adjacent sizes can render to the same pixels or jump by a full row. The scaling differs. Windows laptops commonly run at 125% or 150%, where 13 CSS pixels are 16.25 or 19.5 device pixels and every stem lands on a fraction. The face differs, if the product uses the system stack: system-ui is San Francisco on Apple platforms, Segoe UI on Windows, Roboto on Android, and whatever the distribution chose on Linux. Measured on this machine, San Francisco is 4.8% wider than DM Sans on the §II test string; Segoe UI and Roboto each have their own widths, so a column sized against one truncates against another.
Set -webkit-font-smoothing: antialiased once, at the root, as this site's theme does, and choose weights that hold up under it. On macOS the default rendering thickens strokes slightly, which makes light text on dark surfaces bloom; antialiased removes that and makes all text a little lighter. Light-on-dark is where the difference is easiest to see, which is why some systems step their dark-mode weights (Typography Part III §VIII). The property affects only macOS, so it can't fix a weight problem anywhere else; it is one more reason the scale has no 300 (§IV). Never set it per component, because then two pieces of text with the same token render at two weights.
A product that loads its own sans still needs a system stack behind it, for the first visit before the font arrives and for any character the subset left out. Put the metric-matched fallback face first (§VII), then the system faces in a fixed order: 'Product Sans VF', 'Product Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif. The mono gets the same treatment, with ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace after the loaded face. And check the fallback's x-height against the sans: the §V rule applies here too, and font-size-adjust is the fix when it is off.
| Platform | system-ui | Rendering | Watch for |
|---|---|---|---|
| macOS | San Francisco | Faithful outlines, grayscale antialiasing, no hinting. | Soft small text on 1× external monitors; weights look heavier without antialiased. |
| Windows | Segoe UI | Hinted toward the pixel grid; ClearType or grayscale. | Fractional display scaling; adjacent sizes rendering identically; lighter stems. |
| Android, ChromeOS | Roboto | Grayscale antialiasing on mostly high-density screens. | Its own widths and x-height; check truncation against it. |
| Linux | Distribution's choice | FreeType; hinting set per distribution. | The widest variance; a wide default such as DejaVu Sans truncates first. |
On a phone the scale does not shrink. The UI voice steps up one, from 13px to 14px; text fields go to 16px so the browser never zooms into them; and only the display voice steps down, from 36px to 28px. The range gets narrower from both ends. The tempting move is to scale everything down to fit a smaller screen, and it is backwards: the screen is smaller, but it is held closer and used one-handed, often outdoors, and a thumb is less precise than a pointer.
13px rows read small at arm's length, and the 13px field makes iOS Safari zoom the page when it is tapped.
Rows at 14/20, the field at 16/24, the stat at 28 instead of 36. The heading voice, metadata, and tags hold their desktop sizes.
A screenshot of the desktop, shrunk. 11px rows, 10.2px lowercase below the floor, and every size off the scale.
| Voice | Desktop | Phone | Why |
|---|---|---|---|
| The UI voice | base · 13/20 | md · 14/20 | One step up. Read closer, in worse light, with a thumb over part of it. |
| Text fields | ui voice | lg · 16/24 | iOS Safari zooms into any focused field set below 16px. Disabling zoom in the viewport tag instead is an accessibility failure. |
| Display | 3xl · 36/40 | 2xl · 28/36 | One step down. A 36px figure takes a third of a 343px column for four digits. |
| Heading, title | 2xl · xl | held | Short page titles fit at 28. A title that wraps to three lines should be shortened, not shrunk. |
| Meta, header, tags | sm · xs · 2xs | held | Already at or near the floor; they grow only if they become something to tap. |
The platform owners went further. Apple's iOS body text is 17pt against macOS's 13pt, a jump of more than three steps in this scale's terms (Apple HIG, Typography). A web product on a phone usually keeps more of its desktop density than a native app does, so one step is the minimum rather than the target. If the product's mobile surface is mostly reading or form-filling, comfortable posture (14px everywhere, 44px rows) is the better starting point than stepping up from default. The rest of the mobile layer, from touch targets to the posture floor, is Spacing & Density §X, and where the breakpoint falls is Grid & Layout Part I §VI. Type changes at the same breakpoint as everything else, through the same aliases: the phone layer re-points --text-ui exactly as posture does, and adds a field alias and a display alias.
Count the distinct sizes, weights, and families on a screen. The size-and-weight pairs should equal the voices in use, there should be two families, and any 300, any 700, or any lowercase under 11px is a defect. Here is section I's screen after one pass of the audit: same components, same content, four sizes and five voices.
| Check | Found in §I | Fix |
|---|---|---|
| Distinct sizes | Fourteen, from 9 to 24px, ten between 10 and 14 | Four: 11, 12, 13, 28. Each is a step on the scale doing its job (§III). |
| Weights | 300, 400, 600, 700 | 400, 600. 700 removed from the title, headers, badge, and pills; 300 removed from the subtitle and footer; no 500, which in this face is a pixel from 400 (§IV). |
| Families | DM Sans, Verdana, Courier New | DM Sans for every word, IBM Plex Mono for IDs and measured values (§II, §V). |
| Below the floor | 9px pills, 9.5px badge, 10px lowercase footer | Pills and headers at text-xs 400; footer at text-sm. The badge went: the selected nav item already says which page this is. |
| Uppercase | Buttons and headers in tracked caps | Sentence case at the UI voice. Caps are reserved for text-2xs, and this screen has no overline. |
| Off-scale values | 12.5, 12.8 (0.8rem), 13.5, 11.5 | Each one mapped to the nearest voice with the same job: 12.8 and 12.5 to 13, 11.5 to 12. |
| Row height | 34px, from an 18px leading no voice uses | 36px everywhere: 13/20 plus 8px above and below, the default posture's row. |
Count the voices. Every visible text run's computed size, weight, and family should be one of the scale's voices, and the number of distinct combinations should be the number of jobs on the screen. A console snippet makes the count exact:
Find the families. The first-family column of that table should hold exactly two names. A third is a component that names its own font, usually an old table, a code block, or a chart library. Find 300 and 700. Search the stylesheets for font-weight: 300, 700, bold, and lighter, and the markup for <b> and <strong> in UI text, which default to bold. Find sizes under 11. Anything under 11px that isn't uppercase text-2xs is a defect (§VIII). Also look for fractional sizes, which are almost always a rem conversion done by eye. Then check posture and the phone. Switch the density and confirm that only the alias-driven voices move (§VI), then load the screen at 375px and confirm that the UI voice went up and nothing else went down except display (§IX).
Decide type for the system once, in this order, and components inherit it. Decided per component, it drifts into section I's screen within a release. Each step depends on the ones before it.
Steps one through eight are a font file, a token file, and two component contracts, and they rarely change. Step nine is the habit that keeps them true: one console snippet, one search, and one look at the product on a cheap monitor.
Sizes without jobs. 12.5px beside 13px beside 12.8px. If two sizes can't be told apart, they are one voice with a rounding error, and the error spreads.
A heading font. A second sans, or a serif, brought in for titles. The heading voice is the same family at a bigger size and 600.
Ratios as a scale. A modular scale's fractional steps and missing 11, 12, and 14. Product UI needs whole pixels where the jobs are.
Bold for everything that matters. 700 on the title, the headers, the selected tab, and the button, so nothing stands out. Two weights, one job each.
Shrinking for mobile. Scaling the whole scale by 0.85 on a phone. The screen is closer; the working text goes up.
A fallback nobody measured. The webfont arrives and every line on the page shifts. A matched fallback makes the swap a change of letterforms only.
This part has fixed the material: the faces, the nine voices, the weights, and the work of getting them onto a screen. Part II sets text with them: leading per voice, measure, paragraph spacing, tracking, numerals, and truncation. Part III puts them on a screen: which voice heads, which labels, which marks a value, and how far muted text and dark mode can go before the voices stop being legible.
Part I of Typography.
A size is a number. A voice is a size that knows what it is for.