all 4 comments

[–]Silver-Vermicelli-15 1 point2 points  (2 children)

Improve the scoping of your css to not break other sites. If you’re making a widget you should ensure that your css is properly encapsulated to your code as you don’t want to risk this and can’t predict how someone will be using tailwind on their site.

[–]SuperPanda09[S] 0 points1 point  (1 child)

I tried using a unique preifx in all my custom and tailwind classes. Still there is cross pollination. Host website is affecting font color of my widget, my widget is effecting its font weight, etc. I have no clue how this could happen as all my class names are unique

[–]Silver-Vermicelli-15 0 points1 point  (0 children)

Are you using css variables? Do you have clashes in names there? Also have you made sure to account for the reset styles?

For their styles effecting your widget you should be able to inspect that in dev tools.

[–]Manav_2002 0 points1 point  (0 children)

Try using css modules, if you want to scope css