2024-02-19 09:20:54 +07:00

23 lines
500 B
JavaScript

// ** Util Import
import { hexToRGBA } from 'src/@core/utils/hex-to-rgba'
const Backdrop = theme => {
return {
MuiBackdrop: {
styleOverrides: {
root: {
backgroundColor:
theme.palette.mode === 'light'
? `rgba(${theme.palette.customColors.main}, 0.7)`
: hexToRGBA(theme.palette.background.default, 0.7)
},
invisible: {
backgroundColor: 'transparent'
}
}
}
}
}
export default Backdrop