Hacker News still refuses dark mode, so a three-line CSS trick fixes it
Minimal dark mode styles for Hacker News
Hacker News admins won't add a dark mode, so the practical workaround is custom CSS via Stylus or Userscripts. The simplest version inverts the page and rotates hues 180 degrees, turning light into dark while roughly preserving original colors. It also inverts images, but HN's basic styling keeps results clean. A zoom rule on wide screens compensates for the fixed layout and tiny font.
For some incomprehensible reason, the Hacker News admins won't add a dark mode.
- HelloUsername
On iOS, the browser Firefox, Brave and Duckduckgo have this function builtin, without an extension. On macOS, you can change color in settings of Firefox (without extension), and recently 'Safari introduced Adaptive Dark Mode' (https://news.ycombinator.com/item?id=50358562). And Ladybird (https://news.ycombinator.com/item?id=50614249) also has builtin dark mode support :D
- KronisLV
I just use Dark Reader with most of my browsers: https://darkreader.org/
I remember having performance issues with it at some point (maybe on Firefox), but on my current Chromium setup it's fairly nice and disabling any sites that look odd is also easy to do! No issues on HN.
Of course, supporting prefers-color-scheme is a good practice regardless.
- errorware
I will shamelessly plug a userscript with a few more configurable options https://github.com/errorware/hn-plus
- tietjens
I don't agree about the custom front-ends being slow. I use Hack on iOS (https://apps.apple.com/us/app/hacker-news-hn-reader-hack/id1...) to read HN and it's so nice I bought it. Try it out!
- ezrabuenk
I just use the "harmonic" app on Android, it's fantastic!