Symptom: I added a print stylesheet so my About page would print as a clean résumé. The preview came out as an empty page. The text was there (I could select it) but it was white on white.
Cause: the site is dark: near-white text on a near-black background. Browsers drop background colours when printing to save ink, so the dark background vanishes and the paper is white. The text keeps its near-white colour. My first print stylesheet darkened text element by element (paragraphs, headings, list items), and anything it missed stayed white. In WordPress that’s a lot: block colour settings come with their own !important classes, and they win.
Fix: don’t chase elements. Swap the palette. The whole theme gets its colours from CSS custom properties, so redefining them for print flips everything at once, including WordPress’s own colour classes, because they use the same variables.
@media print {
:root {
color-scheme: light;
--wp--preset--color--void: #ffffff; /* was the black background */
--wp--preset--color--frost: #111111; /* was near-white text */
--wp--preset--color--ash: #555555;
--wp--preset--color--neon-cyan: #0b6f78; /* neon becomes ink */
}
body { background-image: none !important; }
}
Neon colours become deep ink versions of themselves (cyan to teal, gold to amber), so the page still looks like the site, just on paper.
Lesson: fix things at the layer where they’re defined. If your colours come from variables, your print styles should too.
Applies to: WordPress block themes whose colours come from theme.json presets, in any modern browser. Checked October 2026.



