Style
Defines core of theme. How theme is being set using Material-UI.
Theme configuration
// project import
import useConfig from 'hooks/useConfig';
import Palette from './palette';
import Typography from './typography';
....
export default function ThemeCustomization({ children }) {
const { borderRadius, fontFamily, mode, outlinedFilled, presetColor, themeDirection } = useConfig();
...
const themeOptions = useMemo(
() => ({
direction: themeDirection,
palette: theme.palette,
mixins: {
toolbar: {
minHeight: '48px',
padding: '16px',
'@media (min-width: 600px)': {
minHeight: '48px'
}
}
},
typography: themeTypography,
customShadows: themeCustomShadows
}),
[themeDirection, theme, themeCustomShadows, themeTypography]
);
....
}