-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.js
48 lines (42 loc) · 927 Bytes
/
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
import { extendTheme } from "@chakra-ui/react";
import { mode } from "@chakra-ui/theme-tools";
const styles = {
global: (props) => ({
body: {
bg: mode("#f0e7db", "#202023")(props),
},
}),
};
const components = {
Heading: {
variants: {
"section-title": {
textDecoration: "underline",
fontSize: 25,
textUnderlineOffset: 6,
textDecorationColor: "#525252",
textDecorationThickness: 4,
marginTop: 3,
marginBottom: 4,
},
},
},
Link: {
baseStyle: (props) => ({
color: mode("#3d7aed", "#ff63c3")(props),
textUnderlineOffset: 3,
}),
},
};
const fonts = {
heading: "'M PLUS Rounded 1c'",
};
const colors = {
grassTeal: "#88ccca",
};
const config = {
initialColorMode: "dark",
useSystemColorMode: true,
};
const theme = extendTheme({ config, styles, components, fonts, colors });
export default theme;