# color-scheme

*noun*

say it: **“KUL-er SKEEM”** **/ˈkʌlər skiːm/**

A CSS property that tells the browser which themes a page supports, light, dark or both, so the browser's own parts, such as form fields and scrollbars, match.

## What does `color-scheme` do?

`color-scheme` tells the browser which themes your page supports: `light`, `dark` or both. The browser then draws its own parts, such as form fields, checkboxes and scrollbars, to match, and `light-dark()` knows which of its two colors to use.

```css
:root { color-scheme: light dark; }   /* this page has a light and a dark theme */
```

## In a sentence

- “After I set **color-scheme** to light dark, the checkboxes and scrollbars turned dark in dark mode too.”

Level: Journeyman · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/color-scheme
