Sébastien Rigaux

Safari adapts light websites to dark mode

ReleaseCSSWCAGSVG
View resource

webkit.org

Safari 27.3 beta can darken websites that do not declare dark-mode support. WebKit describes a selective color transformation designed to preserve readability and visual elements rather than uniformly inverting the whole page.

The engine first estimates whether a page is light or dark, then adjusts text contrast, targeting the WCAG 4.5:1 ratio. SVGs and simple bitmap logos can also be adapted; canvas content remains unchanged. Sites that declare color-scheme: light dark are not transformed.

Two side-by-side screenshots of a journey-planning interface, shown in a light theme on the left and a dark theme on the right.