Paolo Redaelli personal blog

My little printer-friendly CSS

Here is my little “Printer friendly CSS” that I add to each and every page using Simple Custom CSS and JS I use it with News-box theme but it should work fine with any other “pretty modern” theme. I started reading How to Create Printer-friendly Pages with CSS (local copy)

Avete taciuto abbastanza. È ora di finirla di stare zitti!Gridate con centomila lingue!Io vedo che, a forza di silenzio, il mondo è marcito! S. Caterina da Siena

This css one liner can define how your site looks on a device with dark mode set in the browser settings.

@media (prefers-color-scheme: dark)

Or if your main style is dark mode, you can define how the light mode will look.

@media (prefers-color-scheme: light)
Source: CSS only dark mode without JS – Simon Dalvai