Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In App (react-router v7 / SSR) tailwind overrides lib-imported Component styles (component made with stylex) #98

Open
guygit opened this issue Dec 20, 2024 · 0 comments

Comments

@guygit
Copy link

guygit commented Dec 20, 2024

Hi there,

I made a component lib with stylex and in the consuming app (react-router 7 / SSR) was tailwind pre-installed. I have followed the instructions in the README.md of this lib (including the last part Working with external StyleX files and libraries.

Problem: As long tailwind is configured, the components from the lib get overridden. Also the order of the imports (tailwind vs lib) doesn't change anything. Only when tailwind is taken out, the lib-component renders fine.

I am running out of options - maybe someone can make me a Christmas present by giving me a hint :-)

Also, lowering the specificity for tailwind didn't help. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant