css-prefers-color-scheme
Use light and dark color schemes in all browsers
Use light and dark color schemes in all browsers
Detect & listen to preferences for prefers-color-scheme, prefers-reduced-motion, and prefers-contrast.
Detect if the user has requested the system use a light or dark color theme
Watch the OS color scheme
Tools to detect, switch and save dark theme for react applications
modern browser feature & prefers-* detection library