extend TypeText with our custom properties
This commit is contained in:
parent
bb64660d90
commit
e1a32dedbf
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue