add typography option "title"

This commit is contained in:
Abhinav 2022-05-19 23:03:22 +05:30
parent 3dc1b60e90
commit 4c63554109

View file

@ -13,6 +13,14 @@ declare module '@mui/material/styles' {
accent?: PaletteColorOptions;
danger?: PaletteColorOptions;
}
interface TypographyVariants {
title: React.CSSProperties;
}
interface TypographyVariantsOptions {
title?: React.CSSProperties;
}
}
declare module '@mui/material/Button' {
@ -27,6 +35,12 @@ declare module '@mui/material/Checkbox' {
}
}
declare module '@mui/material/Typography' {
interface TypographyPropsVariantOverrides {
title: true;
}
}
// Create a theme instance.
const darkThemeOptions = createTheme({
components: {
@ -80,8 +94,6 @@ const darkThemeOptions = createTheme({
'& .MuiDialogActions-root': {
padding: '32px 24px',
},
},
root: {
'& .MuiDialogActions-root button': {
marginLeft: '16px',
fontSize: '18px',
@ -131,6 +143,11 @@ const darkThemeOptions = createTheme({
fontSize: '14px',
lineHeight: '20px',
},
title: {
fontSize: '32px',
lineHeight: '40px',
fontWeight: 600,
},
},
});