-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Documentation error: integration with tailwindcss step 3 #45019
Comments
You will need to add the id="root" on the body (e.g. inside app/layout.js), as next.js is no longer adding it by default. We should update the instructions. cc @samuelsycamore |
It seems like not easy, i trying add id to html and then add
tailwind.config.ts
|
Can you share a repository with the reproduction please? It would be easier to debug that way. |
It's working.
|
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @PunkFleet How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Reopening, as we still need to update the docs, e.g. on which root element should be used |
I make a repository, if it well have help. it's next v13 and it's working, doc is right and It's just missing the introduction of manually adding the |
Related page
https://mui.com/material-ui/integrations/interoperability/#tailwind-css
Kind of issue
Broken demo
Issue description
After creating a new nextjs project with the default options, if you want to be able to use both MUI and tailwindcss, you need to follow: https://mui.com/material-ui/integrations/nextjs/ and then to follow: https://mui.com/material-ui/integrations/interoperability/#tailwind-css
But at step 3 without adding
important
, it already works fine at this point. If you add theimportant
it doesn't work.Context
No response
Search keywords: tailwindcss nextjs
The text was updated successfully, but these errors were encountered: