You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This then causes the browser to report that the variables are missing:
If I take the same output from v4.1.3 into a normal style.css in a index.html (i.e. no web component) then it works as expected. My conclusion is that the output from v4.1.3 is workable, but something in the way web components use's style doesn't agree with @layer properties.
Does anyone know how to resolve this with web components?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We use Tailwind in a web component build. In version 4.1.1, Tailwind generated:
This worked fine. However, after upgrading to version 4.1.3, Tailwind moves these variables to:
This then causes the browser to report that the variables are missing:

If I take the same output from v4.1.3 into a normal
style.css
in aindex.html
(i.e. no web component) then it works as expected. My conclusion is that the output from v4.1.3 is workable, but something in the way web components use's style doesn't agree with@layer properties
.Does anyone know how to resolve this with web components?
Beta Was this translation helpful? Give feedback.
All reactions