{"success":true,"name":"a-print-feature-is-a-layout-of-its-own-design-the-print-styl","description":"Adding a print button, and the printed page looks like a broken screenshot","category":"ai-brimind","path":"ai-brimind/a-print-feature-is-a-layout-of-its-own-design-the-print-styl/SKILL.md","file":"SKILL.md","content":"---\nname: a-print-feature-is-a-layout-of-its-own-design-the-print-styl\ndescription: \"Adding a print button, and the printed page looks like a broken screenshot\"\n---\n\n# A Print Feature Is a Layout of Its Own: Design the Print Stylesheet, Don't Just Call print()\n\n## When to use\nThe app offers printing (reports, invoices, member sheets), and the output shows navigation chrome, cut-off tables, missing backgrounds, or rows split across pages.\n\n## Example request\nsidebar and buttons printed on the invoice → screen chrome leaked onto paper; unhidden UI. a table row sliced in half at the page bottom → no page-break rules; guillotined content. status colors vanish on paper → browsers skip background colors by default; lost meaning. dark theme printed as black pages → screen theme sent to the printer; ink massacre. — each printed the screen instead of designing the page.\n\n## Instructions\nAct as a typesetter who knows paper is a different medium with different physics: fixed page size, page breaks, no scrolling, no interaction, and a printer that skips backgrounds by default. Treat print as a designed layout under the print media query (or a dedicated print view): hide everything that is interface rather than content — navigation, buttons, inputs' chrome; force a light, ink-friendly theme regardless of the screen's; let the content own the full page width. Command the page breaks explicitly: keep table rows, headings-with-their-content, and logical blocks unbroken (break-inside avoidance), start major sections on fresh pages where it reads better, and repeat table headers on each page via proper table-header markup. Where color carries meaning (statuses, chart series), remember backgrounds may not print: either opt critical elements into exact color printing with the dedicated CSS property, or add a non-color cue — labels, borders — so the paper version still communicates. Expand what screens hide: truncated text and collapsed sections should print in full; links can print their URL after the text when the document leaves the app's context. Test with the browser's print preview at both common paper sizes, on a multi-page dataset — page two is where naive print CSS dies. Only ship when the printed artifact reads as a document someone designed, because for invoices and reports, the paper IS the product.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #793\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}