Replies: 1 comment
-
I am in a similar situation. I would like to use tailwind for styling a widget, and thus I don't want to clash with any existing styles in the consuming app. It would be awesome to add a prefix to the generated styles without the need to use the prefixes throughout the codebase. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hey! I have React code that uses a function to add prefixes to the final output:
className={classes('container mx-auto')}
.This was to avoid having to re-write all classes to include the prefix, plus it is a pain to write them. The use case is for a Chrome Extension, so I need the prefixes to avoid collision on any site.
This is not a problem with Tailwind v2 since I can just set it to add a prefix.
But tailwind 3 never finds those prefixes/classes, since it is looking for something like
__tw_container
, giving me an empty CSS file.Is there a way to either:
Beta Was this translation helpful? Give feedback.
All reactions