Replies: 1 comment 6 replies
-
For what it's worth, you'd want to disable the preflight plugin, instead of removing |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been working on a
Chrome extension
and encountered a challenging issue with thepreflight
feature of Tailwind CSS, which tends to disrupt the styling of the original web page. Currently, there doesn't seem to be built-in support for selectively disabling thepreflight
feature at thecontent-script
level while keeping it enabled elsewhere, such as inpopups
.As a workaround, I have stopped including
@tailwind base
in thecontent script
, but this approach occasionally leads to incorrect styles from Tailwind CSS. I am wondering if there is an existing solution to achieve such isolation, or if this could be a feature worth considering for addition to Tailwind CSS to better support Chrome extension development.It likes:

But this is what it originally looked like:

Beta Was this translation helpful? Give feedback.
All reactions