front-hub/src/mui.d.ts

37 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-11-17 12:25:23 +00:00
import "@material-ui/styles";
declare module "@mui/material/styles" {
interface Palette {
custom: {
lightPurple: Palette["primary"],
darkPurple: Palette["primary"],
brightPurple: Palette["primary"],
grey: Palette["primary"],
2022-11-19 20:28:47 +00:00
orange: Palette["primary"],
2022-11-17 12:25:23 +00:00
};
}
interface PaletteOptions {
custom: {
2022-11-19 20:28:47 +00:00
lightPurple?: PaletteOptions["primary"],
darkPurple?: PaletteOptions["primary"],
brightPurple?: PaletteOptions["primary"],
grey?: PaletteOptions["primary"],
orange?: PaletteOptions["primary"],
2022-11-17 12:25:23 +00:00
};
}
interface TypographyVariants {
infographic: React.CSSProperties;
2022-11-19 20:28:47 +00:00
p1: React.CSSProperties;
2022-11-17 12:25:23 +00:00
}
interface TypographyVariantsOptions {
infographic?: React.CSSProperties;
2022-11-19 20:28:47 +00:00
p1?: React.CSSProperties;
2022-11-17 12:25:23 +00:00
}
}
declare module "@mui/material/Typography" {
interface TypographyPropsVariantOverrides {
infographic: true;
2022-11-19 20:28:47 +00:00
p1: true;
2022-11-17 12:25:23 +00:00
}
}