I am writing a Google chrome Extension and decided to use next.js and tailwindcss. When testing my extension, I happened to be on another page where I had used tailwindcss on the page for styling. I noticed that my pages styling was getting messed up and assume it's due to conflicts between the two. Is there a way of namespacing or packaging tailwindcss into a developed chrome extension in a way so that the extension doesn't interfere with the pages styling should others pages use tailwindcss as well?
I did come across another post referencing https://www.npmjs.com/package/postcss-parent-selector but when I incorperated it, it wasn't allowing my width for my extension to be set as well as a few other css elements. I tried a few things then I eventually found that it was the use of the parent-selector module that was somehow preventing the proper css from being used.
I then found out about the prefix option in tailwind.config.js, but it seems I was still dealing with worse conflict issues because both primary tailwind style files were overwriting base, component and utilities.
I am going to go back to looking at postcss-parent-selector to see if I can better understand why it is failing at times, but wanted to reach out here to see if anyone had possibly any other options or suggestions.
Thanks for your time!