175 points paddingtone 1 hour ago 113 comments
guessmyname 1 hour ago | parent
• As a web developer: what a nightmare, now your website will look different to different people, as if having to support multiple browser engines and multiple screen rations, and multiple platforms, etc. was not a big pile of problems already.
• As someone who doesn’t like dark-mode due to eye strain: good-good… for people who like it ¯\_(ツ)_/¯
vulcan01 1 hour ago | parent
> The HTML <meta name="color-scheme" content="light only"> tag lets browsers know that 1) this page supports light mode and 2) should only be displayed in light mode.
Spivak 1 hour ago | parent
mortenjorck 1 hour ago | parent
(I say this as a designer who has spent countless hours on dark-mode palettes as well as someone who has the automatic circadian toggle enabled everywhere.)
apsurd 1 hour ago | parent
threetonesun 1 hour ago | parent
isityettime 1 hour ago | parent
That's what the web has always been. People don't all have the same display types, the same subpixel layouts, the same display sizes, the same DPIs, the same fonts, the same zoom levels... People use reader modes, global restyling extensions, per-site custom style sheets, full screen magnifiers, bounded/partial magnifiers, screen readers, OS high-contrast modes... the web has never been a fixed canvas that you get to paint on and then hand to users.
kps 59 minutes ago | parent
_boffin_ 1 hour ago | parent
So… the browser is now intentionally lying now. Ain’t that great.
kvuj 1 hour ago | parent
To the server. I'm 100% behind this. The unholy amount of control websites have over our web browser should go down, not up.
giancarlostoro 1 hour ago | parent
Especially when so many lack reasonable ADA compliance.
mortenjorck 1 hour ago | parent
neilalexander 1 hour ago | parent
mirashii 1 hour ago | parent
morsch 1 hour ago | parent
kccqzy 1 hour ago | parent
Don’t you love it when browsers lie to websites to enhance the user’s privacy.
jordand 1 hour ago | parent
cluckindan 1 hour ago | parent
Worse: it’s attacking you
Worst: it’s attacking someone else as you
DuncanCoffee 1 hour ago | parent
figmert 1 hour ago | parent
pamcake 41 minutes ago | parent
- Checking "Enable remote debugging" and "Enable chrome and add-on debugging toolboxes" in devtools settings, opening Browser Toolbox (Ctrl+Shift+I), and looking at the "Network" tab
or
- Enable add-on debugging and inspect the addon from `about:debugging`
inshard 1 hour ago | parent
bla3 1 hour ago | parent
kccqzy 17 minutes ago | parent
> It’s precisely because Adaptive Dark Mode is happening deep within the WebKit browser engine that we are able to find creative ways to solve the most complex challenges, apply the transformations with great speed and power efficiency
hahnchen 1 hour ago | parent
kps 1 hour ago | parent
iOS since 26 has been presenting parts of the system in dark mode despite having the device set to light only. One of the ‘best’ is that launcher groups switch to dark background, but they forgot to switch the text colour, so app names are unreadable. I had hoped iOS 27 would fix it, but no, so I'm switching to Android.
I_am_tiberius 1 hour ago | parent
Transcendium 1 hour ago | parent
arcanemachiner 1 hour ago | parent
kevincox 1 hour ago | parent
2. The site can always provide their own dark theme if the automatic one is broken.
AndrewStephens 1 hour ago | parent
I added dark mode to my blog a while ago and it was a little trying to do properly.
You can implement a half-assed dark mode yourself by adding the following css.
@media(prefers-color-scheme: dark) {
body {
filter: invert();
}
}
All your images will be inverted as well, which doesn’t work well for photos.madeofpalk 1 hour ago | parent
filter: invert() hue-rotate(180deg)
For images. Works better for illustrations to get the vibe of the original colours than actual photographs.sheept 1 hour ago | parent
color-scheme: light dark;
should be sufficient to enable dark mode for users who prefer dark mode.For icons, ideally they’d be SVGs controlled by currentColor, but that may not be feasible or convenient depending on your setup.
grounder 1 hour ago | parent
JulianPaul 1 hour ago | parent
madeofpalk 1 hour ago | parent
isityettime 1 hour ago | parent
sheept 1 hour ago | parent
kps 1 hour ago | parent
figmert 1 hour ago | parent
redwall_hp 56 minutes ago | parent
The preference, either way, is an important accessibility feature.
loloquwowndueo 52 minutes ago | parent
nozzlegear 42 minutes ago | parent
wiredfool 33 minutes ago | parent
kickingvegas 1 hour ago | parent
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
kps 1 hour ago | parent
jansan 1 hour ago | parent
kulahan 55 minutes ago | parent
Safari and Firefox are pretty small.
zamadatix 49 minutes ago | parent
The underlying problem is Chrome exposes no (normal) setting to override the OS level setting at all, not necessarily that the preference shall always follow the browser's theme specifically.
omer_balyali 44 minutes ago | parent
jansan 23 minutes ago | parent
So if the user sets dark mode in the browser, do they not explicitly express their preference for websites? How could they be more explicit about the setting?
[1]https://drafts.csswg.org/mediaqueries-5/#prefers-color-schem...
cosmotic 51 minutes ago | parent
toyg 7 minutes ago | parent
I was a theme junkie back in Windows 98 times, but stopped bothering since it became increasingly clear that Microsoft was not really interested in supporting them after XP.
da_chicken 3 minutes ago | parent
akersten 34 minutes ago | parent
- <meta name="color-scheme" content="light dark">
- :root { color-scheme: light dark }
- @media (prefers-color-scheme: dark) { }
- <picture><source media="(prefers-color-scheme: dark)">
.... and then we've got `light-dark()`, the goofy looking dragon hanging out to the side of these majestic, forward-thinking parts of the specification.Did they not look at the prior art and notice that "one of these things is not like the other?" All the other pieces of this puzzle, conceivably, could have one day had something like `:root { color-scheme: halloween }` or `@media (prefers-color-scheme: supercontrast)` but no, we're just going to cement `light-dark()` as the only two possible color schemes we'd ever want to switch between forever.
have_faith 22 minutes ago | parent
nsoam 1 hour ago | parent
roflchoppa 1 hour ago | parent
kccqzy 13 minutes ago | parent
vinnymac 1 hour ago | parent
Here is to hoping that is not the case, and they did a good job with the implementation in Safari, but I have my suspicions.
aaomidi 1 hour ago | parent
Yes, developers can solve this by simply implementing dark mode.
vinnymac 1 hour ago | parent
marcellosso 1 hour ago | parent
joshuat 1 hour ago | parent
This sounds like it meets that threshold, it will just surely be a hit-or-miss mess. Hopefully if it makes it to iOS it will drive more site owners to adapt to `prefers-color-scheme`.
JoshTriplett 1 hour ago | parent
wpm 44 minutes ago | parent
russellbeattie 1 hour ago | parent
This has to be the result of some passion project by yet another whacko dark mode fanatic (you know who you are). Non-standard, assuredly buggy, and basically a maintenance nightmare. Good luck with that craziness.
Can we have another setting which turns dark websites into actually readable light designs for adults?
cyanydeez 1 hour ago | parent
nouman0x45 1 hour ago | parent
loloquwowndueo 59 minutes ago | parent
I wish the crusade to make everything dark would end.
So do others. https://xkcd.com/3227/
greazy 55 minutes ago | parent
Reason077 54 minutes ago | parent
therealmarv 33 minutes ago | parent
quantumink 27 minutes ago | parent
P.S. the Duck browser literally has a universal dark mode setting, I don't recall a site it wasn't able to dark-force darkify for me (language is fun)
ivanjermakov 22 minutes ago | parent
altairprime 15 minutes ago | parent
drusepth 54 minutes ago | parent
pamcake 47 minutes ago | parent
Today it is!
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
saagarjha 43 minutes ago | parent
drusepth 21 minutes ago | parent
I know some people care about dark mode (and that's why I bit the bullet to add it), but I'd honestly much rather have spent all that time working on actual features.
charcircuit 51 minutes ago | parent
Meanwhile this features is actually tired to a persisted device setting that doesn't get reset every time you go to a new page.
pazimzadeh 49 minutes ago | parent
In dark mode, any windows that aren't dark can be huge eyesores.
I recently made a menu bar utility to enable per-window color invert for this reason: https://github.com/pazimzadeh/WindowInvert/
It helps for apps that don't have dark mode yet (Pages, etc) and even some apps that do (Preview has a dark mode, but it doesn't work on old PDF's).
senderista 46 minutes ago | parent
speedping 37 minutes ago | parent
hendersoon 35 minutes ago | parent
macNchz 34 minutes ago | parent
famfamfam 24 minutes ago | parent
To try it, go to chrome://flags and search for Dark Mode, then enable Auto Dark Mode for Web Contents.
Alternatively, you can toggle it on using the Chrome DevTools Rendering tab, as "Enable automatic dark mode"
arccy 21 minutes ago | parent
prh8 15 minutes ago | parent
Personally, I find it close to perfect for Gmail and HN, among others
seanwilson 12 minutes ago | parent
The WCAG 2 contrast checker is known to be inaccurate, specifically for light on dark color combinations (i.e. dark mode) so 4.5:1 isn't always going to be easy to read. The APCA contrast checker was being considered for WCAG 3 that corrects for flaws like this:
https://git.apcacontrast.com/documentation/APCAeasyIntro.htm...
accidc 9 minutes ago | parent
drfloyd51 6 minutes ago | parent
But this Apple arrogance is also why they are Apple. And why you are using a software keyboard and a phone shaped like a dark mirror.