How Safari 27.3 Beta Enables Dark Mode on Any Website
Safari 27.3 beta brings dark mode to any website without code changes at the browser level: how Adaptive Dark Mode works and what developers should know. По
Blog · Published: 28 November 2026 · 5 min read
Dark mode — this article covers the key points and practical recommendations.
Apple announced on the WebKit blog a feature called Safari 27.3 beta adapts light websites to dark mode — Adaptive Dark Mode. The feature automatically turns a light website's appearance into dark mode right in the browser, even if the developer never added support for it. According to WebKit, nearly 40% of page loads come from users with the system's dark mode enabled, yet only about 10% of websites properly adapt to it.

What Is Adaptive Dark Mode in Safari 27.3 Beta
The new feature is enabled manually by the user: if the system theme is set to dark while the open website remains light, the browser offers to turn on a preview. Once confirmed, the page is redrawn in dark mode without any involvement from the developer. If a site has already declared support through the color-scheme meta tag or an equivalent CSS property, Safari leaves it untouched — the site's own settings always take priority.
How the Browser Detects Page Colors
Safari analyzes the markup and determines whether the background is predominantly light or dark. The transformation uses a special color matrix that inverts luminosity while preserving hue. Text is adjusted to maintain a contrast ratio of at least WCAG 4.5:1, light gradients are turned dark, and decorative versus semantic colors are handled differently so that buttons and menus remain readable.
How Images and Effects Are Handled
Most photos and illustrations are left unchanged by the browser, preserving their original look. The exception is simple monochrome graphics: SVG icons and logos are recolored when needed, while black-and-white bitmap icons are inverted after analyzing their pixel histogram. Mask and blend-mode effects are disabled in some cases, and canvas content is left untouched entirely, since its content is impossible to predict.
- Backgrounds and text are recolored while preserving contrast
- SVG graphics are adapted automatically
- Black-and-white bitmap logos are inverted
- Canvas content and existing dark mode support are left unchanged
How Safari Transforms Sites Without a Dark Version of Their Own
For site owners who never considered a dark design, Adaptive Dark Mode acts as a safety net: the page won't strain the eyes of users with a dark system interface. However, automatic adaptation is a compromise, not a replacement for a custom dark theme. The algorithm relies on general contrast rules and doesn't understand the semantic meaning of specific design elements, so some blocks with brand colors may look different from what the designer intended.
It's also worth noting the privacy aspect: websites cannot detect whether the transformation has been applied to the page. JavaScript that queries CSS colors receives the original values rather than the transformed ones, and images drawn to canvas retain their original appearance. This is done so that the automatic dark mode doesn't become an additional vector for tracking users.
- Automatic adaptation is only enabled manually by the user
- Sites with their own dark theme are left untouched
- Scripts cannot detect that the transformation has been applied
How to Prepare a Website for Dark Mode
To avoid relying on the browser's automatic transformation, developers are advised to add a full-fledged dark theme themselves. It's enough to specify the color-scheme value in the document head or in a root CSS rule, then describe styles using the dark-scheme media query. Modern functions such as light-dark(), color-mix(), and contrast-color() make it possible to describe both palettes within a single set of CSS variables without duplicating code.
There are also simpler steps that noticeably improve the result even without a full dark palette: logos and icons should be converted to SVG instead of bitmap files, tiled backgrounds should be replaced with a solid color or CSS gradient, and content images should be created with a transparent background instead of baking in the page's background color. Extra internal padding in blocks helps avoid visual crowding once the background is recolored.
- Specify color-scheme in HTML or CSS as early as possible
- Use the prefers-color-scheme media query
- Replace bitmap logos with SVG
- Create images with transparent backgrounds
Why Include Color Scheme Checks in a Website Audit
Dark mode support is gradually becoming as standard a checkpoint in a technical website audit as correct headings or valid markup. The check reveals whether color-scheme support has been declared, whether text contrast is sufficient after color inversion, and whether logos lose readability during the browser's automatic transformation.
This kind of analysis matters beyond aesthetics: low contrast and unreadable icons degrade user experience and indirectly affect a site's behavioral metrics. Regularly checking color schemes alongside other technical parameters helps spot elements that don't adapt well to dark mode in time, allowing styles to be fixed before users notice.
Check how much of this is on your own site
A free scan surfaces broken links, JS errors and performance problems in about a minute.