Fixed background color not changing on theme swap

This commit is contained in:
Daniel Cojocea
2024-09-06 16:32:38 -04:00
parent 0598a08f34
commit 79ba916a44
9 changed files with 71 additions and 43 deletions

View File

@@ -53,8 +53,8 @@ const darkTheme = createTheme({
warning: {
text: "#e88c30",
main: "#FF9F00",
light: "#272115",
bg: "#624711",
light: "#624711",
bg: "#262115",
border: "#e88c30",
},
percentage: {
@@ -74,6 +74,15 @@ const darkTheme = createTheme({
},
spacing: 2,
components: {
MuiCssBaseline: {
styleOverrides: {
body: {
backgroundImage:
"radial-gradient(circle, #09090b, #0c0c0e, #0f0f11, #111113, #131315, #131315, #131315, #131315, #111113, #0f0f11, #0c0c0e, #09090b)",
lineHeight: "inherit",
},
},
},
MuiButton: {
defaultProps: {
disableRipple: true,

View File

@@ -50,8 +50,8 @@ const lightTheme = createTheme({
warning: {
text: "#DC6803",
main: "#fdb022",
light: "#fffcf5",
bg: "#ffecbc",
light: "#ffecbc",
bg: "#fffcf5",
border: "#fec84b",
},
percentage: {
@@ -71,6 +71,14 @@ const lightTheme = createTheme({
},
spacing: 2,
components: {
MuiCssBaseline: {
styleOverrides: {
body: {
backgroundImage:
"radial-gradient(circle, #fcfcfd, #fdfcfd, #fdfdfd, #fefdfe, #fefefe, #fefefe, #fefefe, #fefefe, #fefdfe, #fdfdfd, #fdfcfd, #fcfcfd)",
},
},
},
MuiButton: {
defaultProps: {
disableRipple: true,