Post
(coming from Lea Verou's latest skeet) > waiting for a browser-level toggle to be implemented sooner or later Not sure if you mean per-website or globally, but Chromium browsers have a global toggle already! :D
0 reposts2 likes
There’s also a per-website programmatic API. You just have to ask your users to use Chrome Canary and enable enable-experimental-web-platform-features 🫠
developer.mozilla.orgUser Preferences API - Web APIs | MDNThe User Preferences API allows page authors to programmatically override user preference-related media query settings.
Well, coming from the post "The best dark mode toggle is probably none", that API doesn't feel quite like the right tool for the job 😅 lea.verou.me/blog/2026/da...
lea.verou.meThe best dark mode toggle is probably none • Lea VerouMy post on two-state dark mode toggles sparked a lot of discussion about the optimal dark mode toggle design. But should you have a (persistent) dark mode toggle at all? I have since been convinced th...