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.

Learning resources on MDN

Browser support