Show HN: Hacker News Dark Mode
jgthms.com
jgthms.com
For iOS I use Hack https://apps.apple.com/us/app/hack-for-hacker-news-yc/id1464... . The app has an excellent dark mode.
I agree it is slightly too blue for me, I think it should be more red than blue, especially since the purpose is for low-light reading.
With that said - if I toggle Dark Mode off, and then click a link, it just goes back to Dark Mode. Probably should persist.
Edit: Also, I think the Dark Mode checkbox toggle would be better placed on the profile page, with other related preferences.
Great work!
I maintain that no stylesheet can be accessible to everybody. If any accessibility-assessment tool says otherwise, that reflects a failure of that tool to consider some classes of visual impairment.
i can't tell you how much i struggle on a daily basis with websites who have passed these "standards". i don't even have anything serious. i just can't read small text well.
so my browser zoom is 150% by default which i adjust if it's too big. that all i did!
my setting has broken major sites on a daily basis. that tool that another poster linked is broken on my side! that's the tool that's telling people they are not following standards...
so yea, i fully agree with you!
[0] - https://bulma.io/
@media (prefers-color-scheme: dark) {
body {
background: #333;
filter: invert(.95) hue-rotate(190deg);
}
}
Then let clients choose the strength of the invert and hue.HN's site makes use of rather small font sizes for subtext. In the dark version the contrast between background and subtext is low (below 4.2:1). It would be fine were it 18 or 24 px. But it is not.
When a site uses words, legibility is a must.
It's still a WIP, but I like it very much. Added more contrast to the number of comments as well...
This is how it looks: https://imgur.com/PaNtWfJ
[1]https://gist.github.com/lucis/592a9522663a14120c7c7a39c97268...
For something like this, it should be trivial to do.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
This is the beauty of the web browser. I don't even get a choice in how things are displayed in native apps.
Also extremely minor to the point of being negligible, I notice in Firefox on a 1200 pixel monitor the bottom row displayed is 30 and I roughly cut in half while standard (actual) HN row 30 is about 2 pixels above the bottom.
Is there a discussion page demo, but with actual discussion?
[1]https://addons.mozilla.org/en-US/firefox/addon/darkreader/
btw many years ago i made something similar to darkreader, for some users it may be faster and more reliable but i also highly recommend dark reader too:
https://addons.mozilla.org/en-CA/firefox/addon/night-light-m...
I also just posted this for making it easier to consume comments especially on popular posts: https://news.ycombinator.com/item?id=23206330
For example, when I load facebook.com on brave, the top bar becomes blue. Not sure if it's a brave feature for a few selected sites, or a browser api used by Facebook.
nice contrast without being white on black. the accent colors are tasteful, the purple links are obvious without being distracting.
Looks like it is missing upvote arrows?
The links are rather flimsy on mobile.