/
theme.ts
52 lines (48 loc) · 964 Bytes
/
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
import { makeTheme } from '@theme-ui/css/utils'
export const theme = makeTheme({
config: {
initialColorModeName: 'light',
useColorSchemeMediaQuery: true,
},
colors: {
text: '#000',
background: '#fff',
primary: '#07c',
secondary: '#b0b',
modes: {
dark: {
text: '#fff',
background: '#222',
primary: '#0cf',
secondary: '#faf',
},
},
},
fonts: {
body: 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif',
heading: 'sans-serif',
},
radii: [0, 4],
styles: {
root: {
fontFamily: 'body',
color: 'text',
bg: 'background',
p: 4,
},
a: {
color: 'primary',
fontWeight: 'bold',
textDecoration: 'none',
':hover': {
color: 'secondary',
textDecoration: 'underline',
},
},
},
buttons: {
primary: {
cursor: 'pointer',
},
},
})