HACKER Q&A
📣 mmanfrin

When is HN dark mode coming?


A while back, dang mentioned that a dark mode option was going to be worked on. I'm wondering what the status of that is?

I'm aware there are extensions that will set custom css for HN, but I've had enough extensions turn in to malware that I'm wearing adding something just for a few-line CSS change.


  👤 pwg Accepted Answer ✓
Setup a local UserContent.css file for yourself and you can style any website any way you like:

http://kb.mozillazine.org/index.php?title=UserContent.css&pr...


👤 rasengan
You can type this in the console:

document.body.style.filter='invert(1)'; document.body.style.backgroundColor='#000';

Thanks to csilverman for the CSS styles!


👤 vanusa
It already lets us configure the topcolor - so it shouldn't require more than a few lines of code beyond that.

Perhaps someone can help the process along by posting a few working dark mode styles (based on the existing class layout)?


👤 schmookeeg
I use a chrome extension called "High Contrast" that achieves this for any website.