Skip to content

Commit 0596040

Browse files
authored
Add autumn leaves background (#181)
1 parent b875be8 commit 0596040

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/assets/leaves-light.png

40.4 KB
Loading

src/themes.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { blueGrey, grey, indigo, red } from "@material-ui/core/colors";
22
import { createTheme } from "@material-ui/core/styles";
3+
import leavesLightImage from "./assets/leaves-light.png";
34

45
export const darkTheme = createTheme({
56
palette: {
@@ -25,7 +26,7 @@ export const darkTheme = createTheme({
2526
background: {
2627
panel: "#303030",
2728
paper: "#262626",
28-
default: "#161616",
29+
default: "#2c2c2c",
2930
},
3031
},
3132
input: {
@@ -63,6 +64,15 @@ export const darkTheme = createTheme({
6364
row: "#282828",
6465
},
6566
setFoundEntry: "rgba(130, 170, 100, 0.15)",
67+
overrides: {
68+
MuiCssBaseline: {
69+
"@global": {
70+
body: {
71+
backgroundImage: `url("${leavesLightImage}")`,
72+
},
73+
},
74+
},
75+
},
6676
});
6777

6878
export const lightTheme = createTheme({
@@ -114,6 +124,15 @@ export const lightTheme = createTheme({
114124
row: "#fff",
115125
},
116126
setFoundEntry: "rgba(130, 170, 100, 0.15)",
127+
overrides: {
128+
MuiCssBaseline: {
129+
"@global": {
130+
body: {
131+
backgroundImage: `url("${leavesLightImage}")`,
132+
},
133+
},
134+
},
135+
},
117136
});
118137

119138
export function withCardColors(theme, colors) {

0 commit comments

Comments
 (0)