Skip to content

Glossary: CSS Layout and Responsive Design

light-dark()

A function taking a light color and a dark color and picking one based on the page's `color-scheme`. It always gives the light color unless `color-scheme` is set.

Where the book teaches it

Related terms

color-schemeprefers-color-scheme