-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.js
executable file
·71 lines (66 loc) · 1.42 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
import { extendTheme, theme as chakraTheme } from "@chakra-ui/react";
// Only show Chakra focus outlines when user is keyboard navigating
import "focus-visible/dist/focus-visible";
// Custom themes
const colors = {
...chakraTheme.colors,
link: chakraTheme.colors.red["500"],
brand: chakraTheme.colors.gray["800"],
};
const fonts = {
...chakraTheme.fonts,
heading: "Helvetica",
text: "Arial",
};
// Custom components
const components = {
...chakraTheme.components,
Button: {
baseStyle: {
color: "white",
},
variants: {
brand: {
background:
"linear-gradient(140deg, rgba(251,255,119,1) 0%, rgba(252,208,39,1) 100%)",
boxShadow: "lg",
borderRadius: "5em",
_hover: {
background:
"linear-gradient(160deg, rgba(247,252,92,1) 0%, rgba(252,191,39,1) 100%)",
},
_focus: {
background:
"linear-gradient(160deg, rgba(247,252,92,1) 0%, rgba(252,191,39,1) 100%)",
},
},
},
defaultProps: {
size: "lg",
},
},
Heading: {
baseStyle: {
color: "gray.800",
letterSpacing: "tighter",
},
},
Text: {
baseStyle: {
color: "gray.800",
letterSpacing: "tight",
},
},
Input: {
defaultProps: {
color: "gray.800",
variant: "flushed",
},
},
};
const theme = extendTheme({
colors,
fonts,
components,
});
export default theme;