Post
you've seen the relative color syntax CSS feature? you can pass a hex and get back rgb channels (and alpha) background: rgb(from #abc r g b / 50%); developer.chrome.com/blog/css-rel...
Thank you for the suggestion! It's not perfect, but looks nice. My biggest concern at this point is mostly the browser support, especially on iOS (caniuse.com/css-relative...). Are there any workarounds for old devices? I assume, that they will simply ignore that values.
i dont think we'll see custom properties in media queries, but we may see env() variables in there more likely that @custom-media will get picked up (spec drafts.csswg.org/mediaqueries...). open props has a bunch in a file, waiting to remove the postcss plugin open-props.style#media-queries
0 reposts2 likes
No replies yet.