PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.88k stars 316 forks source link

Do I have to import in full tailwindcss antd daisyui in content.tsx #964

Closed Dolov closed 2 months ago

Dolov commented 2 months ago

What happened?

Hello, I'm currently using Plasmo to develop a browser plugin, and it's fantastic. However, I have a question now. I want to use Tailwind CSS and DaisyUI in content.tsx. Does this mean I have to inject the full set of Tailwind CSS and DaisyUI styles into the Shadow DOM via the getStyle method? This would result in a very large file size, so I'd like to know if there are any best practices for this scenario. Thank you.

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct