PlasmoHQ / docs

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

Improve Tailwind CSS Usage in Content Scripts UI #96

Closed iperzic closed 8 months ago

iperzic commented 10 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 10 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 8 months ago

Awesome! LGTM 👍