This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Bramus (on vacation 🏝️)
bram.us
did:plc:343p6xcgmvkpz5abgezlgyep
New blog post: 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!
brm.us/--light-dark()
https://brm.us/--light-dark()
2025-09-30T20:08:37.363Z