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 { gradient } = colors;
|
|
|
|
|
/* const gradient = {
|
|
|
|
|
color1: "#fcfcfd",
|
|
|
|
|
color2: "#fdfcfd",
|
|
|
|
|
color3: "#fdfdfd",
|
|
|
|
|
color4: "#fefdfe",
|
|
|
|
|
color5: "#fefefe",
|
|
|
|
|
}; */
|
2024-11-08 18:36:43 -05:00
|
|
|
|
2024-11-09 08:01:14 -05:00
|
|
|
const border = { light: "#eaecf0", dark: "#d0d5dd" };
|
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: {
|
|
|
|
|
primary: { main: "#1570EF" },
|
|
|
|
|
secondary: { main: "#F4F4F4", dark: "#e3e3e3", contrastText: "#475467" },
|
|
|
|
|
text: text,
|
|
|
|
|
background: background,
|
|
|
|
|
border: border,
|
|
|
|
|
info: {
|
|
|
|
|
text: text.primary,
|
|
|
|
|
main: text.tertiary,
|
|
|
|
|
bg: background.main,
|
|
|
|
|
light: background.main,
|
|
|
|
|
border: border.dark,
|
|
|
|
|
},
|
2024-11-09 08:01:14 -05:00
|
|
|
gradient,
|
2024-10-17 12:05:06 +08:00
|
|
|
success: {
|
|
|
|
|
text: "#079455",
|
|
|
|
|
main: "#17b26a",
|
|
|
|
|
light: "#d4f4e1",
|
|
|
|
|
bg: "#ecfdf3",
|
|
|
|
|
},
|
|
|
|
|
error: {
|
|
|
|
|
text: "#f04438",
|
|
|
|
|
main: "#d32f2f",
|
|
|
|
|
light: "#fbd1d1",
|
|
|
|
|
bg: "#f9eced",
|
|
|
|
|
border: "#f04438",
|
|
|
|
|
},
|
|
|
|
|
warning: {
|
|
|
|
|
text: "#DC6803",
|
|
|
|
|
main: "#fdb022",
|
|
|
|
|
light: "#ffecbc",
|
|
|
|
|
bg: "#fef8ea",
|
|
|
|
|
border: "#fec84b",
|
|
|
|
|
},
|
|
|
|
|
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-08-29 17:14:17 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default lightTheme;
|