brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Safari’s Adaptive Dark Mode darkens any bright site, and the site never finds out

Safari's Adaptive Dark Mode darkens any bright site, and the site never finds out

I have a MacBook Pro, an iPhone and a long-standing habit of squinting at white websites at night, so the Safari 27.3 beta caught my eye. Apple’s WebKit team just introduced Adaptive Dark Mode, and the idea is simple: if a site has no dark theme, Safari makes one for you.

Safari looks at the colours of a page and guesses whether it is mostly light or mostly dark. Dark pages are left alone. Light ones get converted: the brightness is flipped, the hue stays, and text is adjusted to aim for a 4.5:1 contrast ratio, the WCAG target. Light gradients get the same treatment. Most images stay as they are, simple black-and-white logos are inverted, and canvas content is not touched.

You turn it on by setting the system appearance to dark and opening a bright site. Safari offers a preview and you tap Try. It is off until you do that, so nothing changes behind your back.

According to the WebKit post, websites cannot detect that the feature is active, and scripts that ask for a CSS colour still get the value the author wrote. That is the right call for privacy: no new fingerprinting signal just because I like dark pages.

Sites that already declare color-scheme: light dark are not touched. The opposite opt-out, light only, is not supported yet in beta 1, so a site that insists on being white cannot say so for now.

Any automatic inversion has edge cases. WebKit itself says Safari sometimes switches off masks and mix-blend-mode on elements it transforms, and that the feature will change during the beta. Problem sites can be reported through Feedback Assistant. Reports also say it arrives alongside vertical tabs in the same beta, according to iClarified. Which devices get what is not clear to me yet: outlets disagree about whether the iPhone gets it, so I would not plan around it.

I do not run betas on my main machine, so I will wait for the release. Until then my plan is to see whether it makes the dark-mode extensions I keep seeing in the App Store pointless.

Further reading: WebKit: Introducing Adaptive Dark Mode, iClarified: Safari gains vertical tabs, Adaptive Dark Mode and new Siri controls in 27.3 betas, TechRadar: Safari finally gets vertical tabs and a new way to make any site dark, On this site: Safari's Adaptive Dark Mode darkens sites that never built one, and I think that's the right call

Link