Ask HN: When is HN dark mode coming?

5 points by mmanfrin ↗ HN
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.

6 comments

[ 3.1 ms ] story [ 33.9 ms ] thread
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)?

body { filter: invert(1); background: #000; }

;-)

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!

I’m not entirely sure that inverting everything is a sufficient implementation of dark mode, at least as far as accessibility, but you’re welcome :-)
I use a chrome extension called "High Contrast" that achieves this for any website.