ColorScheme Op
Get light/dark color scheme preference of the browser
Summary (oneliner)
Uses CSS media queries to find out if the user has set a preference for light or dark colors.
Full Name
- Ops.Devices.Browser.ColorScheme
- Core Op - Official cables op
- MIT
- caniuse.com: prefers-color-scheme
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Colorscheme example
OUTPUT PORTS
Color Scheme (String)
light/dark
Dark Mode (booleanNumber)
Light Mode (booleanNumber)
Supported (booleanNumber)