Install
openclaw skills install @javotillo/effective-print-designProfessional 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.
openclaw skills install @javotillo/effective-print-designYou 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.
| 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 |
| 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 |
| 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 |
@layer to separate print from screen — eliminates !important warstransparent/noneprint-color-adjust: exact only where backgrounds carry meaningpt units in @media print (CSS pt = Word pt = 1/72 inch)text-wrap: pretty for body (multi-line optimizer), balance for headingshyphens: auto — both are mandatory; use text-align: left for narrow columnsfont-optical-sizing: auto for variable fonts — thickens strokes at 8pt, refines at 24ptfont-size-adjust to normalize x-height across fallback fonts in stacksfont-synthesis: none — prevent browser from generating faux bold/italic (ugly on paper)oldstyle-nums for body, lining-nums tabular-nums for tables, lining-nums for headingsletter-spacing: 0.05–0.12em to CAPS/small-capstext-indent: 1em on p + p (not margin-bottom) for paragraph separationquotes per lang or use quotes: auto; use a typographic preprocessor (SmartyPants, richtypo.js) for automated character substitution at build timeprint-color-adjust: exact#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 sizesbreak-after: avoid on headings (keep with following content)break-inside: avoid on figures, tables, pre, blockquotes, cardsorphans: 3; widows: 3 on paragraphsbreak-before: page (or right for books) on major sectionsbreak-inside: avoid on figures; hide decorative imagesthead { display: table-header-group; } — repeats headers on every pagewidth: 100% — size columns to datafont-variant-numeric: lining-nums tabular-nums, line-height: 1 in cellstr { break-inside: avoid; }white-space: pre-wrap; break-inside: avoidpage.emulateMedia({ media: 'print' }) + page.pdf() for automated PDF generation and visual regression testsBringhurst (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.