PlasmoHQ / docs

📘 Documentation site
https://docs.plasmo.com
10 stars 50 forks source link

Improve Tailwind CSS Usage in Content Scripts UI #96

Closed iperzic closed 7 months ago

iperzic commented 9 months ago

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.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2024 7:59am
louisgv commented 7 months ago

Awesome! LGTM 👍