On this page
color-scheme
Prev: `color` | Up: typography | Next: `accent-color`
Rel: typography, Typography & Color Guide
Ref: MDN Web Docs — color-scheme
Tags: #public #web #css #properties #typography #tier/core
Syntax & Overview
color-scheme: light dark;
Declares supported OS themes, adapting native form controls, scrollbars, and light-dark().
- Initial:
normal| Inherited: Yes | Animatable: No
Notes & Best Practices
- Tells the browser to style native scrollbars, form controls, and
light-dark()for light and/or dark themes.
Example
:root { color-scheme: light dark; }
Linked from
Related notes
- tuts/css/properties/typography/accent-color Linked here; links to this page; shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/typography/color Linked here; links to this page; shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/typography Linked here; links to this page; shared tags: #css, #properties, #typography, #web
- tuts/css/properties/typography_and_color Linked here; shared tags: #css, #properties, #typography, #web
- tuts/css/properties/typography/font-family shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/typography/font-size shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/typography/line-height shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/typography/text-wrap shared tags: #css, #properties, #tier, #typography, #web
- tuts/css/properties/box_model/aspect-ratio shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/box-sizing shared tags: #css, #properties, #tier, #web