Mui/5/Core Styles Import

1.0.2Last update Jan 10, 2025
by@Codemod
Material-ui/core
migration

Renames private import from core/styles/* to core/styles

Before

import { createTheme } from "@material-ui/core/styles";
import { darken, lighten } from "@material-ui/core/styles/colorManipulator";
import makeStyles from "@material-ui/core/styles/makeStyles";
import { Overrides } from "@material-ui/core/styles/overrides";

After

import {
createTheme,
darken,
lighten,
makeStyles,
Overrides,
} from "@material-ui/core/styles";

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now