Profile

User's avatar
npub159nr...rz7e
npub159nr...rz7e
At #Fronteers #DarkMode, @npub16zza...2ugy proposed the <rangegroup> HTML Element which he has been working on at Open UI. It unlocks the multi-handle range slider, a pattern you might have already used when picking a price-range on a travel website. - Explainer: - Demos: - Feedback Form: image
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!
CSS Excitement! > RESOLVED: Add `color-scheme()` test to both `@container` queries and `if()`. This means you can do a light-dark() that works with any type of value 🀩🀩 ``` background-image: if(color-scheme(dark): url(dark.svg); else: url(light.svg)); ```