-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.js
75 lines (72 loc) · 1.69 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { createTheme } from '@mui/material/styles'
const globalTheme = createTheme({
palette: {
mode: 'dark',
background: {
default: '#1e1e1e',
paper: '#1e1e1e',
alt: '#2c2c2c',
altTwo: '#333333;',
altThree: '#404040',
altFour: '#444444',
},
text: {
primary: '#fefefe',
},
primary: {
main: '#5b21b6',
},
icon: {
main: '#6214e1',
},
},
typography: {
fontFamily: `'Montserrat', sans-serif`,
},
breakpoints: {
values: {
xs: 0,
xms: 415,
sm: 600,
md: 900,
lg: 1200,
xl: 1536,
},
},
})
const theme = createTheme({
...globalTheme,
components: {
MuiTypography: {
styleOverrides: {
h2: {
marginBottom: 32,
fontSize: 24,
[globalTheme.breakpoints.up('md')]: {
fontSize: '2.15rem',
},
},
},
},
MuiFormLabel: {
styleOverrides: {
root: {
'&.Mui-focused': {
color: globalTheme.palette.text.primary,
},
},
},
},
MuiSnackbar: {
styleOverrides: {
root: {
[globalTheme.breakpoints.up('xs')]: {
left: 'auto',
right: 24,
},
},
},
},
},
})
export default theme