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…
Challenge accepted: https://github.com/prettydiff/hn_dark The CSS works well for me, but I understand presentation is highly subjective and some people may not like it. Perhaps more important is that tiny bit of JavaScript in the readme.md so that anybody can rapidly experiment with CSS themes for Hacker News on live pages with just copy and paste. This was my first time to do a deep dive into the front-end code of H…
Ask HN: Dark mode for HN please?
431–440 of 469 posts
Re: Ask HN: Dark mode for HN please?
#432I 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…
Re: Ask HN: Dark mode for HN please?
#433Earlier quoted context omitted.
> grey-on-color is lower contrast than white-on-color. > Let's not make HN one of those sites. The OP of the thread you are replying to is #828282 on top of #f6f6ef. That is lower contrast than black on white.
I was responding to the comment I directly replied to, not commenting on the specific color scheme of the style.
Either it is already one of those sites or there is room between the most extreme contrasts. Pick one.
Re: Ask HN: Dark mode for HN please?
#434Ok, 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…
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…
Re: Ask HN: Dark mode for HN please?
#435Earlier quoted context omitted.
I was responding to the comment I directly replied to, not commenting on the specific color scheme of the style.
You said: "Let's not make HN one of those sites." Either it is already one of those sites or there is room between the most extreme contrasts. Pick one.
Re: Ask HN: Dark mode for HN please?
#436I 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…
I love the top bar, this is fantastic. Saw the domain, then your username, then the bio: "Author of the original Monokai color scheme". I didn't know there was a person behind it, I thought it was just a name! Sounds like you should definitely be on the Hacker News Color Advisory Committee to make this work well for everyone given your experience in designing dark modes.
I'll gladly accept a humble place in the HN Color Advisory Committee :)
Re: Ask HN: Dark mode for HN please?
#437I 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…
Good job preserving the HN spirit! My only feedback is the gray text (#808080) on the dark gray background (#222222), has a contrast ratio of ~4:1 which some people may find difficult to read (and slightly below WCAG recommendation for regular text[1]). I think you can lighten the text slightly without disrupting the surrounding color hierarchy. [1] https://webaim.org/resources/contrastchecker/
Re: Ask HN: Dark mode for HN please?
#438I 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?
#439I 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…
A question, how would the black bar appear in dark mode? It should be set out somehow. Also would be useful if when the black bar appears there’s a link to the person honored.
Re: Ask HN: Dark mode for HN please?
#440Earlier quoted context omitted.
You said: "Let's not make HN one of those sites." Either it is already one of those sites or there is room between the most extreme contrasts. Pick one.
HN is currently "black on very light background". The equivalent dark mode would be "white on very dark background". I hope we end up with either that, or even better, white on a black background (because that would be great for devices with OLED screens, including many phones).