https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
Safari introduces Adaptive Dark Mode in 27.3 (webkit.org)
kickingvegas 7 hours ago
kps 7 hours ago
jansan 7 hours ago
kulahan 7 hours ago
Safari and Firefox are pretty small.
zamadatix 7 hours ago
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 7 hours ago
jansan 6 hours ago
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 5 hours ago
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 5 hours ago
omer_balyali 5 hours ago
However, your original comment was saying that prefers-color-scheme is bugged in Chrome is not true. It works as intended: it follows both UA-level and OS-level settings correctly.
The settings in Appearance tab is not a setting for preference when browsing the web. Many apps have a setting to choose if their app should change appearance when OS setting changed (or to override it), they could simply leave out this setting and let Chrome chrome (app ui) always follow the OS setting or always be in default light mode, instead they gave users to choose "how their Chrome browser will look like", not "how every website they visit should look like".
cosmotic 7 hours ago
toyg 6 hours ago
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 6 hours ago
Rohansi 5 hours ago
akersten 6 hours ago
- <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 6 hours ago
steve1977 11 minutes ago
tshaddox 4 hours ago
hexasquid 4 hours ago
hexasquid 4 hours ago
omer_balyali 4 hours ago
Also, prefers-contrast media query exists, which can be used in combination with the luminance modes (color-scheme): halloween-light, halloween-dark, halloween-light-high-contrast, halloween-dark-high-contrast.
nsoam 7 hours ago
jimbobimbo 6 hours ago
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 6 hours ago
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.
cj00 4 hours ago
marcellosso 7 hours ago
greazy 7 hours ago
ckdot 7 hours ago
Telaneo 6 hours ago
lnvdpwl 7 hours ago
tehnub 7 hours ago
chrisra 6 hours ago
accelbred 6 hours ago
NooneAtAll5 5 hours ago
kstrauser 3 hours ago
voxic11 an hour ago
kstrauser 19 minutes ago
macNchz 6 hours ago
mh- 6 hours ago
JulianPaul 7 hours ago
madeofpalk 7 hours ago
isityettime 7 hours ago
sheept 7 hours ago
isityettime 5 hours ago
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.
much-to-learn an hour ago
It’d be great if Apple could try this hard in the iOS messages app where there the keyboard is now only dark mode when a background is set.
kps 7 hours ago
figmert 7 hours ago
redwall_hp 7 hours ago
The preference, either way, is an important accessibility feature.
loloquwowndueo 7 hours ago
nozzlegear 7 hours ago
wiredfool 6 hours ago
MBCook 6 hours ago
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 6 hours ago
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.
MBCook an hour ago
kalleboo 4 hours ago
Apple soon started offering a dark mode as an accessibility feature https://kalleboo.com/linked/mac_closeview_control_panel.png
MBCook 4 hours ago
It was not an intended way to use things all the time for a large chunk of the user population.
Not the same.
bondolo 4 hours ago
Telaneo 34 minutes ago
That being that black paper is more expensive than white and that we're stuck with historical precedence?
Reading white text on a black background is much, much easier for me, and the few times I've had the pleasure of doing the same with paper, I still found it to be better. I haven't tried longer texts, since nobody's publishing actual books with black paper, but I'm willing to bet it I'd feel the same about those.
This just reads to me the 'serifs are important because they make reading easier (when reading of paper)', which doesn't reflect my lived experience at all. The only reason these phenomena seem to exist are historical accident and people being used to them.
ninkendo 5 hours ago
- 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.
rbits 4 hours ago
consumer451 3 hours ago
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
It's 2026, how does every single website, especially this one, not support this?
cosmic_cheese an hour ago
If/when flat design goes the way of the dodo and light themes are designed sanely once again I’ll pick them back up.
Reason077 7 hours ago
loloquwowndueo 7 hours ago
simonjgreen 7 hours ago
dmd 6 hours ago
doublepg23 5 hours ago
peregren 7 hours ago
davidhs 6 hours ago
Mistletoe 6 hours ago
therealmarv 6 hours ago
quantumink 6 hours ago
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 6 hours ago
NooneAtAll5 5 hours ago
Rohansi 5 hours ago
hackinthebochs 3 hours ago
codazoda 5 hours ago
entropie 4 hours ago
eek2121 5 hours ago
altairprime 6 hours ago
consumer451 6 hours ago
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 5 hours ago
drnick1 5 hours ago
kzemek 5 hours ago
bmurphy1976 5 hours ago
accrual 5 hours ago
eek2121 5 hours ago
I'd share my ruleset, however, I am missing one. Before I switched PCs (motherboard caught fire) I had one that made everything dark mode, didn't dim the text, and buttons/text inputs/other inputs were also properly inverted. I had to make it myself because googling Hacker News dark mode always led to the same broken themes. I forgot to back it up. Adding dark mode doesn't need a bunch of extensions, and while I'm sure the "stylus" extension is probably useful (I haven't used it, sounds like a CSS override extension), UBO does CSS and JS.
Just my thoughts. Don't mind me.
brigandish 4 hours ago
plorkyeran 4 hours ago
accrual 4 hours ago
postalcoder 5 hours ago
it now has many dark themes, bloomberg is my favorite.
gooseyman 4 hours ago
Where are the themes? (I might be missing on mobile)
postalcoder 4 hours ago
gooseyman 4 hours ago
postalcoder 4 hours ago
gerdesj 4 hours ago
I have no idea why all the fucking vibed websites that swank around the web these days are unable to do a simple thing:
* Have one or more "themes" with dark and light variants
* Query the browser for a preference of light or dark and offer the default theme with the probed variant.
There is also the rather wider issue of accessibility in general. I happen to be an older bloke with astigmatism and rapidly worsening ... fucked up focussing and glasses and that. I'm lucky to have both eyes and decent colour perception and general all around acuity (for a given value of acuity).It's 2026 FFS. Why on earth is this even being discussed as an issue? We have all these cool vibed efforts that can't even be bothered with simple basics.
cheald 4 hours ago
aleksandrm 4 hours ago
cheald 4 hours ago
willio58 4 hours ago
matthova 4 hours ago
I do appreciate how minimalist hackernews tries to be, but I think respecting the operating system's theme can be considered very minimalist
SpliffnCola 4 hours ago
Javascript: https://pastebin.com/50EUfktL CSS: https://pastebin.com/nzEhxxBY
internet2000 an hour ago
hahnchen 7 hours ago
kps 7 hours ago
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.
much-to-learn an hour ago
AndrewStephens 7 hours ago
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 7 hours ago
filter: invert() hue-rotate(180deg)
For images. Works better for illustrations to get the vibe of the original colours than actual photographs.analog_daddy 5 hours ago
sheept 7 hours ago
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 5 hours ago
stwrt 6 hours ago
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 5 hours ago
sdf4j 5 hours ago
seanwilson 6 hours ago
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...
jordand 7 hours ago
cluckindan 7 hours ago
Worse: it’s attacking you
Worst: it’s attacking someone else as you
DuncanCoffee 7 hours ago
figmert 7 hours ago
pamcake 7 hours ago
- 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`
pamcake 4 hours ago
speedping 7 hours ago
PalmPilotProMax 5 hours ago
Sounds like the Noir dev is going to be the next victim of Apple's Sherlocking.
accidc 6 hours ago
drusepth 7 hours ago
pamcake 7 hours ago
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 7 hours ago
drusepth 6 hours ago
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.
efields 4 hours ago
I'm sure there are designers that love dealing with two themes, and will do beautiful work within each theme.
But I'm really fine with letting the computer figure it out. CRM, back office tools, admin dashboards... many clients are approving one design and dark mode is an afterthought. Why can't the computer just... do it for me, and do a better than passable job at that.
hinkley 4 hours ago
The other was Github's icon. But `filter: invert(1)` does a pretty decent job of handling that as long as the icons are black and white.
reader9274 7 hours ago
kkotak 7 hours ago
famfamfam 6 hours ago
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 6 hours ago
tiffanyh 4 hours ago
Because correct me if I’m wrong, neither of these features were in the Tech Preview.
And numerous features have been in Tech Preview that have never made it into mainline Safari.
stwrt 3 hours ago
Safari Beta is generally what you'd want to use to test features coming to the next Safari release.
And yes, features appearing in Technology Preview aren't necessarily guaranteed to ship in Safari.
sivanmz an hour ago
pazimzadeh 7 hours ago
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 7 hours ago
bla3 7 hours ago
kccqzy 6 hours ago
> 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
gooseyman 4 hours ago
I use the brave beta appearance option "Dark Mode" and every now and then a site is almost unreadable.