Shadows
Add or remove shadows to elements with box-shadow utilities.
Mui core shadows
Customized customShadows
customShadowsHow to use
import {useTheme} from '@mui/material/style';
function YourComponent() {
const theme = useTheme();
return (
<>
...
...
// normal shadow
<Box sx={{ boxShadow: theme.customShadows.z1 }}>....</Box>
// shadows according to palette
<Box sx={{ boxShadow: theme.customShadows.primary }}>....</Box>
...
...
</>
)
}