2024-08-29 17:14:17 -04:00
|
|
|
import { createTheme } from "@mui/material";
|
2024-11-08 18:36:43 -05:00
|
|
|
import { baseTheme } from "./globalTheme";
|
2024-11-09 08:01:14 -05:00
|
|
|
import { colors } from "./constants";
|
2024-08-29 17:14:17 -04:00
|
|
|
|
|
|
|
|
const text = {
|
2024-10-17 12:05:06 +08:00
|
|
|
primary: "#1c2130",
|
|
|
|
|
secondary: "#344054",
|
|
|
|
|
tertiary: "#475467",
|
|
|
|
|
accent: "#838c99",
|
2024-08-29 17:14:17 -04:00
|
|
|
};
|
|
|
|
|
const background = {
|
2024-10-17 12:05:06 +08:00
|
|
|
main: "#FFFFFF",
|
|
|
|
|
alt: "#FCFCFD",
|
|
|
|
|
fill: "#F4F4F4",
|
|
|
|
|
accent: "#f9fafb",
|
2024-08-29 17:14:17 -04:00
|
|
|
};
|
2024-10-29 21:35:58 -04:00
|
|
|
|
2024-11-09 08:01:14 -05:00
|
|
|
const border = { light: "#eaecf0", dark: "#d0d5dd" };
|
2024-08-29 17:14:17 -04:00
|
|
|
|
2024-11-10 17:00:13 -05:00
|
|
|
const {
|
|
|
|
|
primary,
|
|
|
|
|
secondary,
|
|
|
|
|
success,
|
|
|
|
|
error,
|
|
|
|
|
warning,
|
|
|
|
|
gradient: {
|
|
|
|
|
color1: { light: color1 },
|
|
|
|
|
color2: { light: color2 },
|
|
|
|
|
color3: { light: color3 },
|
|
|
|
|
color4: { light: color4 },
|
|
|
|
|
color5: { light: color5 },
|
|
|
|
|
},
|
|
|
|
|
} = colors;
|
|
|
|
|
|
2024-08-29 17:14:17 -04:00
|
|
|
const lightTheme = createTheme({
|
2024-11-08 18:36:43 -05:00
|
|
|
...baseTheme,
|
2024-10-17 12:05:06 +08:00
|
|
|
palette: {
|
2024-11-10 17:00:13 -05:00
|
|
|
primary: { main: primary.main.light },
|
|
|
|
|
secondary: {
|
|
|
|
|
main: secondary.main.light,
|
|
|
|
|
dark: secondary.dark.light,
|
|
|
|
|
contrastText: secondary.constrastText.light,
|
2024-10-17 12:05:06 +08:00
|
|
|
},
|
|
|
|
|
success: {
|
2024-11-10 17:00:13 -05:00
|
|
|
main: success.main.light,
|
|
|
|
|
contrastText: success.contrastText.light,
|
|
|
|
|
light: success.light.light,
|
|
|
|
|
dark: success.dark.light,
|
2024-10-17 12:05:06 +08:00
|
|
|
},
|
|
|
|
|
error: {
|
2024-11-10 17:00:13 -05:00
|
|
|
main: error.main.light,
|
|
|
|
|
contrastText: error.contrastText.light,
|
|
|
|
|
light: error.light.light,
|
|
|
|
|
dark: error.dark.light,
|
2024-10-17 12:05:06 +08:00
|
|
|
},
|
|
|
|
|
warning: {
|
2024-11-10 17:00:13 -05:00
|
|
|
main: warning.main.light,
|
|
|
|
|
light: warning.light.light,
|
|
|
|
|
contrastText: warning.contrastText.light,
|
|
|
|
|
dark: warning.dark.light,
|
2024-10-17 12:05:06 +08:00
|
|
|
},
|
|
|
|
|
percentage: {
|
|
|
|
|
uptimePoor: "#d32f2f",
|
|
|
|
|
uptimeFair: "#ec8013",
|
|
|
|
|
uptimeGood: "#ffb800",
|
|
|
|
|
uptimeExcellent: "#079455",
|
|
|
|
|
},
|
|
|
|
|
unresolved: { main: "#4e5ba6", light: "#e2eaf7", bg: "#f2f4f7" },
|
|
|
|
|
divider: border.light,
|
|
|
|
|
other: {
|
|
|
|
|
icon: "#667085",
|
|
|
|
|
line: "#d6d9dd",
|
|
|
|
|
fill: "#e3e3e3",
|
|
|
|
|
grid: "#a2a3a3",
|
|
|
|
|
autofill: "#e8f0fe",
|
|
|
|
|
},
|
2024-11-10 17:00:13 -05:00
|
|
|
gradient: {
|
|
|
|
|
color1,
|
|
|
|
|
color2,
|
|
|
|
|
color3,
|
|
|
|
|
color4,
|
|
|
|
|
color5,
|
|
|
|
|
},
|
|
|
|
|
text: text,
|
|
|
|
|
background: background,
|
|
|
|
|
border: border,
|
|
|
|
|
info: {
|
|
|
|
|
text: text.primary,
|
|
|
|
|
main: text.tertiary,
|
|
|
|
|
bg: background.main,
|
|
|
|
|
light: background.main,
|
|
|
|
|
border: border.dark,
|
|
|
|
|
},
|
2024-10-17 12:05:06 +08:00
|
|
|
},
|
2024-08-29 17:14:17 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default lightTheme;
|