add typography option "title"
This commit is contained in:
parent
3dc1b60e90
commit
d29fc9fa84
|
@ -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: {
|
||||
|
@ -77,11 +91,9 @@ const darkThemeOptions = createTheme({
|
|||
MuiDialog: {
|
||||
styleOverrides: {
|
||||
paper: {
|
||||
'& .MuiDialogActions-root': {
|
||||
'& .MuiDialogActions-root, & .MuiDialogTitle-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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue