make it so that inline variables that reference other inline variables are resolved without generating CSS variables. #17396
nasheomirro
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
Uh oh!
There was an error while loading. Please reload this page.
-
@theme inline
is great for avoiding too much CSS variables and the whole problem with CSS variable resolution. But currently it only works when using utility classes, if referenced normally it will still generate the inline CSS variable, and does not substitute:it's also a problem when I create custom utilities but I want to be specific on which color the utility works on and how that would be named:
if we generate the
preset-tonal-primary
class defined above, a lot more unnecessary CSS variables are created. A way to solve it is for tailwind to resolve it itself, maybe something like:with the above, no
inline
variable is generated at all, another solution would be to make any inline variable that references another inline variable resolve automatically too.Beta Was this translation helpful? Give feedback.
All reactions