@mui/system
Version:
MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.
28 lines (27 loc) • 677 B
JavaScript
import style from "../style/index.mjs";
import compose from "../compose/index.mjs";
/** @internal */
export function paletteTransform(value, userValue) {
if (userValue === 'grey') {
return userValue;
}
return value;
}
export const color = style({
prop: 'color',
themeKey: 'palette',
transform: paletteTransform
});
export const bgcolor = style({
prop: 'bgcolor',
cssProperty: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
export const backgroundColor = style({
prop: 'backgroundColor',
themeKey: 'palette',
transform: paletteTransform
});
const palette = compose(color, bgcolor, backgroundColor);
export default palette;