Picking a Modular Typography Scale That Works in Browsers and PDFs
Typography · Updated 2026-11-24
A modular typography scale multiplies a readable base size (16 px) by one fixed ratio between 1.15 and 1.333 to produce five clear sizes from captions to page titles. Limiting every brand to two weights (400 regular and 600 semibold) and two font families keeps both web pages and printed PDFs crisp.
Choosing the right scale ratio for your industry
Tight interfaces like dashboards, calculators, and developer docs break down when H1 titles balloon to 64 px. Editorial brands like bakeries, law firms, and magazines benefit from wider contrast between headlines and body prose.
Pick one ratio and keep every heading derived from it rather than inventing arbitrary pixel sizes page by page.
| Ratio | Best fit | Body (step0) | H3 (step1) | H2 (step2) | H1 (step3) |
|---|---|---|---|---|---|
| 1.15 | Dense UI, dashboards, tools | 16 px | 18.4 px | 21.2 px | 24.3 px |
| 1.20 | Docs, clinics, dev tools | 16 px | 19.2 px | 23.0 px | 27.6 px |
| 1.25 | SaaS, ecommerce, balanced sites | 16 px | 20.0 px | 25.0 px | 31.3 px |
| 1.333 | Editorial, law, hospitality | 16 px | 21.3 px | 28.4 px | 37.9 px |
Why two font weights (400 and 600) beat five
Using light 300, regular 400, medium 500, semibold 600, bold 700, and extrabold 800 on the same screen weakens hierarchy because adjacent weights look accidentally misaligned. Strictly pairing 400 for body copy and 600 for headings, labels, and buttons creates calm contrast.
Unitless line heights keep spacing proportional when visitors zoom text to 200%. Use 1.1 to 1.3 on headings so multi-line titles stay grouped together, and 1.55 to 1.68 on body paragraphs for relaxed reading.
Cap prose columns at 60 ch to 68 ch (roughly 650 to 720 px on desktop). Lines wider than 80 characters force readers to lose their place when jumping back to the left margin.
Mobile iOS anti-zoom and flexible control heights
iOS Safari automatically zooms the viewport whenever a visitor taps an <input>, <select>, or <textarea> whose computed font size is smaller than 16 px. Setting editable controls to at least 1rem (16 px) prevents disorienting zoom jumps without altering the root html font size.
Never hardcode fixed pixel height on buttons or tabs holding text. Use min-block-size: 44px with vertical padding so visitors applying WCAG 1.4.12 text-spacing overrides never clip button labels.
Turn on font-variant-numeric: tabular-nums on every table, invoice column, contrast ratio, and price list so numbers align vertically down every row.
Translating web scales to printable US Letter and A4 PDFs
Print reading distances are closer and ink resolution is higher than desktop monitors, so a 16 px web body maps comfortably to 10 pt to 11.5 pt in a printed PDF. Standard embedded PDF fonts (Helvetica, Times-Roman, and Courier) keep generated PDFs tiny (under 15 KB) and render reliably in every viewer.
Keep system font stacks on the web (SF Pro on macOS/iOS, Segoe UI on Windows, Roboto on Android) so pages hit 100 Lighthouse performance with zero external font latency.
Fluid CSS clamp() scaling and WCAG 1.4.4 200% zoom safety
Hardcoding separate desktop and mobile font sizes across six media queries creates abrupt jumps on tablets and narrow laptop windows. CSS clamp(min, preferred, max) interpolates smoothly between 360 px mobile and 1280 px desktop viewports using a single token declaration.
To stay compliant with W3C WCAG 2.2 SC 1.4.4 (Resize Text), always include a rem unit inside the middle preferred term (for example, clamp(1.0625rem, 1.014rem + 0.22vw, 1.1875rem)) and keep the maximum value at or below 2.5 times the minimum. Pure viewport-width sizes like 4vw ignore browser zoom settings and fail accessibility audits.
Pair fluid sizing with text-wrap: balance on H1 through H3 headings to eliminate lonely orphan words on the final line, and text-wrap: pretty on body paragraphs for cleaner right-hand rags.
- Keep total distinct font sizes on any single page to five or fewer.
- Write headings, buttons, and table headers in sentence case for faster scanning.
- Test every page at 320 px width and 200% browser zoom to verify zero horizontal scroll.
Put these specifications to work immediately: Preview 7 zero-CDN font pairings and scale ratios.
Frequently asked questions
What is the smallest font size allowed on an accessible website?
Keep captions, footnotes, and table metadata at 14 px (0.875rem) minimum. Avoid 11 px or 12 px helper text that strains mobile readers.
Why should headings use subtle negative letter-spacing?
Large display type looks visually loose at zero tracking. Tightening H1 by -0.025em to -0.028em and H2 by -0.02em restores optical balance without crowding body prose.
Should I load Google Fonts from a CDN for my brand site?
Prefer native system font stacks for instant load speed and zero third-party requests. If a custom typeface is required, self-host one subsetted WOFF2 variable font.