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

119 lines
2.5 KiB
JavaScript
Raw Normal View History

2024-05-06 12:10:16 -07:00
import { createTheme } from "@mui/material";
// Colors for MUI theme
const primaryMain = "#1570EF";
2024-05-06 12:10:16 -07:00
const secondaryMain = "#475467";
const tertiaryMain = "#475467";
const tertiaryLinkHover = "#eff8ff";
2024-05-06 12:10:16 -07:00
2024-05-06 15:58:51 -07:00
// Label Colors
2024-05-07 14:22:39 -07:00
const labelOrange = "#F79009";
const labelGray = "#475467";
const labelPurple = "#6941C6";
const labelGreen = "#067647";
const labelRed = "#F04438";
// Section colors
const sectionBorder = "#D0D5DD";
const sectionBg = "#F8F9F8";
2024-05-14 11:06:34 +03:30
// Other Colors
const otherColorsBlackish = "#101828";
const otherColorsBluishGray = "#344054";
const otherColorsGraishWhite = "#eaecf0";
const otherColorsPurple = "#7f56d9";
const otherColorsWhite = "#fff";
const otherColorsGraishWhiteLight = "#f2f2f2";
const otherColorsStrongBlue = "#f2f2f2";
2024-06-17 22:30:35 -04:00
const otherColorsSlateGray = "#667085";
2024-06-25 17:38:40 -04:00
//box shadow
const shadow =
"0px 4px 24px -4px rgba(16, 24, 40, 0.08), 0px 3px 3px -3px rgba(16, 24, 40, 0.03)";
2024-05-14 11:06:34 +03:30
// Global Font Family
const fontFamilyDefault = '"Roboto", "Helvetica", "Arial", sans-serif';
2024-05-06 12:10:16 -07:00
const theme = createTheme({
palette: {
primary: {
main: primaryMain,
},
2024-05-06 12:10:16 -07:00
secondary: {
main: secondaryMain,
},
tertiary: {
main: tertiaryMain,
linkHover: tertiaryLinkHover,
2024-05-06 12:10:16 -07:00
},
2024-05-06 15:58:51 -07:00
labelOrange: {
2024-05-07 14:22:39 -07:00
color: labelOrange,
2024-05-06 15:58:51 -07:00
},
labelGray: {
2024-05-07 14:22:39 -07:00
color: labelGray,
2024-05-06 15:58:51 -07:00
},
labelPurple: {
2024-05-07 14:22:39 -07:00
color: labelPurple,
2024-05-06 15:58:51 -07:00
},
labelGreen: {
2024-05-07 14:22:39 -07:00
color: labelGreen,
},
labelRed: {
color: labelRed,
2024-05-06 15:58:51 -07:00
},
section: {
borderColor: sectionBorder,
bgColor: sectionBg,
},
otherColors: {
blackish: otherColorsBlackish,
bluishGray: otherColorsBluishGray,
graishWhite: otherColorsGraishWhite,
purple: otherColorsPurple,
white: otherColorsWhite,
graishWhiteLight: otherColorsGraishWhiteLight,
strongBlue: otherColorsStrongBlue,
2024-06-17 22:30:35 -04:00
slateGray: otherColorsSlateGray,
},
},
2024-06-25 17:38:40 -04:00
font: {
2024-05-14 11:06:34 +03:30
default: {
font: fontFamilyDefault,
},
},
shape: {
borderRadius: 4,
2024-06-26 19:06:10 -04:00
borderThick: 2,
2024-06-25 17:38:40 -04:00
boxShadow: shadow,
2024-05-06 12:10:16 -07:00
},
content: {
pX: "80px",
2024-07-06 14:33:36 -04:00
pY: "40px",
},
gap: {
small: "8px",
medium: "12px",
2024-07-06 14:33:36 -04:00
ml: "16px",
large: "24px",
2024-07-06 14:33:36 -04:00
xl: "40px",
},
alert: {
info: {
color: secondaryMain,
bg: otherColorsWhite,
border: "#d0d5dd",
},
error: {
color: "#d92d20",
2024-07-06 14:44:04 -04:00
bg: "hsla(0, 100%, 52%, 0.03)",
2024-07-06 14:33:36 -04:00
border: "#f04438",
},
warning: {
color: "#f79009",
bg: "#fffaef",
border: "#fecf60"
},
},
2024-05-06 12:10:16 -07:00
});
export default theme;