Web features explorer

light-dark()

Newly available since 2024-05-13
Tags: css Groups: CSS

The light-dark() CSS function accepts two colors and uses one depending on the current color scheme. To learn more, see light-dark() at MDN.

Compatibility