Show HN: DarkHN – Dark Mode Mirror for Hacker News
darkhn.herokuapp.com
darkhn.herokuapp.com
Works great for me. I use dark themes via Stylus for most of the common websites I visit like HN, GitHub, StackOverflow, etc. All other websites that cause me to squint I just toggle Dark Reader: https://darkreader.org/
Anyone getting these types of issues still? I would love to start using it again.
Still use it because the speed / memory different isn't noticeable on most modern laptops / desktops. Even my phone uses it now as it's quick enough with the 'dynamic' update they made (toggle onto it under the 'more' section)
For example, Filter ”requires GPU resources”, while Filter+ “works poorly in Firefox”. Dynamic pays up-front on first pageload, but subsequent pageloads should be lean.
[1]: Theme generation modes, https://darkreader.org/help/en/#filter-settings
Looks like this: https://imgur.com/a/d7PSU96
Based upon: https://userstyles.org/styles/166661/orb-s-dark-hacker-news-... with bunch of my own adjustments and improvements
I have one minor issue though: the top bar (with new threads past etc.) is white with the text almost white too. Makes it unreadable. I'm not sure if this is somehow my fault or if it comes from the addon: https://i.imgur.com/DPEn3b6.jpeg
I have dark mode on.
This is an interesting issue. What color is your "topbar" configured to? You can check it under your profile settings: https://news.ycombinator.com/user?id=Krasnol. It could be that the topcolor that you've set is a dark color, and the CSS inversion makes it light, thus conflicting with the text color.
If this is still a problem, please do open an issue on the GitHub repository, I'll happily look into it :)
Thanks :)
But dark mode offers such immense retinal relief that a few lines of CSS¹ does not seem too unreasonable, especially since it means not having to trust third party extensions to do the job (though Firefox supports site-specific CSS rules natively: https://superuser.com/a/319322/38084 ).
¹ I arrived at these few lines for my simple site:
@media (prefers-color-scheme: dark) {
body {background: #222b39;color: #e1dfdc}
input,textarea {background: #333;color: #e1dfdc;border: 1px solid white}}
though HN likely requires a far more skillful and circumspect approach, e.g., https://news.ycombinator.com/item?id=23199649 .How do I convince my browser (firefox, typically) to set this? Is there a way to toggle it on and off?
The other is the better signal/noise ratio.
I whole heartedly want dark mode HN but your comment seems insincere and hyperbolic.
Most major purveyors of UI have somehow recognised the importance of offering a dark mode - I guess they all just did it for a lark? At this point, HN's refusal is wilful.
Sure, plenty of annoying ways around it for each affected person to figure out - or one tiny change to the God-like and permanently-infallible UI of HN. All hail!
It's annoying as duck to 1.) have a disability in the first place and 2.) have every random person ever acuse you of lying about it for literally no reason.
Any time you split your UI (for example, light mode and dark mode), it effectively doubles/multiplies all future UI testing you do from then on out (testing all new views/features on both light and dark mode). It can also add additional strain on bug reports / support, since you no longer know what UI configuration a particular user might've been using when they complained about something.
Slightly less of an issue on a site like HN where the UI is somewhat simple and static and changes happen at alligator speed, but still a long-term commitment to make (as opposed to 5 min of dev time).
(In case it isn't obvious, I'm a little salty about how much time I still spend testing/fixing my own site changes in dark mode over a year after adding it.)
I agree it takes more time but isn't double an exaggeration? New features would presumably reuse light/dark UI components you've already tested. And are they really that likely to behave unexpectedly?
It's funny how developers will boast "it'll only take 5 mins" when they're not the ones having to code it though.
I normally prefer and use dark-mode UIs, but this one is actually slightly harder for me to read.
Drunk Post: Things I've learned as a Sr Engineer [1]
Mentions this:
Dark mode is great until you're forced to use light mode (webpage or an unsupported app). That's why I use light mode.
and self-illustrates this beautifully (unless you have dark-mode on reddit already).
...although its also why you need a Dark mode for HN if you're coming from Reddit. I guess I get the Sr Engineers point.
[1] https://old.reddit.com/r/ExperiencedDevs/comments/nmodyl/dru...
Reading the comments here, a lot of people use various extensions to achieve dark mode, so maybe it is time that HN implements this natively.
If you're interested in the code or would like to contribute, take a look at the GitHub repo: https://github.com/xtrp/darkhn
For those interested, it's written in Node.js with a simple Express.js server. More info is available on the repo.
Thank you all again for taking a look at this project!
— Gabriel
Generally I like the extension though, I still use it on my phone.
It works great.