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
bram.us
did:plc:343p6xcgmvkpz5abgezlgyep
CSS @function + CSS if() = 🤯
I combined them to build a custom --light-dark() that behaves just like the built-in light-dark() but that is not limited to only <color> values.
🔗 Blog Post + Demo: https://www.bram.us/2025/02/18/css-at-function-and-css-if/
👨🔬 Chrome Canary + Experimental Web Platform Features
2025-02-18T22:55:50.649Z