prefersDarkColorScheme
Checks if the user color scheme preference is dark
.
- Use
Window.matchMedia()
with the appropriate media query to check the user color scheme preference.
Checks if the user color scheme preference is dark
.
Window.matchMedia()
with the appropriate media query to check the user color scheme preference.