feat: setting new colors
This commit is contained in:
1 parent
db86753701
commit
3ffcadc06e
61 files changed
+156
-140
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { light } from "@mui/material/styles/createPalette";
|
||||
|
||||
const typographyBase = 14;
|
||||
|
||||
/* TODO
|
||||
@@ -257,14 +259,12 @@ const semanticColors = {
|
||||
const newColors = {
|
||||
offWhite: "#FEFEFE",
|
||||
offBlack: "#131315",
|
||||
gray300: "#E3E3E3",
|
||||
gray600: "#A2A3A3",
|
||||
gray200: "#E3E3E3",
|
||||
gray500: "#A2A3A3",
|
||||
blueGray50: "#E8F0FE",
|
||||
blueGray500: "#475467",
|
||||
blueGray600: "#344054",
|
||||
blueGray800: "#1C2130",
|
||||
gray200: "#E3E3E3",
|
||||
gray500: "#A2A3A3",
|
||||
blueBlueWave: "#1570EF",
|
||||
green100: "#8CFFCB",
|
||||
green200: "#4B9B77",
|
||||
@@ -303,13 +303,17 @@ const newSemanticColors = {
|
||||
},
|
||||
secondary: {
|
||||
light: newColors.blueGray600,
|
||||
dark: newColors.gray300,
|
||||
dark: newColors.gray200,
|
||||
},
|
||||
tertiary: {
|
||||
light: newColors.blueGray500,
|
||||
dark: newColors.gray500,
|
||||
},
|
||||
},
|
||||
lowContrast: {
|
||||
light: newColors.gray200,
|
||||
dark: newColors.blueGray600,
|
||||
},
|
||||
},
|
||||
/* For success, warning and error, contrastText works wll with main, and with the theme primary main color. Accent is to be used in graphs */
|
||||
success: {
|
||||
@@ -376,6 +380,18 @@ const newSemanticColors = {
|
||||
dark: paletteColors.gray850,
|
||||
},
|
||||
},
|
||||
other: {
|
||||
grid: {
|
||||
light: paletteColors.gray300,
|
||||
dark: paletteColors.gray600,
|
||||
},
|
||||
},
|
||||
unresolved: {
|
||||
main: {
|
||||
light: paletteColors.blue700,
|
||||
dark: paletteColors.purple300,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/* TODO proximo passo: quebrar o projeto */
|
||||
|
||||
@@ -57,7 +57,7 @@ export default darkTheme;
|
||||
|
||||
// const palette = {
|
||||
// action: {
|
||||
// disabled: border.dark.disabled,
|
||||
// disabled: primary.lowContrast.disabled,
|
||||
// },
|
||||
// primary: { main: primary.main.dark },
|
||||
// secondary: {
|
||||
@@ -128,7 +128,7 @@ export default darkTheme;
|
||||
// },
|
||||
// border: {
|
||||
// light: border.light.dark,
|
||||
// dark: border.dark.dark,
|
||||
// dark: primary.lowContrast.dark,
|
||||
// },
|
||||
// info: {
|
||||
// text: text.primary.dark,
|
||||
|
||||
@@ -48,11 +48,11 @@ const baseTheme = (palette) => ({
|
||||
props: (props) => props.variant === "group",
|
||||
style: {
|
||||
/* color: theme.palette.secondary.contrastText, */
|
||||
color: theme.palette.neutral.contrastText,
|
||||
backgroundColor: theme.palette.background.main,
|
||||
color: theme.palette.primary.contrastText.main,
|
||||
backgroundColor: theme.palette.primary.main,
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.border.light,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -67,7 +67,7 @@ const baseTheme = (palette) => ({
|
||||
style: {
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.border.light,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -118,7 +118,7 @@ const baseTheme = (palette) => ({
|
||||
padding: 4,
|
||||
transition: "none",
|
||||
"&:hover": {
|
||||
backgroundColor: theme.palette.background.fill,
|
||||
backgroundColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
},
|
||||
@@ -131,7 +131,7 @@ const baseTheme = (palette) => ({
|
||||
padding: 0,
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.border.light,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
borderRadius: 4,
|
||||
boxShadow: shadow,
|
||||
backgroundColor: theme.palette.background.main,
|
||||
@@ -166,7 +166,7 @@ const baseTheme = (palette) => ({
|
||||
minWidth: 100,
|
||||
"&:hover, &.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible":
|
||||
{
|
||||
backgroundColor: theme.palette.background.fill,
|
||||
backgroundColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
},
|
||||
@@ -174,7 +174,7 @@ const baseTheme = (palette) => ({
|
||||
MuiTableCell: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
borderBottomColor: theme.palette.border.light,
|
||||
borderBottomColor: theme.palette.primary.lowContrast,
|
||||
}),
|
||||
},
|
||||
},
|
||||
@@ -191,7 +191,7 @@ const baseTheme = (palette) => ({
|
||||
backgroundColor: theme.palette.background.main,
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.border.light,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
"& button": {
|
||||
color: theme.palette.primary.contrastText.tertiary,
|
||||
borderRadius: 4,
|
||||
@@ -199,7 +199,7 @@ const baseTheme = (palette) => ({
|
||||
"& li:first-of-type button, & li:last-of-type button": {
|
||||
border: 1,
|
||||
borderStyle: "solid",
|
||||
borderColor: theme.palette.border.light,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
},
|
||||
@@ -208,7 +208,7 @@ const baseTheme = (palette) => ({
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
"&:not(.MuiPaginationItem-ellipsis):hover, &.Mui-selected": {
|
||||
backgroundColor: theme.palette.background.fill,
|
||||
backgroundColor: theme.palette.primary.lowContrast,
|
||||
},
|
||||
}),
|
||||
},
|
||||
@@ -216,7 +216,7 @@ const baseTheme = (palette) => ({
|
||||
MuiSkeleton: {
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
backgroundColor: theme.palette.unresolved.bg,
|
||||
backgroundColor: theme.palette.primary.lowContrast,
|
||||
}),
|
||||
},
|
||||
},
|
||||
@@ -224,7 +224,7 @@ const baseTheme = (palette) => ({
|
||||
styleOverrides: {
|
||||
root: ({ theme }) => ({
|
||||
"& fieldset": {
|
||||
borderColor: theme.palette.border.dark,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
},
|
||||
"& .MuiInputBase-input": {
|
||||
|
||||
@@ -134,13 +134,13 @@ Next step: check if all keys here are being used in the codebase. e.g.: Search c
|
||||
// },
|
||||
// border: {
|
||||
// light: border.light.light,
|
||||
// dark: border.dark.light,
|
||||
// dark: primary.lowContrast.light,
|
||||
// },
|
||||
// info: {
|
||||
// text: text.primary.light,
|
||||
// main: text.tertiary.light,
|
||||
// bg: background.main.light,
|
||||
// light: background.main.light,
|
||||
// border: border.dark.light,
|
||||
// border: primary.lowContrast.light,
|
||||
// },
|
||||
// };
|
||||
Reference in new issue
Block a user