Replies: 1 comment 10 replies
-
MUI actually exposes
The full solution is available in the repo above, branch I still think thought that the inconsistency between development and production is an issue, so I'm leaving this thread open. |
Beta Was this translation helpful? Give feedback.
10 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.
-
Hi! I'm trying to make TailwindCSS play nicely with MUI.
The problem I'm facing is a different behaviour between development and production. Take this:
On development, Tailwind gets higher priority (is injected later, I assume), so it overwrites hardcoded MUI styles. That is the way I would prefer (especially as it seems that one can not remove CSS rules in current version of MUI).
On production, MUI (resp. emotion) takes over, which slaps
height: 1.2rem
over the Skeleton and squishes it.So yeah, not the best dev experience. :) Just imagine the number of bugs you find out only after you deploy the thing.
I've created the repo where you can reproduce the problem. You know the drill:
Is this expected behaviour? Can I regulate this somehow (e.g. give Tailwind bigger priority)?
Also I assume that out of the three, I should ask those questions to Next.js, as it does the CSS importing.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions