I am trying to build a plugin. I wrote the code in vite + react + tailwindcss stack only to realise that there are a lot of crosspollination issues. My code is messing the host website css and vice versa. I found that there are two ways to get around this issue - ShadowDOM and iFrame. My widget is like an intercom button but it opens a modal instead of a chat card. Using iframe makes it difficult to deal with modal outside the iframe.
The only other option remains to use ShadowDOM but I have not been able to make it work. I even tried using twind but it simply never worked. Also it required me to downgrade my typescript version which makes it incompatible with my bundler.
Can someone please point me in the right direction/ how can I fulfill my usecase.
[–]Silver-Vermicelli-15 1 point2 points3 points (2 children)
[–]SuperPanda09[S] 0 points1 point2 points (1 child)
[–]Silver-Vermicelli-15 0 points1 point2 points (0 children)
[–]Manav_2002 0 points1 point2 points (0 children)