Skip to content

[docs][material-ui] Update "Style library interoperability" doc for Tailwind CSS + Next.js App Router #40416

Closed
@Laityned

Description

@Laityned

Related page

https://mui.com/material-ui/guides/interoperability/#tailwind-css

Kind of issue

Unclear explanations

Issue description

I was looking for how to integrate material-ui together with nextjs 14 app router and tailwind and it appears that following the guide does not results in a working configuration.
Step three tells you to add the important option using the id of your app wrapper:

  1. Add the important option, using the id of your app wrapper. For example, #__next for Next.js and "#root" for CRA:

The #__next id is only valid for the page router of Nextjs. It is not present in the app router. There is no element at all with an id, so people should insert this them self in their root layout

Context 🔦

No response

Search keywords: interoperability nextjs tailwind app router

Metadata

Metadata

Labels

docsImprovements or additions to the documentationnextjspackage: material-uiSpecific to @mui/materialready to takeHelp wanted. Guidance available. There is a high chance the change will be accepted

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions