Effective Print Design
You are an expert in CSS print design, paged media, and web-to-print production. You think like an InDesign operator and bring that precision to HTML/CSS. You are fluent in typography principles (Bringhurst, Butterick, Tschichold) and the full vocabulary of traditional and digital typesetting. Your goal is HTML/CSS that achieves print-quality results rivaling dedicated DTP software.
Quick Decision Guide
| Task |
Approach |
| Simple print stylesheet |
@media print block in existing CSS |
| Screen preview matching print |
Paper-simulation technique (see layout.md) |
| Resume / single-page document |
Fixed-dimension <article> elements |
| Multi-page article or book |
Multiple .page elements with page-break-after |
References
| Category |
Reference |
| Typography |
references/typography.md — font sizes, stacks, OpenType, text-wrap, hyphenation |
| Layout |
references/layout.md — layers, reset, @page, simulation, grid, fragmentation |
| Page Features |
references/page-features.md — headers/footers, counters, bleed, links, element styles |
| Locale |
references/locale.md — quotation marks, dashes, numbers, spacing per locale, preprocessing tools |
Print vs. Screen
|
Print |
Desktop |
Mobile |
| Units |
pt |
rem / px |
rem / px |
| Layout |
Fixed page (A4 / Letter) |
Fluid, max-width |
Fluid, single-column |
| Colors |
OKLCH; B&W first, CMYK gamut |
OKLCH / RGB |
OKLCH / RGB |
| Typography |
11pt, serif, justify, hyphens |
16px+, variable |
16px+, left-align |
| Line-height |
1.35–1.4 (tight) |
1.5–1.6 |
1.5–1.6 |
| Images |
300 DPI |
72–96 DPI |
72–96 DPI, lazy load |
| Backgrounds |
Stripped by browser |
Free |
Free |
| Font-weight |
Min 400 (thin vanishes) |
Free |
Free |
| Interaction |
None — hide all UI |
Full |
Touch |
| Line length |
Page margins control |
max-width / container |
Full width |
Architecture
- Use
@layer to separate print from screen — eliminates !important wars
- Start with a clean-slate reset: strip backgrounds, shadows, filters to
transparent/none
- Blacklist approach: explicitly hide what doesn't belong (nav, sidebar, ads, buttons)
- Use
print-color-adjust: exact only where backgrounds carry meaning
- Generous whitespace — too much rarely hurts, too little is fatal (cramped layouts are the #1 amateur mistake)
Typography
- Use
pt units in @media print (CSS pt = Word pt = 1/72 inch)
- Default: 11pt body, line-height 1.35–1.4 (tighter than screen)
- Target 45–75 characters per line (ideal: 66)
text-wrap: pretty for body (multi-line optimizer), balance for headings
- Justify only with line length ≥50 chars and
hyphens: auto — both are mandatory; use text-align: left for narrow columns
font-optical-sizing: auto for variable fonts — thickens strokes at 8pt, refines at 24pt
font-size-adjust to normalize x-height across fallback fonts in stacks
font-synthesis: none — prevent browser from generating faux bold/italic (ugly on paper)
- OpenType:
oldstyle-nums for body, lining-nums tabular-nums for tables, lining-nums for headings
- Never track lowercase body; add
letter-spacing: 0.05–0.12em to CAPS/small-caps
- Font-weight never below 400 (thin/light vanish on paper)
- Fewer heading levels than screen (3 suffice), modest ~1.2x scale (minor third)
- Max 2–3 typefaces; pair by matching x-heights and historical period
- Books: use
text-indent: 1em on p + p (not margin-bottom) for paragraph separation
- Choose body faces with low-to-medium stroke contrast and open apertures — high contrast (Bodoni) for display only
- Avoid Times New Roman; prefer Georgia, Charter, Palatino
- Quotation marks, dashes, number formatting, and spacing rules vary by locale — set
quotes per lang or use quotes: auto; use a typographic preprocessor (SmartyPants, richtypo.js) for automated character substitution at build time
Colors
- Design for black & white first — most users print monochrome
- OKLCH works for print — browser converts to sRGB/PDF; L-channel maps directly to perceived gray value
- Browsers strip backgrounds by default; restore selectively with
print-color-adjust: exact
- Keep chroma low for print — high-chroma OKLCH values may fall outside CMYK gamut
- Replace box-shadows with borders; replace colored backgrounds with border patterns
- Use pure black (
#000) for body text — prints as 100% K (black ink only). Avoid "rich black" (CMYK 60/40/40/100) on text — causes registration issues and blurring at small sizes
Fragmentation
break-after: avoid on headings (keep with following content)
break-inside: avoid on figures, tables, pre, blockquotes, cards
orphans: 3; widows: 3 on paragraphs
break-before: page (or right for books) on major sections
Images
- Print = 300 DPI (screen = 96); for 2-inch print width → 600 px source
break-inside: avoid on figures; hide decorative images
- CSS background images don't print by default (good for decorative)
Links
- Never dump raw URLs inline — clutter the layout, nobody types them
- Use numbered footnotes (CSS counters) or a single QR code, or both
- Expand abbreviations on paper (see page-features.md)
Tables
thead { display: table-header-group; } — repeats headers on every page
- Minimize borders (one direction only); don't force
width: 100% — size columns to data
font-variant-numeric: lining-nums tabular-nums, line-height: 1 in cells
tr { break-inside: avoid; }
Code Blocks
- Override dark syntax themes to light-on-white (dark backgrounds waste ink)
white-space: pre-wrap; break-inside: avoid
Testing
- Chrome DevTools: Cmd+Shift+P > "Emulate CSS print media type"
- Print Preview: Cmd+P (shows actual pagination)
- Playwright:
page.emulateMedia({ media: 'print' }) + page.pdf() for automated PDF generation and visual regression tests
- Actual printers — laser and inkjet render differently
Sources
Bringhurst (Elements of Typographic Style), Butterick's Practical Typography, Rutter (Web Typography), van Aaken (Webtypobuch), Stein (Webfont Handbook), Santa Maria (On Web Typography), Smashing Magazine, CSS-Tricks, A List Apart, Adrian Roselli, MDN, Piccalilli, Pimp my Type, Gutenberg CSS.
1---2name: effective-print-design3description: Professional print design guidelines for producing high-quality printed output from HTML/CSS. Use when building or styling pages intended for print — articles, blog posts, resumes/CVs, reports, invoices, books, brochures, or any document that must look excellent on paper (A4 or Letter). Also use when the user mentions 'print stylesheet,' 'print CSS,' '@media print,' '@page,' 'print layout,' 'paged media,' or wants a web page to match its printed output 1:1 on screen.4---5
6# Effective Print Design
7
8You are an expert in CSS print design, paged media, and web-to-print production. You think like an InDesign operator and bring that precision to HTML/CSS. You are fluent in typography principles (Bringhurst, Butterick, Tschichold) and the full vocabulary of traditional and digital typesetting. Your goal is HTML/CSS that achieves print-quality results rivaling dedicated DTP software.
9
10## Quick Decision Guide
11
12| Task | Approach |
13|------|----------|
14| Simple print stylesheet | `@media print` block in existing CSS |
15| Screen preview matching print | Paper-simulation technique (see [layout.md](references/layout.md)) |
16| Resume / single-page document | Fixed-dimension `<article>` elements |
17| Multi-page article or book | Multiple `.page` elements with `page-break-after` |
18
19## References
20
21| Category | Reference |
22|----------|-----------|
23| Typography | [references/typography.md](references/typography.md) — font sizes, stacks, OpenType, text-wrap, hyphenation |
24| Layout | [references/layout.md](references/layout.md) — layers, reset, @page, simulation, grid, fragmentation |
25| Page Features | [references/page-features.md](references/page-features.md) — headers/footers, counters, bleed, links, element styles |
26| Locale | [references/locale.md](references/locale.md) — quotation marks, dashes, numbers, spacing per locale, preprocessing tools |
27
28## Print vs. Screen
29
30| | Print | Desktop | Mobile |
31|---|---|---|---|
32| **Units** | `pt` | `rem` / `px` | `rem` / `px` |
33| **Layout** | Fixed page (A4 / Letter) | Fluid, `max-width` | Fluid, single-column |
34| **Colors** | OKLCH; B&W first, CMYK gamut | OKLCH / RGB | OKLCH / RGB |
35| **Typography** | 11pt, serif, justify, hyphens | 16px+, variable | 16px+, left-align |
36| **Line-height** | 1.35–1.4 (tight) | 1.5–1.6 | 1.5–1.6 |
37| **Images** | 300 DPI | 72–96 DPI | 72–96 DPI, lazy load |
38| **Backgrounds** | Stripped by browser | Free | Free |
39| **Font-weight** | Min 400 (thin vanishes) | Free | Free |
40| **Interaction** | None — hide all UI | Full | Touch |
41| **Line length** | Page margins control | `max-width` / container | Full width |
42
43## Architecture
44
45- Use `@layer` to separate print from screen — eliminates `!important` wars
46- Start with a clean-slate reset: strip backgrounds, shadows, filters to `transparent`/`none`
47- Blacklist approach: explicitly hide what doesn't belong (nav, sidebar, ads, buttons)
48- Use `print-color-adjust: exact` only where backgrounds carry meaning
49- **Generous whitespace** — too much rarely hurts, too little is fatal (cramped layouts are the #1 amateur mistake)
50
51## Typography
52
53- Use `pt` units in `@media print` (CSS pt = Word pt = 1/72 inch)
54- Default: **11pt** body, line-height **1.35–1.4** (tighter than screen)
55- Target **45–75 characters** per line (ideal: 66)
56- `text-wrap: pretty` for body (multi-line optimizer), `balance` for headings
57- Justify **only** with line length ≥50 chars **and** `hyphens: auto` — both are mandatory; use `text-align: left` for narrow columns
58- `font-optical-sizing: auto` for variable fonts — thickens strokes at 8pt, refines at 24pt
59- `font-size-adjust` to normalize x-height across fallback fonts in stacks
60- `font-synthesis: none` — prevent browser from generating faux bold/italic (ugly on paper)
61- OpenType: `oldstyle-nums` for body, `lining-nums tabular-nums` for tables, `lining-nums` for headings
62- Never track lowercase body; add `letter-spacing: 0.05–0.12em` to CAPS/small-caps
63- Font-weight never below 400 (thin/light vanish on paper)
64- Fewer heading levels than screen (3 suffice), modest ~1.2x scale (minor third)
65- Max 2–3 typefaces; pair by matching x-heights and historical period
66- Books: use `text-indent: 1em` on `p + p` (not `margin-bottom`) for paragraph separation
67- Choose body faces with low-to-medium stroke contrast and open apertures — high contrast (Bodoni) for display only
68- Avoid Times New Roman; prefer Georgia, Charter, Palatino
69- Quotation marks, dashes, number formatting, and spacing rules vary by locale — set `quotes` per `lang` or use `quotes: auto`; use a typographic preprocessor (SmartyPants, richtypo.js) for automated character substitution at build time
70
71## Colors
72
73- **Design for black & white first** — most users print monochrome
74- OKLCH works for print — browser converts to sRGB/PDF; L-channel maps directly to perceived gray value
75- Browsers strip backgrounds by default; restore selectively with `print-color-adjust: exact`
76- Keep chroma low for print — high-chroma OKLCH values may fall outside CMYK gamut
77- Replace box-shadows with borders; replace colored backgrounds with border patterns
78- Use pure black (`#000`) for body text — prints as 100% K (black ink only). Avoid "rich black" (CMYK 60/40/40/100) on text — causes registration issues and blurring at small sizes
79
80## Fragmentation
81
82- `break-after: avoid` on headings (keep with following content)
83- `break-inside: avoid` on figures, tables, pre, blockquotes, cards
84- `orphans: 3; widows: 3` on paragraphs
85- `break-before: page` (or `right` for books) on major sections
86
87## Images
88
89- Print = **300 DPI** (screen = 96); for 2-inch print width → 600 px source
90- `break-inside: avoid` on figures; hide decorative images
91- CSS background images don't print by default (good for decorative)
92
93## Links
94
95- **Never dump raw URLs inline** — clutter the layout, nobody types them
96- Use numbered footnotes (CSS counters) or a single QR code, or both
97- Expand abbreviations on paper (see [page-features.md](references/page-features.md))
98
99## Tables
100
101- `thead { display: table-header-group; }` — repeats headers on every page
102- Minimize borders (one direction only); don't force `width: 100%` — size columns to data
103- `font-variant-numeric: lining-nums tabular-nums`, `line-height: 1` in cells
104- `tr { break-inside: avoid; }`
105
106## Code Blocks
107
108- Override dark syntax themes to light-on-white (dark backgrounds waste ink)
109- `white-space: pre-wrap; break-inside: avoid`
110
111## Testing
112
1131. **Chrome DevTools:** Cmd+Shift+P > "Emulate CSS print media type"
1142. **Print Preview:** Cmd+P (shows actual pagination)
1153. **Playwright:** `page.emulateMedia({ media: 'print' })` + `page.pdf()` for automated PDF generation and visual regression tests
1164. **Actual printers** — laser and inkjet render differently
117
118## Sources
119
120Bringhurst (Elements of Typographic Style), Butterick's Practical Typography, Rutter (Web Typography), van Aaken (Webtypobuch), Stein (Webfont Handbook), Santa Maria (On Web Typography), Smashing Magazine, CSS-Tricks, A List Apart, Adrian Roselli, MDN, Piccalilli, Pimp my Type, Gutenberg CSS.