5 ms·
Hmmm. Does that mean we'll get dark mode now?
by rcarmo 1y ago
Hmmm. Does that mean we'll get dark mode now?
- dang 1y agohttps://news.ycombinator.com/item?id=23199062 https://news.ycombinator.com/item?id=23199062
- rcarmo 1y agoThat thread is 5 years old, and nothing really came out of it. The genius solution in there is probably this one: @media (prefers-color-scheme:dark){body{filter:invert(1) hue-rotate(180deg)}} ...which you can try by doing this in the browser console: const styleElement = document.createElement('style'); styleElement.type = 'text/css'; styleElement.textContent = "@media (prefers-color-scheme: dark) { html { filter: invert(1) hue-rotate(180deg); } }"; document.head.appendChild(styleElement); But I get that there are a lot of opinions. Just try one, put up a vote over a week, do it over 4-6 weeks, settle on the one that has the best feedback...
- brudgers 1y agoThat thread is 5 years old This might be what we are up against: https://norvig.com/21-days.html https://norvig.com/21-days.html https://paulgraham.com/hundred.html https://paulgraham.com/hundred.html
- rcarmo 1y agoI’m all for stability and all (heck, I still use vanilla vim), but some things are… necessary.
- rwmj 1y agoCan't you use tampermonkey or a similar tool that lets you apply your own stylesheet?
- quotemstr 1y agoThe OP isn't really asking for a "dark mode" like a literal reading of his comment might suggest. He's asking for an officially supported dark mode that evolves with the site and doesn't break random functionality one day. It's easy to use Stylist or TamperMonkey to make a dark mode that works at one instant of time. It's much harder to maintain one indefinitely in the face of constant changes made by developers not concerned with breaking your work, which they probably don't even know about.
- SoftTalker 1y agoI think there was a vision early in the evolution of the web that user-supplied stylesheets would be a lot more commonly used than they turned out to be. Things like colors, contrast levels, font sizes, are often matters of personal preference, and the browser (in theory) is the common place to manage those. Each site should not have to reinvent this feature.
- johnisgood 1y agoIt is possible to have this feature built-in to the browser. I am surprised it has not been implemented yet (?).
- altairprime 1y agoThere was a Chrome experiment for it when I looked last year; it worked well in some cases and was just as bad at Google Sheets as every other generic darkmode solution.
- randallsquared 1y agoBrowsers used to commonly support user stylesheets. Chrome removed it a long time ago, and I'm not sure what the status of that is in Firefox now. The issue is that there's no single common use case for them, and if there were, it would be simpler to build it in. But maintaining that level of flexibility has a continuing cost...
- yyx 1y agouBlock origin filter: ! Hacker News dark mode news.ycombinator.com##html:style(filter:invert(90%) hue-rotate(180deg)) news.ycombinator.com##body:style(background: white)
- rcarmo 1y agoDoes not work in embedded browsers in RSS readers. We need a proper site CSS, not client-side patches.
- cess11 1y agoThere is an API somewhere, could wrap that with whatever you feel like.
- rcarmo 1y agoThat’s not really the point, my RSS reader’s in-app browser couldn’t deal with that.
- satiric 1y agoConsidering Hacker News thinks font-size:9pt is acceptable for body text in 2025, don't hold your breath.
- krior 1y agowhats wrong with that?
- satiric 1y agoIt's too damn small. Firefox automatically scales it up to 12px (as does Chrome I think), and even then I zoom in to 130% to get the font to 15.6px. On the home page the text that tells you who the poster is, how many upvotes and comments, etc, is gray text on a gray background, at 7pt font. Again, Firefox and Chrome scale this up to 9.33pt, which again, is too small for me to read comfortably on a 24 inch desktop monitor without zoom. (I accept that 120% would be fine; that brings up the main font size to 14.4pt. Wikipedia seems to use 14pt and that's totally fine for me. But still, neither me nor the browser should have to scale up the website.) Even at 130% zoom, on the home page I can see 20 posts at once. I understand complaints that reddit went too far in the other direction, but that doesn't mean they should throw accessibility out the window for this site.
- simoncion 1y ago> Firefox automatically scales it up to 12px... Only if you've told it to. My Firefox settings have "Minimum Font Size" set to "None". Perhaps scaling up to 12px is a default? (Edit: Also, are you sure you're not thinking of 12pt? IIRC, points are DPI-independent units and (AIUI) the traditional way of specifying font sizes in computerized typography.) Despite my age, I still have eyes that are good enough to easily read the font sizes you're complaining about. A hugely important part of a User Agent is that it provide overrides for site design choices that the Agent's user has decided will benefit them. It's a good thing that UAs let folks like you choose a minimum-possible font size. It's an equally good thing that UAs let folks like me choose to see the choices that designer made that others criticize.
- Tijdreiziger 1y agoI use the awesome “Dark Reader” browser extension, which gives you dark mode on any website.
- rcarmo 1y agoDoes not work in in-app browsers.
- justsomehnguy 1y agoAsk your browser for the reading mode
- rcarmo 1y agoThat does not prevent a big white flash in the middle of the night, and does not work inside all in-app browsers.