-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
131 lines (129 loc) · 2.8 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import { Theme } from "theme-ui";
const theme: Theme = {
useColorSchemeMediaQuery: true,
useLocalStorage: false,
colors: {
text: "#111",
background: "#fff",
primary: "#5DA271",
secondary: "#437551",
muted: "#437551",
highlight: "#5DA271",
gray: "#6c6c6c",
buff: "#eaeaea",
accent: "#C84630",
subtle: "#3f3f3f",
hoverText: "#FFF",
modes: {
dark: {
text: "#FFF",
background: "#222",
muted: "#222",
buff: "#1a1a1a",
subtle: "#ddd",
highlight: "#333",
hoverText: "#FFF",
},
},
},
fonts: {
body: `system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif`,
heading: "Mali",
serifBody: `"Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", "Times","Source Serif Pro", serif`,
},
fontSizes: [12, 14, 16, 22, 28, 36, 42, 50, 72, 100],
lineHeights: {
heading: 1.3,
body: 1.5,
article: 1.8,
},
fontWeights: {
body: "normal",
heading: 500,
},
links: {
bold: {
fontWeight: 0,
},
nav: {
fontWeight: 0,
color: "inherit",
textDecoration: "none",
},
blockUnderline: {
color: "text",
textDecoration: "none",
transition: "background 0.15s ease, color 0.15s ease",
":hover": {
backgroundColor: "primary",
color: "hoverText",
},
borderBottom: "2px solid",
borderColor: "primary",
},
},
text: {
body: {
fontFamily: "body",
lineHeight: "body",
fontWeight: "body",
},
article: {
fontFamily: "serifBody",
lineHeight: "article",
fontWeight: "body",
fontSize: 20,
},
heading: {
fontFamily: "heading",
lineHeight: "heading",
fontWeight: "heading",
},
label: {
textTransform: "uppercase",
letterSpacing: "1px",
fontSize: 1,
color: "subtle",
transition: "color 0.15s ease",
},
blockquote: {
padding: 3,
borderLeft: "2px solid",
borderColor: "primary",
fontStyle: "italic",
},
},
styles: {
root: {
fontFamily: "body",
fontWeight: 0,
lineHeight: "body",
transition: "background-color 0.15s ease",
},
hr: {
border: 0,
backgroundColor: "transparent",
height: "4px",
borderTop: "1px solid",
borderBottom: "1px solid",
borderColor: "accent",
},
a: {
color: "text",
textDecorationColor: "#5DA271",
textDecorationThickness: 2,
transition: "background 0.15s ease, color 0.15s ease",
":hover": {
backgroundColor: "primary",
color: "hoverText",
},
},
h1: {
variant: "text.heading",
},
h2: {
variant: "text.heading",
},
},
};
export default theme;