On this page
  1. color-scheme
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

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().

Notes & Best Practices

Example

:root { color-scheme: light dark; }

Linked from

Related notes