Live data from Hacker News

Ask HN: Dark mode for HN please?

news.ycombinator.com

261–270 of 469 posts

Re: Ask HN: Dark mode for HN please?

#261

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 great to me!

Re: Ask HN: Dark mode for HN please?

#262
post #196

Earlier quoted context omitted.

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.

All this will be AI powered, I assume?

Re: Ask HN: Dark mode for HN please?

#263

Earlier quoted context omitted.

Please, for God's sake, don't screw it up. I can keep up with news on this site from a 15 kb/s shared satellite link when I'm out at sea. Except perhaps for the really big threads. I love the simple interface. It's text, it's simple, it's readable, and when I hit the spacebar, it scrolls down a page. No fancy fonts, no javascript, no nothing. I love HN for its simplicity and speed. Thanks for maintaining a good engin…

I think you guys overreact a bit, your reply alone occupies more bytes than the CSS needed to implement dark mode; it wouldn't affect anything related to scrolling with space-bar, or fonts, or JS functionality.

True, serving it to you was negligible, but that little extra being served millions of times, once for every request, in aggregate slows down servers, eats up peoples’ data, raises costs and generally quickens the heat death of the universe.

Re: Ask HN: Dark mode for HN please?

#264
I started using dark themes on my code editor about 8-9 years ago (Monokai on Subline IIRC) and recently I've gone back to light themes.

Light themes are certainly less cool but since you can have greater contrast they have much better readability and less strain on your eyes.

Re: Ask HN: Dark mode for HN please?

#265
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…

Perhaps make a mobile friendly stylesheet? Please!!!!

Re: Ask HN: Dark mode for HN please?

#266
post #215

Earlier quoted context omitted.

We can have what would undoubtedly be one of the world's largest code reviews, and for a vanishingly small piece of relatively mundane code. Please dang!

The mother of all bike sheddings. A whole subcommittee to decide if the Braille version should have indents instead of bumps.

How can anyone even dare to think about indents? C'mon, I thought this was settled. Did you know that human fingers can detect roughness value down to N7? That's 1.6 micrometers. There is a bigger fish to fry than just think about indentations or bumps. Texture. Texture is everything and there is nothing else to talk about, although I am open for other ideas. Thoughts?

Re: Ask HN: Dark mode for HN please?

#267

Earlier quoted context omitted.

I think you guys overreact a bit, your reply alone occupies more bytes than the CSS needed to implement dark mode; it wouldn't affect anything related to scrolling with space-bar, or fonts, or JS functionality.

True, serving it to you was negligible, but that little extra being served millions of times, once for every request, in aggregate slows down servers, eats up peoples’ data, raises costs and generally quickens the heat death of the universe.

It's a KB of css, if that, probably much less. Cached, in a stylesheet request, not a style element. It's nothing. It amortized, not more data for every request. It's nothing.

Re: Ask HN: Dark mode for HN please?

#268
post #71

You can enable dark mode in Chrome on Android 1. Go to chrome://flags 2. Enable "Force Dark Mode for Web Contents" This works pretty well on all sites, not just hacker news...

I have been using this for a while. Works great except on some pages. I wish there was a quick 'disable for this site' button.

Alternatively, you can try enable #darken-websites-checkbox-in-themes-setting

Re: Ask HN: Dark mode for HN please?

#269

Earlier quoted context omitted.

Love this. One addition, consider reducing the brightness on text so it doesn't glare as much.

Please don't. Strong contrast helps readability; grey-on-color is lower contrast than white-on-color. Most HN threads linking to a site that has light-grey-on-dark-grey or dark-grey-on-light-grey text have at least one (off-topic) complaint about site style. Let's not make HN one of those sites.

For me strong contrasts, especially on dark backgrounds, give me retina burns and eyestrain. I find pastel shades more comfortable. That said the grey text on white fad that happened a few years ago was a very silly idea.

I guess everyone's mileages vary depending on their eyesight, my eye's are 53 years old now and aren't as spritely as they used to be.

Re: Ask HN: Dark mode for HN please?

#270
post #190

Earlier quoted context omitted.

Some people use it because they have migraines and bright lights trigger their headaches. Some people use it for "stealth" reasons when they want to be online without giving off a lot of light for some reason. Some people are photophobic -- aka light sensitive -- and just favor darker websites generally. There's myriad reasons to want to use dark mode. It's not any one thing.

None of this applied to the people I've worked with who preferred it in IntelliJ. I'm willing to mark it up to personal preferences that I'll just never understand, alongside why great directors keep casting Leonardo DiCaprio.

You'll note that work usually happens during the day, people often browse HN after work, especially when it's dark.
Post reply on HN