A custom --light-dark() function in CSS that works with any type of value (not just colors!) in just 3 LOC CSS Custom Functions (@function) + CSS if() + CSS color-scheme() = one sweet combo! Read Post →