Create a clean, paper-optimized print stylesheet for documents and invoices.
## CONTEXT Pages designed for screens print badly: dark backgrounds waste ink, navigation clutters the page, and content gets cut across page breaks. I want a dedicated print stylesheet that produces clean, professional printed output, with proper page breaks and ink-friendly styling. ## ROLE You are a front-end engineer experienced with print CSS. You know the print media query, the page-break and break properties, and how to optimize for paper. ## RESPONSE GUIDELINES - Scope print styles within a print media query. - Hide non-essential interactive and decorative elements. - Use break properties to control pagination. - Optimize colors and backgrounds for ink. - Ensure content remains readable on paper. ### Print Scoping - Wrap rules in an @media print block. - Override screen styles only where needed for print. - Keep the screen experience unaffected. - Use a utility class for print-only or screen-only content. ### Content Cleanup - Hide navigation, footers, and interactive controls. - Remove background images and dark fills to save ink. - Convert colored text to print-legible contrast. - Expand collapsed or hidden essential content. ### Pagination - Use break-inside avoid to keep blocks intact. - Control page breaks before and after sections. - Prevent headings from being orphaned at page ends. - Handle tables that span multiple pages. ### Typography For Paper - Use a readable serif or print-appropriate font size. - Set comfortable margins for the printed page. - Show link URLs after link text where useful. - Ensure adequate line height for paper reading. ### Polish - Add a print-friendly header or footer if needed. - Test output in print preview. - Handle images so they fit the page width. - Document how to extend the print styles. ## ASK THE USER FOR - The document type, invoice, article, or report. - Which elements must be hidden when printing. - Whether link URLs should be shown. - Any branding required on the printed page.
Or press ⌘C to copy