fixed theme

This commit is contained in:
Amirhossein Mahmoodi
2023-08-07 17:00:23 +03:30
parent f6904b0334
commit 842f1029c1
2 changed files with 5 additions and 5 deletions

View File

@@ -5,13 +5,13 @@ const theme = {
primary: {
main: process.env.NEXT_PUBLIC_PRIMARY_MAIN,
contrastText: "#FFFFFF",
light: colord(process.env.NEXT_PUBLIC_PRIMARY_MAIN).lighten(0.3).toHex(),
light: colord(process.env.NEXT_PUBLIC_PRIMARY_MAIN).lighten(0.1).toHex(),
dark: colord(process.env.NEXT_PUBLIC_PRIMARY_MAIN).darken(0.1).toHex(),
},
secondary: {
main: process.env.NEXT_PUBLIC_SECONDARY_MAIN,
contrastText: "#FFFFFF",
light: colord(process.env.NEXT_PUBLIC_SECONDARY_MAIN).lighten(0.3).toHex(),
light: colord(process.env.NEXT_PUBLIC_SECONDARY_MAIN).lighten(0.1).toHex(),
dark: colord(process.env.NEXT_PUBLIC_SECONDARY_MAIN).darken(0.1).toHex(),
},
},

View File

@@ -29,7 +29,7 @@ const MuiLayout = ({children, isBot}) => {
height: "8px",
},
"*::-webkit-scrollbar-thumb": {
background: `${theme.palette.primary.light}`,
background: `${theme.palette.primary.light}80`,
borderRadius: "3px",
},
"*:not(.MuiTableContainer-root)": {
@@ -39,11 +39,11 @@ const MuiLayout = ({children, isBot}) => {
"*": {
scrollbarWidth: "thin",
scrollbarColor: `${theme.palette.primary.light} transparent`,
scrollbarColor: `${theme.palette.primary.light}80 transparent`,
},
"*::-moz-scrollbar-thumb": {
backgroundColor: `${theme.palette.primary.light}`,
backgroundColor: `${theme.palette.primary.light}80`,
},
[`@media (max-width: ${theme.breakpoints.values.sm}px)`]: {
"*::-webkit-scrollbar": {