-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
65 lines (59 loc) · 1.23 KB
/
theme.ts
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
import { purple } from '@mui/material/colors'
import { createTheme, responsiveFontSizes } from '@mui/material/styles'
import { darken, lighten } from '@mui/system'
export const borderWidth = 3
let theme = createTheme({
typography: {
fontFamily: [
'Nunito',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
].join(','),
},
})
theme = createTheme(theme, {
palette: {
primary: {
main: purple.A700,
light: lighten(purple.A700, 0.2),
dark: darken(purple.A700, 0.2),
contrastText: '#fff',
},
},
})
theme = createTheme(theme, {
shape: {
borderRadius: 4,
},
})
theme = createTheme(theme, {
components: {
MuiAppBar: {
defaultProps: {
elevation: 0,
},
},
MuiButton: {
styleOverrides: {
root: {
textTransform: 'none',
borderRadius: theme.shape.borderRadius,
fontWeight: 900,
},
},
defaultProps: {
disableElevation: true,
disableRipple: true,
},
},
},
})
export default responsiveFontSizes(theme)