Answers for "javascript get if ystem is dark mode"

0

js if dark mode

if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
    // dark mode
}
Posted by: Guest on February-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language