Material UI v5: import from @material-ui/core/styles

Proprietary

Moves the imports of @material-ui/core/styles/<module> to @material-ui/core/styles, as the optimal-imports mode does for the paths of @material-ui/core. Ported from the MUI codemod v5.0.0/core-styles-import.

org.openrewrite.react.mui.v5.core-styles-import
mod run . --recipe=org.openrewrite.react.mui.v5.core-styles-import

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.