detect dark mode

Solutions on MaxInterview for detect dark mode by the best coders in the world

showing results for - "detect dark mode"
Jona
02 Feb 2019
1const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches