CSS · Interaction and accessibility

Colour scheme

Tells the browser which native control colours to use, such as scrollbars and form fields.

Syntax
color-scheme: dark

Example

Try it

More in this group

cursor Filter on focus Forced colours pointer-events Scroll behaviour

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course