Live data from Hacker News

Ask HN: Dark mode for HN please?

news.ycombinator.com

391–400 of 469 posts

Re: Ask HN: Dark mode for HN please?

#393

Earlier quoted context omitted.

While I partially agree with you (that's why I upvoted) in that it's a waste of everyone's time having every website developer worry about dark mode I still think scrollbars and zoom are fundamentally different from a dark mode in that the latter cannot be detached from aesthetics. The color pallete of a page is important, and maintaining a consistent look and feel across normal and dark mode can only be done reliabl…

but dark mode is an accessibility feature and used to be called high-contrast mode. This is a solved problem and has been for at least 30 years. In fact it's already in chrome on android, no work needs to be done (other than enabling it). Here's an image gallery guide I made: https://imgur.com/a/njNTO6T This is the right approach, it should be solved at the browser level. In fact, it already is. The only responsibili…

IMO it's two separate things. Both useful on their own right.

High contrast is very useful for people with visual difficulties, but might even be counter-productive for certain types of eye strain.

I'm under the impression people asking for dark mode are looking for something that will emit less light off their screens, not necessarily make it look nore contrast-y, and the two are more often than not opposite.

Re: Ask HN: Dark mode for HN please?

#394
post #126

Earlier quoted context omitted.

Is there an easy way I can apply this using developer console so I can see what it looks like? I want to try out the different styles in the comments, but I'm hesitant to upvote until I see for myself what it looks like.

stylus extension let you write styles per sites. there's also a centralized place to find already written styles. I use https://userstyles.org/styles/161954/hackernews-one-dark

I tweaked and combined two existing Stylus entries called "Hacker News Readable" and "Hacker News Readable Dark" to make a layout that changes from light to dark mode with the system settings. https://jsfiddle.net/DHepworth/e4kwpr9j/2/

Re: Ask HN: Dark mode for HN please?

#395
post #316

Earlier quoted context omitted.

Honestly theres a lot of other sites that would benefit from that too. A well written and maintained scraper for a bunch of popular sites may be worth a subscription for some bandwidth limited people.

I've thought about this, too; some of my favorite sites are forums that are a pain to use on mobile (e.g. RuTracker). Seems like a fun project, so I may start planning it when I have time.

Be careful with that: it very probably goes against all sorts of TOS and can get you in trouble

Re: Ask HN: Dark mode for HN please?

#396
post #345

I wouldn't vote against the existence of a dark mode - why not make it an option - but I strongly vote against making it default. If your monitor is throwing out so much light that you're getting eye strain, you need to turn down the brightness of your monitor or phone screen. For myself, most of the time my monitors are set to a maximum of around 30 on a scale of 100, and I don't get any eyestrain. Dark mode with a…

Changing the monitor twice a day is quite a pain. Perhaps you're thinking of laptops and phones where this isn't a big deal, but external screens' brightness can't be controlled that way. And I'm not sure I'd want my main driver to adjust: at brightness levels where I can read HN without feeling like a vampire, I wouldn't be able to read some of the lower contrast syntax-highlit text in my terminal anymore.

Check out this comment: https://news.ycombinator.com/item?id=23199877

In short, yes, external monitors can be adjusted on the computer.

As for the rest, it’s not as if you’re stuck with one choice of color scheme for your editors either.

Re: Ask HN: Dark mode for HN please?

#398
post #362

Earlier quoted context omitted.

I have to say - if your monitor is blinding you, you have it set to too high a brightness. You're doing yourself a disservice by not turning it down. It should only throw out as much light as a piece of pristine printer paper in the same orientation. In the middle of the day my monitor tops out at about 30 of 100, and in the evenings I will occasionally turn it down to about 5 or 10. Many modern monitors will offer a…

Alas, these days webpages at half-brightness are often unreadable because of washed-out main text.

In my experience, low contrast text is going to have a low contrast no matter how bright or dim your computer screen is. That is, turning up the brightness will only wash out the text as it overwhelms your eyes.

It’s also an accessibility issue, but that’s a comment for a different article.

Re: Ask HN: Dark mode for HN please?

#399

I took a shot at it: https://monokai.nl/lab/hacker-news/hn-dark1.png https://monokai.nl/lab/hacker-news/hn-dark2.png https://monokai.nl/lab/hacker-news/hn-dark3.png The principles I followed: - Alligator energy. No need to redo the layout or apply the latest design trends. HN is fine as is. - Respect the original design. The dark version uses the same color hierarchy as the elements in the original design. - No-nonse…

The tracking is too tight for light-on-dark.

You focused on colors and forgot about the content. You can't just invert colors and think that the typography automatically works. It often doesn't.

Re: Ask HN: Dark mode for HN please?

#400
post #359

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…

I prefer it straight black which this minimal CSS does (Screenshot: https://imgur.com/a/2lcy1Ga ) :root, html { background-color: white; filter: invert(100%); } * { background-color: inherit; }

Nice. You can also add a `hue-rotate(180deg)` to somewhat preserve colors and add `img` to invert images back to normal again.

I have this as a bookmark and work well in many cases.

Post reply on HN