This change aims to help developers avoid potential issues with CSS variables in CSUI with the built-in Root Container. It provides additional information on how to handle CSS variables when using Tailwind and its plugins, which often rely on the :root selector.
The update includes a specific example of how to replace the :root scope with :host before attaching the style to the shadow DOM, especially when using a Tailwind plugin like DaisyUI.
This change aims to help developers avoid potential issues with CSS variables in CSUI with the built-in
Root Container
. It provides additional information on how to handle CSS variables when using Tailwind and its plugins, which often rely on the:root
selector.The update includes a specific example of how to replace the
:root
scope with:host
before attaching the style to the shadow DOM, especially when using a Tailwind plugin like DaisyUI.