Files
Checkmate/Client/src/Utils/Theme/lightTheme.js
T

114 lines
2.4 KiB
JavaScript
Raw Normal View History

import { createTheme } from "@mui/material";
import { baseTheme } from "./globalTheme";
import { colors } from "./constants";
2024-11-12 09:54:19 -05:00
/*
Take things from global theme
2024-10-29 21:35:58 -04:00
2024-11-12 09:54:19 -05:00
Next step: check if all here are being used.
Discuss colors with Gorkem and rest of the team
*/
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 },
},
2024-11-12 09:54:19 -05:00
background,
text,
border,
unresolved,
other,
2024-11-10 17:00:13 -05:00
} = colors;
const lightTheme = createTheme({
...baseTheme,
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,
},
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,
},
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,
},
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-11-12 09:54:19 -05:00
/* From this part on, try to create semantic structure, not feature based structure */
percentage: {
2024-11-12 09:54:19 -05:00
uptimePoor: error.main.light,
uptimeFair: warning.contrastText.light,
uptimeGood: warning.main.light /* Change for a success color? */,
uptimeExcellent: success.contrastText.light,
},
unresolved: {
main: unresolved.main.light,
light: unresolved.light.light,
bg: unresolved.bg.light,
},
2024-11-12 09:54:19 -05:00
divider: border.light.light,
other: {
2024-11-12 09:54:19 -05:00
icon: other.icon.light,
line: other.line.light,
fill: secondary.dark.light,
grid: other.grid.light,
autofill: other.autofill.light,
},
2024-11-10 17:00:13 -05:00
gradient: {
color1,
color2,
color3,
color4,
color5,
},
2024-11-12 09:54:19 -05:00
text: {
primary: text.primary.light,
secondary: text.secondary.light,
tertiary: text.tertiary.light,
accent: text.accent.light,
},
background: {
main: background.main.light,
alt: background.alt.light,
fill: background.fill.light,
accent: background.accent.light,
},
border: {
light: border.light.light,
dark: border.dark.light,
},
2024-11-10 17:00:13 -05:00
info: {
2024-11-12 09:54:19 -05:00
text: text.primary.light,
main: text.tertiary.light,
bg: background.main.light,
light: background.main.light,
border: border.dark.light,
2024-11-10 17:00:13 -05:00
},
},
});
export default lightTheme;