Effects
The @media print stylesheet: forces black-on-white tokens, shrinks type and tightens spacing for paper, hides site chrome (header/footer/nav/aside) and the analog grain overlay, strips decorative shadows, expands external links into visible URL text, and adds page-break protection plus @page margins with a page counter.
| Name | Description | Value |
|---|---|---|
.no-print |
Hides the element and all its descendants only when printing. | |
--color-foreground |
Forced to pure black for high print legibility. | black |
--color-background |
Forced to pure white for paper ink conservation. | white |
Aa--font-size |
Adjusted root font size for printed text. | 0.925rem !important |
--line-height |
Tightened line height for print reading. | 1.4 !important |
--color-surface |
Forced to white, like the background. | white |
--optical-ratio |
Flattened to a small ratio so the type scale does not balloon on paper. | 1.125 !important |
--page-padding |
Narrow page margin for print. | var(--space-2) |
--prose-width |
Full width: the reading column fills the page. | 100% |
--space |
Zeroed: the rhythm spacing is removed on paper. | 0 |
--shadow |
Removed: no decorative shadows on paper. | 0 |
Hide something from the printed page
<button class="no-print">Share</button>
Live