[docs] Migration to pigment and NextJS integration docs are conflicting #43548
Labels
docs
Improvements or additions to the documentation
package: pigment-css
Specific to @pigment-css/*
support: docs-feedback
Feedback from documentation page
Related page
https://mui.com/material-ui/migration/migrating-to-pigment-css/#configuring-the-theme
Kind of issue
Missing information
Issue description
NextJS integration documentation tells us to create a theme and override
Typography
'sfontFamily
with it[https://mui.com/material-ui/migration/migrating-to-pigment-css/#configuring-the-theme]
While in Pigment migration docs it doesn't mention the need of changing it to be like this:
I was under impression that the first one was the only way of combining next/font and MUI, so I went by pigment migration docs and imported
Roboto
fromnext/font
directly intonext.config.mjs
:Obviously it didn't work
So here's my point. MUI doesn't explicitly tells you which way is preferable and doesn't force you into any of the possible solutions though one of them works with Pigment and the other one works by default. Is there a difference and how would it affect our apps if there is. I believe it would be better if docs were consistent and advised users to use next/font via passing class name into
body
tag. Or if that's only possible with Pigment, then Pigment migration docs should also highlight this change in the code snippet. Thank you.Context
No response
Search keywords: pigment, nextjs
The text was updated successfully, but these errors were encountered: