


For instance, on Windows, Mac and Android Q, the user needs to change the theme via system setting and for other platforms, the user has to rely on –force-dark-mode command line argument. The feature will be supported but depending on the platform user need to change the theme via a setting. Google has announced today that they’ll ship Prefers-color-scheme for Chrome browser for all Blink platforms: Windows, Mac, Linux, Chrome OS, Android, and Android WebView. Chrome to Ship CSS Prefers-color-scheme media feature Safari Technology Preview 68 is first to implement this and Google Chrome is working on it, while Mozilla to ship Firefox 67, set to release on May 14 has already implemented this feature for their browser. The Media Queries CSS Prefers -color-scheme detects if the user prefers a light or dark theme. How about websites going dark when your OS theme setting set to dark? Interesting! It is possible with media queries: Prefers-color-scheme which Firefox 67 and Chrome 76 support. Till now depending on the Theme preference –light or dark–set in Windows 10 or MacOS Mojave, Chrome or Firefox or Opera or other browser synchronizes and change their browser UI instantly.
