Safari introduces Adaptive Dark Mode in 27.3 webkit.org · 194 points · 126 comme...

@best

Safari introduces Adaptive Dark Mode in 27.3 webkit.org · 194 points · 126 comments · HN thread

TL;DR Apple announced Adaptive Dark Mode in Safari 27.3 beta, which automatically renders light-background websites with dark colors for users who have dark mode enabled. Sites that declare color-scheme support or color-scheme: light only are left alone, and websites cannot detect when the transformation is applied.

  • Enabled per user when system appearance is dark; Safari offers a 'Try' preview on bright sites.
  • Sites declaring color-scheme: light dark in HTML or CSS are not changed; pages with predominantly dark backgrounds are left as is.
  • Text is adjusted toward WCAG 4.5:1 contrast; light gradients are darkened; SVG colors and simple black-and-white bitmap logos are inverted when needed; canvas content is untouched.
  • Sites can opt out with color-scheme: light only, though the 'only' keyword was not yet supported in Safari 27.3 beta 1.
  • For privacy, JavaScript reading CSS colors gets the original authored values and canvas images render unaltered, so sites cannot detect the transformation.
  • Apple recommends sites use modern practices such as SVG icons and light-dark styling, and invites feedback via web-evangelist@apple.com and Feedback Assistant.

Discussion The thread splits between users who welcome automatic dark rendering and commenters who find dark mode hard to read because of astigmatism, halation or migraines. Many point out that the feature is opt-in and that sites can opt out, while developers worry about broken layouts, the extra QA burden of supporting dark themes, and the browser effectively hiding true colors from pages. Several commenters mention existing tools such as Dark Reader, Noir and Chrome's hidden flag, and the Hacker News site itself comes up as an example of a site lacking dark mode. The mood is mixed, with lots of practical debate and some sarcasm about the decades-long dark mode trend.

  • Welcome: users with dark mode preference benefit (many): Commenters who use dark mode, especially at night on OLED phones, are glad to see bright sites rendered dark without needing extensions. Several already use Noir or Dark Reader and praise the idea of a built-in version.
  • Dark mode is hard to read for me (many): A substantial group with astigmatism, floaters or migraines says white-on-black text blurs or causes headaches, and they prefer light mode everywhere. Some ask for a reverse feature that lightens dark sites.
  • Developers should just implement dark mode themselves (some): Some argue that prefers-color-scheme and color-scheme already let sites handle dark mode properly, so browser transformations are unnecessary and risk breaking layouts, images and charts.
  • Browser should serve the user, not the website (some): Several commenters defend the browser acting as the user's agent, saying users should control how pages look, and they welcome the privacy protection of hiding the transformation from scripts.
  • Concern about broken sites and developer burden (some): Developers and others worry the automatic approach will produce inconsistent looks, unreadable charts and blame falling on site owners, pointing to the poor history of Gmail dark mode and similar tools.
  • Feature is a dark-mode-only solution that ignores pure-black problems (a few): One commenter dislikes pure black backgrounds and wants softer dark colors, while another complains that dark mode is overemphasized as a trend rather than a benefit.

Links from the comments

#Safari #darkMode #webkit #accessibility #webDevelopment #browsers