-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
60 lines (55 loc) · 1.29 KB
/
theme.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<link
href="https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap"
rel="stylesheet"></link>;
import { createTheme } from '@mui/material/styles';
const theme = {
typography: {
courier: { fontFamily: ['Courier New', 'Courier', 'monospace', 'serif'].join(',') },
libre: { fontFamily: ['Libre Baskerville', 'serif'].join(',') }
},
breakpoints: {
values: {
mobile: 0,
tablet: 640,
laptop: 1024,
desktop: 1200
}
}
};
const darkTheme = createTheme({
palette: {
background: {
default: '#CCCCCC'
},
text: {
primary: '#333333'
},
shadow: {
primary: 'rgba(0, 0, 0, .12)',
secondary: 'rgba(0, 0, 0, .02)'
},
paper: {
background: '#DDDDDD'
}
},
...theme
});
const lightTheme = createTheme({
palette: {
background: {
default: '#FFFFFF'
},
text: {
primary: '#000000'
},
shadow: {
primary: 'rgba(0, 0, 0, 0.18)',
secondary: 'rgba(0, 0, 0, .08)'
},
paper: {
background: '#FFFFFF'
}
},
...theme
});
export { darkTheme, lightTheme, theme };