HTML & CSS · Senior · Question 56 of 75

What does color: light-dark(#111, #eee) do?

Explanation

It requires color-scheme: light dark (or a specific scheme) on the element or root. It reduces the number of duplicated variable definitions in media queries.

Further reading

Problem with a question

HTML & CSS · Senior · question 56

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz