adminFront/src/theme.ts

78 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-09-02 06:36:26 +00:00
import { createTheme } from "@mui/material";
2022-09-05 14:57:41 +00:00
//import { createTheme } from "./types";
2022-09-02 06:36:26 +00:00
2022-09-05 14:57:41 +00:00
const fontFamily: string = "GilroyRegular";
const fontWeight: string = "600";
2022-09-02 06:36:26 +00:00
const theme = createTheme({
palette: {
primary: {
2022-09-05 14:57:41 +00:00
light: "#26272c",
2022-09-02 06:36:26 +00:00
main: "#111217"
},
2022-09-05 14:57:41 +00:00
secondary: {
main: "#ffffff"
},
info: {
main: "#eaba5b"
}
},
typography: {
body1: {
fontFamily: fontFamily
},
subtitle1: {
fontFamily: fontFamily,
fontWeight: fontWeight,
fontSize: 21,
},
subtitle2: {
fontFamily: fontFamily,
fontSize: 21,
lineHeight: "37.5px"
},
caption: {
fontFamily: fontFamily,
fontWeight: fontWeight,
fontSize: 21,
},
h5: {
fontFamily: fontFamily,
fontWeight: fontWeight,
fontSize: 33,
},
h6: {
fontFamily: fontFamily,
fontWeight: fontWeight,
fontSize: 17,
},
2022-09-02 06:36:26 +00:00
},
});
2022-09-05 14:57:41 +00:00
declare module '@mui/material/styles' {
interface Theme {
palette: {
primary: {
light: string;
main: string;
},
secondary: {
main: string;
}
}
}
// allow configuration using `createTheme`
interface TypographyVariants {
body1: React.CSSProperties;
subtitle1: React.CSSProperties;
subtitle2: React.CSSProperties;
caption: React.CSSProperties;
h5: React.CSSProperties;
h6: React.CSSProperties;
}
}
2022-09-02 06:36:26 +00:00
export default theme;