---
title: ""
category: foundations
status: recommended
url: https://webspecification.com/spec/foundations/color-scheme/
updated: "2026-06-30T00:00:00.000Z"
sources:
- title: "HTML Living Standard — Standard metadata names: color-scheme"
url: "https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme"
publisher: "WHATWG"
- title: "CSS Color Adjustment Module Level 1 — the color-scheme property"
url: "https://www.w3.org/TR/css-color-adjust-1/#color-scheme-prop"
publisher: "W3C"
- title: "MDN — "
url: "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/color-scheme"
publisher: "MDN"
- title: "web.dev — Improve dark mode default with color-scheme"
url: "https://web.dev/articles/color-scheme"
publisher: "web.dev"
source_repo: undefined
licence: CC-BY-4.0
---
#
> Tells the browser which colour schemes your page is designed for. Prevents the white flash that dark-mode users see before your CSS loads, and lets the browser style scrollbars, form controls, and the page background to match.
## What it is
`color-scheme` declares which colour schemes your page is designed for — light, dark, or both. The browser uses that information to pick sensible defaults for things you didn't style yourself: the canvas background it paints before your CSS loads, scrollbars, native form controls, and the white-space around `` and `