@mui/codemod
Version:
Codemod scripts for Material UI.
13 lines (12 loc) • 483 B
JavaScript
var _colorManipulator = require("@mui/system/colorManipulator");
const Component = styled('div')(({
theme
}) => ({
backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.main, 0.2),
color: (0, _colorManipulator.lighten)(theme.palette.text.primary, 0.5),
border: `1px solid ${(0, _colorManipulator.lighten)(theme.palette.divider, 0.1)}`,
'&:hover': {
backgroundColor: (0, _colorManipulator.lighten)(theme.palette.primary.dark, 0.3)
}
}));
;