frontAnswerer/lib/utils/themes/mui.d.ts

53 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-05-13 18:00:34 +00:00
import "@material-ui/styles";
declare module "@mui/material/styles" {
2024-05-31 16:41:18 +00:00
interface Palette {
lightPurple: Palette["primary"];
darkPurple: Palette["primary"];
brightPurple: Palette["primary"];
fadePurple: Palette["primary"];
grey1: Palette["primary"];
grey2: Palette["primary"];
grey3: Palette["primary"];
grey4: Palette["primary"];
orange: Palette["primary"];
navbarbg: Palette["primary"];
2024-11-22 19:13:04 +00:00
ownPlaceholder: Palette["primary"];
2024-05-31 16:41:18 +00:00
}
interface PaletteOptions {
lightPurple?: PaletteOptions["primary"];
darkPurple?: PaletteOptions["primary"];
brightPurple?: PaletteOptions["primary"];
fadePurple?: PaletteOptions["primary"];
grey1?: PaletteOptions["primary"];
grey2?: PaletteOptions["primary"];
grey3?: PaletteOptions["primary"];
grey4?: PaletteOptions["primary"];
orange?: PaletteOptions["primary"];
navbarbg?: PaletteOptions["primary"];
2024-11-22 19:13:04 +00:00
ownPlaceholder?: PaletteOptions["primary"];
2024-05-31 16:41:18 +00:00
}
interface TypographyVariants {
infographic: React.CSSProperties;
p1: React.CSSProperties;
}
interface TypographyVariantsOptions {
infographic?: React.CSSProperties;
p1?: React.CSSProperties;
}
2024-05-13 18:00:34 +00:00
}
declare module "@mui/material/Typography" {
2024-05-31 16:41:18 +00:00
interface TypographyPropsVariantOverrides {
infographic: true;
p1: true;
}
2024-05-13 18:00:34 +00:00
}
type DataAttributeKey = `data-${string}`;
2024-05-31 16:41:18 +00:00
declare module "react" {
interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
[dataAttribute: DataAttributeKey]: unknown;
}
2024-05-13 18:00:34 +00:00
}