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