Hacker News needs a Dark Mode
Hackers like dark modes. Hacker News therefore should provide its users with a dark mode option. Maybe even automatically select it based on their browser preferences.
Note: Telling me to load up some browser extension to handle it is a bit silly as it requires me to implicitly trust the author of said extension which will see and have access to virtually everything on every website I enable it for.
All thoughts and criticisms of this statement are welcomed.
Viva la Dark Mode!
93 comments
[ 4.1 ms ] story [ 157 ms ] threadAnd probably a dozens more with 100+ comments and hundreds more with a few comments.
At this point I have simply given up.
I'm going to work on implementing the CSS changes when I get bored. If that's the only thing standing between a bunch of hackers and dark mode on the hacker news website, I'm going to be very disappointed ;)
https://news.ycombinator.com/item?id=36344178
I have my devices setup to switch automatically by hour of day. Sometimes I switch manually when I want to.
A bright white website after dark is a great way to disrupt your melatonin production and affect your ability to fall to sleep.
Dimming your phone brightness does not help sufficiently at all. In a dark room it's still like a relative flashlight in your eyes.
This should not be such a head scratcher to understand.
I don't think that's true: https://time.com/5752454/blue-light-sleep/
This is a pet peeve of mine precisely because of the first line in that article:
> It’s become a virtually unchallenged piece of conventional wisdom that exposure to blue light—the type emitted by electronic device screens—is bad for sleep.
A little like the 2000kcal by day by the agri-business lobby or the 1,5l of water by the water and soda business lobby.
https://www.law.cornell.edu/uscode/text/42/300aa-22#:~:text=....
Polio used to be a thing in the western world, measles is coming back.
Mandatory childhood vaccines are for the benefit of children and society.
You’re also misrepresenting the NCVIA, the net result is arbitration that is easier to get a payout from as causality does not need to be proven.
https://en.m.wikipedia.org/wiki/National_Childhood_Vaccine_I...
Are you claiming bright light does not affect sleep?
I use to prefer light mode exclusively, but my eyes feel more comfortable with dark mode as I get older.
Dark mode myths are summarized here: https://www.wired.co.uk/article/dark-mode-chrome-android-ios...
That's rather dismissive and ablest. I need high contrast. Dark background and bright text allow me to view the content. Screen brightness plays a role here too, but it's used to enhance the contrast, not compete against it.
Me too! That's an independent issue, though.
Normal HN text has a contrast ratio of 19.34:1, which is great.
In contrast (ha ha), greyed-out text has a contrast ratio of 3.54:1, which is terrible.
So, HN should definitely fix text/background contrast ratios ASAP, whether or not they add a dark mode.
Agreed!
I do however use dark mode when reading in bed and wish there was a pdf reader that did it.
Personally, I can't stand light-on-dark interfaces and turn them off wherever I can, although that may be because I have an astigmatism and dark interfaces supposedly cause problems (although I'm not convinced that's the reason in my case).
one day, when i was about 42 years old, sitting on a ferry on a very sunny day, i could hardly see my MacBook screen. switched to light mode and while the image was still a bit faint, it became totally readable.
I'm not using anything in dark mode ever since.
The argument is that dark mode is needed to tackle the problem of blue light messing with your melatonin. However, this has not only never been proven, there are studies to the contrary:
https://time.com/5752454/blue-light-sleep/
Moreover, dark mode hurts my eyes and does the opposite of the other purported benefit.
Screens induce anxiety after long periods of usage, and it has nothing to do with the colour of the light. If you're reading your phone in bed before sleep, you have bigger problems.
The inverse is much easier to read for me.
news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))
news.ycombinator.com##body:style(background: white)
news.ycombinator.com##div.toptext:style(color: black)
news.ycombinator.com###hnmain td[bgcolor="#000000"]
edit: "rules" -> "filters"
You should start tinkering with embedded webservers then (civetweb, etc)! Even embedded devs should learn web tech because often browsers are the easiest way to interface with router/modem settings, IoT settings, etc.
In this case "##" is uBlock filter syntax. Basically "news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg))" means "if the host matches news.ycombinator.com inject the following CSS"
Here's the docs if you want to rtfm: https://github.com/gorhill/uBlock/wiki/Dashboard:-My-filters
In this case I believe we are dealing with "cosmetic filters": https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-f...
Well I wouldn't word it like that.
Hides elements with the selector ".ytp-cards-teaser", so ## doesn't represent "inject the followong CSS".This is a helpful link: https://github.com/gorhill/uBlock/wiki/Introduction-to-basic...
## represents a cosmetic filter. Though I can't seem to figure out what #$# is still but I know that's also possible to use
i can't read dark mode as well as light mode, but thanks for the advice!
Just need the Stylus extension for your browser.
I've gone through every different feature on HN to tweak the colors, including details like down voted comment colors and obscure things like the special colors at Christmas.
Provided you're a web developer, of course.
0. https://modernorange.io
https://github.com/duiker101/hackernews-dark-amethyst
https://darkreader.org/
I have it setup to enable according to the system. Also, I use the whitelist mode, so I enable on specific websites instead of having it enabled for every one automatically.
It's available on mobile via Firefox for Android!
i prefer hc.yc and hckrnews.com in static.
https://i.imgur.com/b08pZev.png
* https://addons.mozilla.org/en-US/firefox/addon/styl-us/ Stylus Button > Manage > Write New Style > Import
* https://gist.github.com/Zren/d025e06754bb2e0a7de0036fb2eee3f...
I personally disable all extensions except uBlockOrigin from auto-updating. If they break, then that prompts me to re-check if they're legit or if they've been bought out (like Stylish) before updating.
https://github.com/oxodao/synthwave-themed-sites
And dark mode is most important/applicable when browsing on your phone before bed.
Ideally HN would just follow the user's dark mode OS-wide setting.
Are you on iOS?
Not all programmers like dark mode. Some people with astigmatism have problems with dark mode.
Dark Mode Isn’t ‘Easier on the Eyes’ for Everybody (2019) https://www.vice.com/en/article/ywyqxw/apple-dark-mode-eye-s...
Extract:
> As Gizmodo wrote in 2014, citing research by the Sensory Perception and Interaction Research Group, at University of British Columbia, white backgrounds act as a "crutch" for astigmatic eyes: "People with astigmatism (approximately 50% of the population) find it harder to read white text on black than black text on white."
Certainly not all hackers like dark modes. But I doubt anyone would object to such a thing existing as an option.