How will Vanilla Extract adapt to support <ident>
and <custom-ident>
?
#1513
ShayDavidson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://www.bram.us/2024/12/18/the-future-of-css-construct-custom-idents-and-dashed-idents-with-ident/
TLDR: these new CSS capabilities will allow interpolating values into CSS property names. I have a few thoughts on how to make these type safe with Vanilla Extract, e.g.:
Basically
createIdentableVar
create a function rather than a value. The variable name it produces is still randomly generated likecreateVar
and consistent across allmyIdentVar
calls. The argument is the enumerator (or even multiple enumerators).Beta Was this translation helpful? Give feedback.
All reactions