Safari introduces Adaptive Dark Mode in 27.3 webkit.org · 261 points · 166 comme...
HN Best 30 @best30
Safari introduces Adaptive Dark Mode in 27.3 webkit.org · 261 points · 166 comments · HN thread
TL;DR Apple's WebKit blog announces Adaptive Dark Mode in Safari 27.3 beta: when a user enables it, Safari automatically renders light websites with dark colors, while pages that already support dark mode or declare color-scheme are left alone. Sites can opt out with color-scheme: light only, and Safari hides the transformation from page scripts for privacy.
- Enabled per user when system appearance is dark; Safari offers a 'Try' preview on bright sites.
- Pages declaring color-scheme light dark in HTML or CSS are untouched; pages that are predominantly dark are not changed.
- Colors are transformed by inverting luminosity while preserving hue, aiming for WCAG 4.5:1 text contrast; light CSS gradients are also darkened.
- SVG colors are adjusted when needed; simple black-and-white bitmap logos are inverted; canvas content is left unchanged.
- Scripts querying CSS colors receive the original authored values, and canvas output is unmodified, to avoid adding fingerprinting signals.
- Site owners can opt out with color-scheme: light only; feedback goes to Apple's web evangelist address or Feedback Assistant. The 'only' keyword was not yet supported in Safari 27.3 beta 1.
Discussion The thread splits between users who welcome automatic dark mode for sites that lack it and commenters who find dark backgrounds hard to read because of astigmatism, migraines or afterimages and want the opposite feature. Many point out that Hacker News itself has no dark mode and discuss workarounds such as Dark Reader, Noir, Stylus and uBlock Origin. Developers debate whether the browser should override site design, citing broken layouts, the privacy benefit of hiding the transform, and the availability of prefers-color-scheme and light-dark() as the proper fix. The mood is mixed, with more curiosity and practical tips than outright anger.
- Welcome automatic dark mode for sites without one (many): Users who read in dark mode, especially at night or on OLED phones, say this fills a long-standing gap where most sites still ignore dark preferences. Commenters also note existing extensions like Noir and Dark Reader already do similar things, and some say they would switch to Safari for it.
- Dark mode hurts my eyes; want light mode instead (many): Several commenters with astigmatism, migraines or floaters say white-on-black text blurs or causes afterimages, and ask for a reverse option that lightens dark sites. Some ask why the default should be dark at all.
- Sites should implement their own dark theme or opt out (some): Developers argue that automatic inversion produces broken images, charts and gradients, and that proper support via prefers-color-scheme or light-dark() is better. The light only tag gives them a way out, though some say clients or design systems make that hard.
- Browsers serve users, not website authors (some): Commenters defend the browser's right to restyle pages, pointing to ad blockers, reader modes and accessibility tools, and say sites' control over the viewer should shrink.
- Privacy concern about the browser lying to scripts (a few): A few object that hiding the transformed colors from JavaScript makes the browser deceptive, while others reply that browsers already hide things like visited links and that the change reduces fingerprinting.
- Chrome and other browsers have had this for years (a few): Commenters point out Chrome's hidden enable-force-dark flag and Android Chrome's Dark Mode toggle, and note that Firefox and Chrome users already rely on extensions.
Links from the comments
- MDN page on the CSS light-dark() function, offered as the proper way for developers to support both schemes.
- Write-up of a hue-preserving invert CSS filter for dark mode, shared as a DIY alternative.
- Chromium bug report about prefers-color-scheme not following the browser's own theme setting.
- APCA contrast documentation, cited as a more accurate measure than WCAG 2 for light-on-dark text.
- xkcd comic that a commenter linked while complaining about the trend toward dark-only sites.
#safari #darkMode #webkit #accessibility #browserExtensions #webDevelopment