-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeme.js
67 lines (64 loc) · 1.59 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
import { extendTheme } from '@chakra-ui/react';
const t = {
fonts: {
body: 'Relaway, system-ui, sans-serif',
heading: 'Work+Sans, system-ui, sans-serif'
},
colors: {
discord: '#7289da'
},
shadows: {
largeSoft: 'rgba(60, 64, 67, 0.15) 0px 2px 10px 6px;'
},
styles: {
global: (props) => ({
'html, #__next': {
height: '100%'
},
'#__next': {
display: 'flex',
flexDirection: 'column'
},
'.body': {
// todo check how to do this without breaking the site
// height: '100%', // Push footer to bottom
overflowY: 'scroll' // Always show scrollbar to avoid flickering
},
html: {
scrollBehavior: 'smooth'
},
'#nprogress': {
pointerEvents: 'none'
},
'#nprogress .bar': {
background: props.colorMode === 'dark' ? 'green.200' : 'purple.400',
position: 'fixed',
zIndex: '1031',
top: 0,
left: 0,
width: '100%',
height: '2px'
},
'html, body': {
// fontSize: 'sm',
// background: props.colorMode === 'dark' ? '#36353a' : '#f4f4f4',
// color: props.colorMode === 'dark' ? 'white' : 'gray.600',
margin: 0,
padding: 0,
boxSizing: 'border-box'
},
a: {
color: props.colorMode === 'dark' ? 'green.200' : 'purple.400',
textDecoration: 'none',
fontSize: 'xl'
},
p: { fontSize: 'xl' }
})
},
config: {
initialColorMode: 'dark',
useSystemColorMode: false
}
};
const theme = extendTheme(t);
export default theme;