Added color lightening function, removed hardcoded colors from theme
This commit is contained in:
1 parent
76e34149e9
commit
6bd8fec119
4 files changed
+48
-51
No files matched your search
@@ -1,28 +1,21 @@
|
||||
import { createTheme } from "@mui/material";
|
||||
|
||||
// Colors for MUI theme
|
||||
const primaryMain = "#1570EF";
|
||||
const secondaryMain = "#475467";
|
||||
const tertiaryMain = "#475467";
|
||||
|
||||
// Label Colors
|
||||
const labelBorderOrange = "#F9DBAF";
|
||||
const labelBgOrange = "#FEF6EE";
|
||||
const labelTextOrange = "#B93815";
|
||||
|
||||
const labelBorderGray = "#EAECF0";
|
||||
const labelBgGray = "#F9FAFB";
|
||||
const labelTextGray = "#344054";
|
||||
|
||||
const labelBorderPurple = "#E9D7FE";
|
||||
const labelBgPurple = "#F9F5FF";
|
||||
const labelTextGray = "#475467";
|
||||
const labelTextPurple = "#6941C6";
|
||||
|
||||
const labelBorderGreen = "#AAEFC6";
|
||||
const labelBgGreen = "#ECFDF3";
|
||||
const labelTextGreen = "#067647";
|
||||
|
||||
const theme = createTheme({
|
||||
palette: {
|
||||
primary: {
|
||||
main: primaryMain,
|
||||
},
|
||||
secondary: {
|
||||
main: secondaryMain,
|
||||
},
|
||||
@@ -30,23 +23,15 @@ const theme = createTheme({
|
||||
main: tertiaryMain,
|
||||
},
|
||||
labelOrange: {
|
||||
borderColor: labelBorderOrange,
|
||||
bgColor: labelBgOrange,
|
||||
textColor: labelTextOrange,
|
||||
},
|
||||
labelGray: {
|
||||
borderColor: labelBorderGray,
|
||||
bgColor: labelBgGray,
|
||||
textColor: labelTextGray,
|
||||
},
|
||||
labelPurple: {
|
||||
borderColor: labelBorderPurple,
|
||||
bgColor: labelBgPurple,
|
||||
textColor: labelTextPurple,
|
||||
},
|
||||
labelGreen: {
|
||||
borderColor: labelBorderGreen,
|
||||
bgColor: labelBgGreen,
|
||||
textColor: labelTextGreen,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user