Live data from Hacker News

Ask HN: Dark mode for HN please?

news.ycombinator.com

251–260 of 469 posts

Re: Ask HN: Dark mode for HN please?

#251
post #123
post #53

Earlier quoted context omitted.

I'd love to do that just by offering people a CSS blob that we could inject into their CSS when they browse HN. Our original idea (actually kogir's idea from back in 2014—he's a forward-thinking guy) was that people could create skins this way, if that Winamp-era term isn't too obsolete by now, and share them. However, someone who is plugged into Reddit told me that they used to allow user-defined CSS for customizing…

I would love to be able to define my own CSS that simply replaced the site’s settings, not just for dark mode. It would let me make changes that would be extremely useful to me. For example, I’d hide the “hide” links on the main page. I’m sure some people love that feature, but I’ve only ever used it accidentally (fatfingering on mobile). I’d add a bunch of additional hiding CSS. I’ve long wanted a “helps-me-respect-…

This was, in fact, the original point of css. You're supposed to be able to add your own user-defined styles to "the cascade". Unfortunately modern browsers don't really implement this right and you're stuck using weird 3rd party plugins to accomplish this.

Re: Ask HN: Dark mode for HN please?

#252
post #63

Earlier quoted context omitted.

I like having my display as bright as possible without it being uncomfortable; it helps with readability. On my laptop and phone I'll shift the brightness throughout the day to meet this heuristic, but alas, Windows does not make this trivial with an external monitor. Usually you have to fiddle with the monitor's physical buttons and navigate down into a menu. So I just don't bother.

https://twinkletray.com/ Most desktop monitors have their brightness & other config exposed via the DDC (DDC?) protocol. This is a simple UI that exposes the brightness controls on Windows. Much easier than using the buttons. You might need to go to the monitor's menu and enable DDC if it's disabled by default. On Linux this script works for me: sudo modprobe i2c-dev; sudo ddcutil setvcp 10 $1 &

I can't believe I'm only just now finding out about this. Do you have any idea why this isn't something built into Windows?

Re: Ask HN: Dark mode for HN please?

#253
post #32

Ok, you guys, this isn't the first time we've heard this request ( https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... ). I'm willing to do it (edit: not to change the default! just to add the option). It's just that any CSS issue that goes more than a quarter-inch deep is outside both my expertise and my interest. We can add CSS to https://news.ycombinator.com/news.css for prefers-color-scheme: dark , bu…

@media (prefers-color-scheme:dark){body{filter:invert(1) hue-rotate(180deg)}} One-liner inverts the brightness and preserves the orange.

This is the hacker-est option, I love it. So simple

Re: Ask HN: Dark mode for HN please?

#254

Earlier quoted context omitted.

Screenshot: https://imgur.com/a/mxaNky4 Whipped this up real quick... keeps the spirit of HN I think, and is pretty minimal. Not my best CSS but tables/current CSS make some selectors a little tricky and after all, it's less than 1kb added, no markup or stack changes needed, and this is 'Hacker News' right? :D @media (prefers-color-scheme: dark) { body { background-color: #1F2430; } #hnmain { background-color: #23283…

For those who want something more traditional I've modified to have a slight orange tint on the title bar, and higher contrast for text. Seems to be better for a11y too. Screenshot: https://imgur.com/a/XW1OCYb @media (prefers-color-scheme: dark) { body { background-color: #232834; } #hnmain { background-color: #1F2430; } a:link.storylink, #hnmain > tbody > tr:first-child > td a, .commtext, .commtext a:link, td { colo…

Looks good!

Re: Ask HN: Dark mode for HN please?

#255
post #32

Ok, you guys, this isn't the first time we've heard this request ( https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... ). I'm willing to do it (edit: not to change the default! just to add the option). It's just that any CSS issue that goes more than a quarter-inch deep is outside both my expertise and my interest. We can add CSS to https://news.ycombinator.com/news.css for prefers-color-scheme: dark , bu…

Please, don't just force a dark mode to everyone with "prefers-color-scheme: dark". Some are using OS in light mode, but would still like to use the dark mode. Sometimes, it might be useful to use the light version on dark systems. (e.g. if the dark css is not well made or looks bad on some monitors) Here's a good thread about it: https://twitter.com/SaraSoueidan/status/1245722023361380354

I get it, but at the end of the day it's up to a site owner, surely? Much like we get to choose our site design, we also get to choose whether it's dark or light. It has always been this way.

The CSS property is a good indicator that you prefer a dark color scheme. In my case by turning this on I want an all dark UI on everything I use - all the time. Do we really need to force toggles on every website we build now for a small number of users who want a dark browser UI, but light websites? I'd prefer to go with the assumption that they want the design dark too.

Re: Ask HN: Dark mode for HN please?

#256
post #69

Earlier quoted context omitted.

I'm on board with ceasing and desisting from screwing it up.

There are many ways for end users to force dark mode without any change on HN. "invert page colors" chrome extension, for example, does a nice job. Not ideal, but good enough. I second the other commenter, don't do anything. Or get someone really good to help you!

There's a very solid Stylus theme for HN that I've been using as long as I can remember. Until just now I had honestly forgotten that this wasn't what HN looked like by default.

https://userstyles.org/styles/113994/hacker-news-dark

Re: Ask HN: Dark mode for HN please?

#257

Earlier quoted context omitted.

You can stop assaulting your eyes by simply installing an extension: https://darkreader.org/ It takes 15 seconds and you will have solved your problem.

Yep, came here to suggest exactly this. Especially because then it works for all sites, not just HN. I can also second Dark Reader specifically; it's nicely tunable, supports per-site toggles, and lets you set a schedule to automatically toggle dark mode in the evening. I think my only complaint is that it might be the reason why my Firefox on Android gets really slow / hangs occasionally, although that might be unre…

you have more than a 100 tabs on android? what device? how do you even move between?

Re: Ask HN: Dark mode for HN please?

#258

Please don’t change anything about this site for the love of Pete.

Since I started coming here I've seen several changes, but they've always been tasteful, minimal, and well thought out. I trust the team behind this site to only make changes that are appropriate.

Re: Ask HN: Dark mode for HN please?

#259
post #196

Earlier quoted context omitted.

Also, if there's any way to incorporate machine learning algorithms into it, please try to find a way to do that.

Of course. Obviously, we'll store the algorithm on the blockchain and train it with a custom YCombinator bitcoin that replaces karma.

Also add a VR and AR, that will be super cool.

Re: Ask HN: Dark mode for HN please?

#260
post #26

Earlier quoted context omitted.

I wanted to do that but was told that Reddit encountered security issues with this, and so moved away from it in favor of a complex widget UI, which would not be a good fit for HN.

Reddit had issues because user defined CSS was download and ran to other user's devices. In this case, you would only be able to affect your own version of the site, so any attack vector is mitigated

That's a really good point.
Post reply on HN