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
Currently the @theme CSS properties are exposed to :root, which is great but it would be also good to expose it to :host, like this :root, :host {}. This way the CSS properties are also available in web components.
Lets say you have a widget as web component <custom-widget></custom-widget> and inside there is CSS and tailwindcss classes in shadowroot, :root will not work - in this scenario the :host is the :root for the web component.
What version of Tailwind CSS are you using?
For example: v4.0.0-alpha.21
Describe your issue
Currently the
@theme
CSS properties are exposed to:root
, which is great but it would be also good to expose it to:host
, like this:root, :host {}
. This way the CSS properties are also available in web components.Lets say you have a widget as web component
<custom-widget></custom-widget>
and inside there is CSS and tailwindcss classes in shadowroot,:root
will not work - in this scenario the:host
is the:root
for the web component.Eg. how it's done in Winduum here - https://github.com/winduum/winduum/blob/next/src/base/theme/default.css
The text was updated successfully, but these errors were encountered: