CSS color-scheme-dependent colors with light-dark()

submited by
Style Pass
2024-03-28 08:00:08

System colors have the ability to react to the current used color-scheme value. The light-dark() function exposes the same capability to authors.

Bramus X GitHub Mastodon Homepage

In CSS you can use many colors from one of the many color spaces. For example, you can use named colors, hex colors, color functions linked to a specific color space, the more generic color() function.

Leave a Comment