A Rad Function To Be Excited About

Adam Argyle October 1, 2025
Source
Bramus with a rad snippet : @function --light-dark(--l, --d) { result: if (color-scheme(dark): var(--d); else: var(--l)); } In 3 lines, a --light-dark() CSS function that works anywhere 🤩

Discussion in the ATmosphere

Loading comments...