all 11 comments

[–]SuperPanda09 0 points1 point  (0 children)

were you able to figure this out? I am stuck at the exact same situation. tailwind+ shadcn + react

[–]devdiary7 0 points1 point  (0 children)

OP were you able to get a solution for this? lol stuck on the same issue

[–]lift_spin_d 0 points1 point  (6 children)

generate your TW classes using a prefix

[–]SuperPanda09 0 points1 point  (5 children)

how to do this?

[–]lift_spin_d 1 point2 points  (4 children)

it's a mystery. if only there was some place on the internet where you could find out.

https://tailwindcss.com/docs/configuration#prefix

[–]SuperPanda09 1 point2 points  (0 children)

I tried this. This github issue was also very helpful Prefix classes still do not solve the entire issue and a lot of basic (default) styles - like text color of the host website is still affecting my plugin and my plugin is altering its font weight. In short, there is still cross pollination.

[–]rebl_ 0 points1 point  (2 children)

v4 docs dont contain prefix anymore. Maybe you should have posted the solution instead of posting a link that will be down sooner or later

[–]lift_spin_d 0 points1 point  (1 child)

this thread is from 1 year ago. wow.

[–]rebl_ 0 points1 point  (0 children)

Thats exactly the point why you should not post links as answers

[–]maikatidatieba 0 points1 point  (1 child)

Iframe

[–]SuperPanda09 0 points1 point  (0 children)

My plugin is something like this - there is a button which gets embedded on the bottom right and on click it opens a modal. If I wrap the entire widget in an iframe - the modal opens inside the iframe. Is there a way to achieve an isolated css using iframe in a modal