227 points paddingtone 2 hours ago 148 comments
guessmyname 2 hours 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 2 hours 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 2 hours ago | parent
mortenjorck 2 hours 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 2 hours ago | parent
threetonesun 2 hours ago | parent
isityettime 2 hours 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 2 hours ago | parent
_boffin_ 2 hours ago | parent
So… the browser is now intentionally lying now. Ain’t that great.
kvuj 2 hours 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 2 hours ago | parent
Especially when so many lack reasonable ADA compliance.
mortenjorck 2 hours ago | parent
neilalexander 2 hours ago | parent
mirashii 2 hours ago | parent
morsch 2 hours ago | parent
kccqzy 2 hours ago | parent
Don’t you love it when browsers lie to websites to enhance the user’s privacy.
jordand 2 hours ago | parent
cluckindan 2 hours ago | parent
Worse: it’s attacking you
Worst: it’s attacking someone else as you
DuncanCoffee 2 hours ago | parent
figmert 2 hours ago | parent
pamcake 1 hour 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`
bla3 2 hours ago | parent
kccqzy 1 hour 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 2 hours ago | parent
kps 2 hours 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 2 hours ago | parent
Transcendium 2 hours ago | parent
arcanemachiner 2 hours ago | parent
kevincox 2 hours ago | parent
2. The site can always provide their own dark theme if the automatic one is broken.
AndrewStephens 2 hours 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 2 hours ago | parent
filter: invert() hue-rotate(180deg)
For images. Works better for illustrations to get the vibe of the original colours than actual photographs.analog_daddy 20 minutes ago | parent
sheept 2 hours 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.
iza 38 minutes ago | parent
grounder 2 hours ago | parent
JulianPaul 2 hours ago | parent
madeofpalk 2 hours ago | parent
isityettime 2 hours ago | parent
sheept 2 hours ago | parent
isityettime 35 minutes ago | parent
I can't personally support light modes in my own software because I can't use/test them, but I'd still add an untested one and fix bug reports about it.
I'm just curious about what people mean when they talk about astigmatism in this context, because the term is usually thrown around without qualifications (plain "astigmatism" as opposed to "irregular astigmatism" or "uncorrectable astigmatism"). So I'm curious about the astigmatism of people for whom dark mode on glowing devices is a problem. Is it typically extremely severe? Is it typically uncorrectable? Is it that people's glasses or contacts are often subtly wrong/outdated? Are many astigmatics not myopic or presbyopic enough to wear glasses all the time anyway? Astigmatism is a broad category and I'm curious about the specific impairments people who avoid dark mode have, in part because I have astigmatism and nonetheless prefer (require, really) dark mode because of other vision problems.
kps 2 hours ago | parent
figmert 2 hours ago | parent
redwall_hp 2 hours ago | parent
The preference, either way, is an important accessibility feature.
loloquwowndueo 1 hour ago | parent
nozzlegear 1 hour ago | parent
wiredfool 1 hour ago | parent
MBCook 1 hour ago | parent
I don’t get the point at all (and don’t want to hear it, I’ve seen the arguments before).
It’s nice it’s there for people who want it but it baffles me it’s constantly treated like the greatest thing ever.
echoangle 52 minutes ago | parent
Because wood is bright and you can’t really print white ink on a black paper?
There might be a usability advantage but using black ink on white paper doesn’t really prove that, that’s just the easier option of the two possible choices.
ninkendo 35 minutes ago | parent
- Dark mode is harder to read when it’s bright out
- Light mode is blindingly bright when I’m in a dark room (and turning the brightness sufficiently low makes everything look washed out.)
My devices change from light mode to dark mode at sunset and it’s basically ideal.
Also it’s nice to just have less artificial light as the sun sets, which makes falling asleep naturally a bit easier.
kickingvegas 2 hours ago | parent
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
kps 2 hours ago | parent
jansan 2 hours ago | parent
kulahan 1 hour ago | parent
Safari and Firefox are pretty small.
zamadatix 1 hour 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 1 hour ago | parent
jansan 1 hour 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...
omer_balyali 39 minutes ago | parent
Chrome already has a setting to change a specific website's color-scheme, although it's only working when Developer Tools is visible (then with Cmd+Shift+P "Toggle CSS media feature prefers-color-scheme"), so CSS implementation actually follows respecting UA-level preference over OS-level setting.
But again, Chrome doesn't have a feature that lets users to choose which color-scheme they want to browse the web (so there is no bug, but it's a UX issue because their Appearance settings doesn't make it clear to the users what this setting changes) other than the setting they gave to developers. Honestly I would love to see all browsers have an option for how color-scheme settings should apply to websites.
jansan 16 minutes ago | parent
cosmotic 1 hour ago | parent
toyg 1 hour 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 1 hour ago | parent
Rohansi 3 minutes ago | parent
akersten 1 hour 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 1 hour ago | parent
nsoam 2 hours ago | parent
jimbobimbo 1 hour ago | parent
I wish Windows would steal this feature for the whole OS: I don't want Notepad to use dark for text, but per-app setting usually turns the whole app light.
0x1F8B 55 minutes ago | parent
But whether it is my os ui or my phone ui, I feel like I can't distinguish borders and boundaries in the UI as well as I can with light mode.
roflchoppa 2 hours ago | parent
kccqzy 1 hour ago | parent
vinnymac 2 hours 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 2 hours ago | parent
Yes, developers can solve this by simply implementing dark mode.
vinnymac 2 hours ago | parent
marcellosso 2 hours ago | parent
joshuat 2 hours 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 2 hours ago | parent
wpm 1 hour ago | parent
russellbeattie 2 hours 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 2 hours ago | parent
nouman0x45 2 hours ago | parent
loloquwowndueo 2 hours ago | parent
I wish the crusade to make everything dark would end.
So do others. https://xkcd.com/3227/
greazy 1 hour ago | parent
lnvdpwl 1 hour ago | parent
tehnub 1 hour ago | parent
chrisra 1 hour ago | parent
accelbred 41 minutes ago | parent
NooneAtAll5 33 minutes ago | parent
Reason077 1 hour ago | parent
loloquwowndueo 1 hour ago | parent
simonjgreen 1 hour ago | parent
dmd 1 hour ago | parent
doublepg23 22 minutes ago | parent
peregren 1 hour ago | parent
davidhs 1 hour ago | parent
Mistletoe 59 minutes ago | parent
therealmarv 1 hour ago | parent
quantumink 1 hour 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)
altairprime 1 hour ago | parent
consumer451 50 minutes ago | parent
The fact that this website wasn’t capable of dark mode made me create a CSS overlay on desktop.
I am back to somewhat normal now with my eyes, but I feel really bad for anyone in the same position.
I know that the current exact HN is magic, but come on. There is CSS to detect the system’s theme. There is no need to create a button or anything.
tensor 13 minutes ago | parent
drnick1 12 minutes ago | parent
kzemek 8 minutes ago | parent
bmurphy1976 2 minutes ago | parent
accrual 2 minutes ago | parent
drusepth 1 hour ago | parent
pamcake 1 hour 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 1 hour ago | parent
drusepth 1 hour 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 1 hour 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 1 hour 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 1 hour ago | parent
speedping 1 hour ago | parent
PalmPilotProMax 9 minutes ago | parent
Sounds like the Noir dev is going to be the next victim of Apple's Sherlocking.
hendersoon 1 hour ago | parent
macNchz 1 hour ago | parent
mh- 56 minutes ago | parent
famfamfam 1 hour 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 1 hour ago | parent
prh8 1 hour ago | parent
Personally, I find it close to perfect for Gmail and HN, among others
seanwilson 1 hour ago | parent
The WCAG 2 contrast checker is known to be inaccurate, specifically for light on dark color combinations (i.e. dark mode) meaning 4.5:1 isn't always going to be easy to read so it's surprising they're not at least using a higher ratio. The APCA contrast checker (was being considered for WCAG 3) is more accurate at measuring readable contrast levels and the docs explain the problems with WCAG 2 more:
https://git.apcacontrast.com/documentation/APCAeasyIntro.htm...
accidc 1 hour ago | parent
drfloyd51 1 hour 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.
accelbred 36 minutes ago | parent
kccqzy 1 hour ago | parent
Besides Solarized Dark, GitHub’s Soft Dark theme is quite well done, but unfortunately it’s not the default for a logged-out user with dark mode. So with dark mode I need to log in to GitHub to get acceptable colors.
Now that I think about it, I need a feature to limit the darkness of colors anywhere on the page, background or text except images. Remap #000 to #222 and #fff to #ddd.
stwrt 1 hour ago | parent
Having built websites myself, I know how much attention it takes to make sure every page and component looks good in both light and dark mode.
It's not perfect yet. Even in the second demo, you can see that the chart remains white, creating a stark contrast with the rest of the page. But it's a great step toward making dark mode work across the web without requiring every developer to implement it themselves.
drnick1 13 minutes ago | parent