Live data from Hacker News

Ask HN: Dark mode for HN please?

news.ycombinator.com

281–290 of 469 posts

Re: Ask HN: Dark mode for HN please?

#281

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…

Thanks man, I already applied it to my HN using Stylus extension.

Re: Ask HN: Dark mode for HN please?

#282

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…

"No fancy fonts, no javascript, no nothing." Truthfully, there is some Javascript. For example, onclick(). Voting without Javascript requires some extra effort.

True, but doesn't this even save bandwidth because it doesn't need to reload the whole page just to update that detail? Either way it still works without JS, which can't be said about most modern websites.

Re: Ask HN: Dark mode for HN please?

#283
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!

I tried various of dark mode plugins in Firefox and none of them seem to be able to do their job without obvious shortcomings. For example most of them don't check the original color of the website and just invert colors of dark pages as well. Or in some cases it doesn't invert all text colors, making hyperlinks hard to read.

None of the extensions I've tested can match the dead simple CSS override I used in qutebrowser.

Re: Ask HN: Dark mode for HN please?

#284
Whilst touching the CSS. Could it be considered to fix the code overflow on mobile?

    It is the effect of having a line which is longer than the viewport - so we end up having to scroll that specific line. Some might say it is better not to wrap code but I more often see this as part of a quote. I you really do not like to wrap the lines then I would prefer a scrollbar on the whole section. (I hope this line demos the issues).
I am not asking for mobile CSS. It is just on mobile it is most obvious.

My CSS knowledge is severely limited but I was thinking something along the lines of

    pre {
            overflow-x: auto;
            white-space: pre-wrap;
            white-space: -moz-pre-wrap;
            white-space: -pre-wrap;
            white-space: -o-pre-wrap;
            word-wrap: break-word;
     }
Others might have better ideas. Please chime in.

I salute the credo of moving slowly. And I hate to be a cry baby. I even hate the feature creep. But here I am :-}

Re: Ask HN: Dark mode for HN please?

#285
I must have some condition (other than old age) but I cannot look at dark-themes for more than a few seconds before my eyes start hurting. I switch it to a light theme wherever possible.

Yet, I know of the popularity of dark themes. But I wonder if I'm the only one or whether there are more people that experience the same effect?

I think it gets worse when I have to switch between mostly-dark content to mostly-light content. Thus, since most pages on the web have (near-) white background, I imagine I would really suffer when switching to and from HN a lot if it were in dark mode.

But hey, maybe that would be a good thing for my productivity ;-)

Re: Ask HN: Dark mode for HN please?

#287
post #128

Earlier quoted context omitted.

Blockchain. No one said blockchain yet. We have to blockchain it. Blockchain it with cryptos.

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

It is also important to incorporate chatbots

Re: Ask HN: Dark mode for HN please?

#288

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.

The css doesn't need to be inlined in the page, so unless you disable caching it's not served for every request at all.

Re: Ask HN: Dark mode for HN please?

#290
post #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!!!!

due to HN's simplicity it's already pretty mobile friendly, they just need to make some of the links bigger.
Post reply on HN