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; accent?: PaletteColorOptions;
danger?: PaletteColorOptions; danger?: PaletteColorOptions;
} }
interface TypographyVariants {
title: React.CSSProperties;
}
interface TypographyVariantsOptions {
title?: React.CSSProperties;
}
} }
declare module '@mui/material/Button' { 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. // Create a theme instance.
const darkThemeOptions = createTheme({ const darkThemeOptions = createTheme({
components: { components: {
@ -80,8 +94,6 @@ const darkThemeOptions = createTheme({
'& .MuiDialogActions-root': { '& .MuiDialogActions-root': {
padding: '32px 24px', padding: '32px 24px',
}, },
},
root: {
'& .MuiDialogActions-root button': { '& .MuiDialogActions-root button': {
marginLeft: '16px', marginLeft: '16px',
fontSize: '18px', fontSize: '18px',
@ -131,6 +143,11 @@ const darkThemeOptions = createTheme({
fontSize: '14px', fontSize: '14px',
lineHeight: '20px', lineHeight: '20px',
}, },
title: {
fontSize: '32px',
lineHeight: '40px',
fontWeight: 600,
},
}, },
}); });