Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Help me add dark mode in Hacker News natively (github.com/mohsen1)
25 points by mohsen1 on Jan 23, 2022 | hide | past | favorite | 20 comments


When someone dies they top orange bar will have a black line. How do you plan to support this as it will be hard to see when the bar is there or not. https://github.com/minimaxir/hacker-news-undocumented#thin-b...


I'm a fan of dark mode but didn't believe it would happen anytime, tbh. I made my own setup with a mix of dark reader and stylus extensions. That's how it looks like on my side, if you wanna take some inspiration:

https://i.imgur.com/Xrth0xx.png

Honestly, your approach as seen on github, is too dark and contrastful for my taste. /2c


I like your theme! Mind sharing the CSS values?


Sure! For darkreader, it is brightness 89%, contrast 105%, scheme dark, mode dynamic, sepia 16%, background #181a1b, text #e8e6e3.

For stylus, the CSS is https://gist.github.com/riidom/c07d6f5e9d77cbe01cdc9004e275f...


Why not just use DarkReader? This is how my HN looks: https://i.imgur.com/nM3hZI3.png

This way, people can customize their dark mode how they want to with a GUI rather than needing a whole new way to do it via CSS.


It boggles my mind that people are OK with adding extensions that can "read and change all your data on all website".


I'm all for what you say, but Dark Reader is so useful I'm willing to make an exception. Plus it's open source.

I've set up my Manjaro system so that with one shortcut (and automated at sundown) I can change everything to dark mode. And since Dark Reader has the option to follow the system dark mode, everything works wonderfully.


Probably the same people who had two dozen search bars installed back when that was a thing. What some people really need are buttons they can click to send money directly to Russia and North Korea - since they are going to get it anyway, just pay them. Have you seen Putin? The poor guy rides a horse and has no shirt - he needs your money now!


Can't do that on mobile, where you need dark mode most.


I don't know what your mobile OS is, but Dark Reader works just fine for me on Firefox Nightly for Android. Mozilla is still in the process of adding all of the web extension APIs to mobile Firefox, so you need to go through a few steps to set it up, detailed here: https://blog.mozilla.org/addons/2020/09/29/expanded-extensio...


Dark Reader just shows up in the addons section for me in fdroid Fennec, and Firefox mobile. I don't think you need to do anything special to get it to work.


Oh, thanks for letting me know. I have been using that little trick since they had first released that feature for unsupported addons and there were very few available then. That is good to know it is available in the supported list.


Materialistic is a good mobile app for Hacker News which has a dark mode. No affiliation, I just greatly like using it (Android).


FWIW: Harmonic is another good one for Android.


iOS user here. Yes I need dark mode in iPhone


Dark Reader is available for iOS in the app store.


I want to use safari because I’m logged in wsj nyt and I also like the reader mode


The Noir extension [0] is nearly perfect auto dark mode for Safari. I’d still prefer the website handle it directly though.

[0]: https://apps.apple.com/us/app/noir-dark-mode-for-safari/id15...


It's a Safari extension.


On Chrome or Brave for Android, I use: chrome://flags/#darken-websites-checkbox-in-themes-setting




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: