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