So, if I’m reading this right it’s basically just a 17 paragraph essay that boils down to, “Sorry we suck at CSS and it took us a decade to finally get around to rooting out all the random shit from 2014 that was hard-coded to display as rgb(0,0,0) or whatever, which was a capability that in retrospect we really shouldn’t have handed out like candy?”
The TV Tropes wiki has managed to have a built in dark mode for at least the last 7 years. TV Tropes. Come on, guys.
I’m baffled by the section about “making a shortcut that darkens all the colors on the page.” I’m positive that’s the intent of that entire blurb, to dazzle people with bullshit in the hopes that they won’t ask Hard Questions, because no competent designer would ever try such a thing. It is a self-evidently moronic idea. You don’t fuck with elements you didn’t create and don’t control, like images and color swatches.
There are only really two viable possibilities, here:
- If arbitrary user definable, hard-coded colors in content are permissible, you’ll have to accept the fact that the cards will fall where they may and some instances will inherently be suboptimal in either light or dark modes, or…
- Accept that you won’t allow users to hard-code colors into anything outside of specific elements where that usage is valid, so users will just have to suck it up and pick from a list of preapproved color combinations with light and dark mode renditions.
hsdkfr734r@feddit.nl 3 months ago
Dark Reader Plugin already solved that issue.
deranger@sh.itjust.works 3 months ago
Native dark modes are better and have much less of a performance impact. It’s good as a stop gap though.
tal@lemmy.today 3 months ago
Agreed. Well, I don’t know if it’d deal with random images as well, as users can upload those.
For a number of sites, you can just get away with running Dark Reader in static mode and it works well enough. Considerably faster.
MonkderDritte@feddit.de 3 months ago
“Native”. That every webpage has to implement it themselves is sad. Could be a browser feature that overrides some colors on dark.
hsdkfr734r@feddit.nl 3 months ago
Maybe. Does it make a big performance difference which css (dark reader or delivered by wiki) is used?
Is it known how the default to dark mode setting is persisted if let’s say a plugin removes all the Wikipedia cookies on window close? A get or post parameter?
Either way it’s a good thing that wiki offers a dark mode.
Monomate@lemm.ee 3 months ago
Yeah, Dark Reader is a godsend. I just got tired of all the light mode webpages and took matters into my own hands.
tal@lemmy.today 3 months ago
I’m really surprised that it works as well as it does, given the insane amount of stuff that it interacts with. I’d think that it’d be way more fragile than it is.
pineapplelover@lemm.ee 3 months ago
Not a fan of dark reader. It has a weird blue tint to things. I much prefer Dark Background and Light Text. That extensions has a true black background.
ParetoOptimalDev@lemmy.today 3 months ago
You can change the color.
muntedcrocodile@lemm.ee 3 months ago
Is ot jyst me or does dark reader do formulas wrong on wikepedia for u as well?