Replies: 3 comments 3 replies
-
Hi @knotri! I recommend taking a closer look at tailwindcss-scoped-preflight. This plugin allows you to avoid style conflicts by isolating tailwind styles. |
Beta Was this translation helpful? Give feedback.
-
Hey! You can actually do this in v4 by ejecting out of the @layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@layer utilities {
#root {
@tailwind utilities;
}
} |
Beta Was this translation helpful? Give feedback.
-
@philipp-spiess could you please show me small example with I want to use container utility and typography plugin and apply TW classes inside boundary, eg the example |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
use case:
using tailwind with 3rd party CSS
using tailwind in chrome extension content script
problem:
tailwind could interact with other websites CSS code.
existing solution:
official documentation recommends using prefix, but then it requires u to manually write it each time in every class in your html/jsx
I been also looking several threads on tailwind github with similar questions, and stack overflow, but so far, didn't found a solution.
what I am looking for
Allow me to use tailwind ONLY inside my wrapper.
version
I been struggle with this problem in v3 as well as v4
Beta Was this translation helpful? Give feedback.
All reactions