Detect Dark Mode Preference with JavaScript

Seemingly every website, dapp, and app offers a dark mode preference, and thank goodness. Dark mode is especially useful when I’m doing late night coding, or even worse, trading into altcoins. I’m presently working on implementing a dark theme on MetaMask and it got me to thinking: is there a way we can default to dark mode if the user’s operating system also defaults to dark mode? You can determine if the user’s operating system prefers dark mode with one quick line of code: const prefersDarkMode = window.matchMedia("(prefers-color-scheme:dark)").matches; // true This code snippet takes advantage of the CSS prefers-color-scheme media query with JavaScript’s... more →
Posted in: JavaScript

6 new Android features: Schedule text messages, Dark Mode on Google Maps and more – CNET

6 new Android features: Schedule text messages, Dark Mode on Google Maps and more  CNET Google Maps Dark Mode for Android Users Starts Rolling Out Globally  Gadgets 360 How to turn on the new Google Maps dark mode  Pocket-lint Google Maps dark theme officially announced, coming soon to Android  9to5Google Google rolls out dark mode for Maps, games for Android Auto  Pocketnow View Full Coverage on Google News “map app” – Google News… more →
Posted in: Interactive Maps

Google Maps readying app-wide dark mode on Android [APK Insight] – 9to5Google

Google Maps readying app-wide dark mode on Android [APK Insight]  9to5Google Google Maps will soon get the feature you’ve been waiting for  BGR Google Maps likely to get app-wide dark mode support very soon  BGR India Google Maps To Get App-Wide Dark Mode Soon  Android Headlines Google Maps is reading app-wide dark mode on Android  Positively Scottish View Full Coverage on Google News “map app” – Google News… more →
Posted in: Interactive Maps

Microsoft adds a dark theme and traffic hub to Windows maps for non insiders – MSPoweruser.com

MSPoweruser.com Microsoft adds a dark theme and traffic hub to Windows maps for non insidersMSPoweruser.comMicrosoft is rolling out another set of updates from the Insider preview rings to the general public's production ring. Microsoft is updating the Windows Maps app for the public branch of Windows 10, with new features in tow. First of all, there's a …and more » map app – Google News… more →
Posted in: Interactive Maps