Answers for "Detect dark mode"

0

Detect dark mode

const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
Posted by: Guest on June-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language