react-garden
Version:
React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.
26 lines (23 loc) • 633 B
JavaScript
// ** Util Import
import { hexToRGBA } from '~/@core/utils/hex-to-rgba'
const Tooltip = theme => {
return {
MuiTooltip: {
styleOverrides: {
tooltip: {
backgroundColor:
theme.palette.mode === 'light'
? hexToRGBA(theme.palette.grey[900], 0.9)
: hexToRGBA(theme.palette.grey[700], 0.9)
},
arrow: {
color:
theme.palette.mode === 'light'
? hexToRGBA(theme.palette.grey[900], 0.9)
: hexToRGBA(theme.palette.grey[700], 0.9)
}
}
}
}
}
export default Tooltip