extend TypeText with our custom properties

This commit is contained in:
Abhinav 2023-03-31 20:07:49 +05:30
parent bb64660d90
commit e1a32dedbf
3 changed files with 12 additions and 0 deletions

View file

@ -33,6 +33,9 @@ const darkThemePalette: PaletteOptions = {
primary: darkThemeColors.text.base,
secondary: darkThemeColors.text.muted,
disabled: darkThemeColors.text.faint,
base: darkThemeColors.text.base,
muted: darkThemeColors.text.muted,
faint: darkThemeColors.text.faint,
},
divider: darkThemeColors.stroke.faint,
};

View file

@ -33,6 +33,9 @@ const lightThemePalette: PaletteOptions = {
primary: lightThemeColors.text.base,
secondary: lightThemeColors.text.muted,
disabled: lightThemeColors.text.faint,
base: lightThemeColors.text.base,
muted: lightThemeColors.text.muted,
faint: lightThemeColors.text.faint,
},
divider: lightThemeColors.stroke.faint,
};

View file

@ -24,6 +24,12 @@ declare module '@mui/material/styles' {
elevated2: string;
}
interface TypeText {
base: string;
muted: string;
faint: string;
}
interface TypographyVariants {
large: React.CSSProperties;
body: React.CSSProperties;