forked from components-ai/randoma11y
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.js
103 lines (103 loc) · 1.82 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
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
export default {
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
fonts: {
body: "system-ui, sans-serif",
heading: "inherit",
monospace: "Menlo, monospace",
},
fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 96],
fontWeights: {
body: 400,
heading: 500,
bold: 700,
},
lineHeights: {
body: 1.5,
heading: 1,
},
colors: {
text: "#000",
background: "#fff",
primary: "#07c",
secondary: "#30c",
muted: "#f6f6f6",
},
styles: {
root: {
fontFamily: "body",
lineHeight: "body",
fontWeight: "body",
},
h1: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 5,
},
h2: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 4,
},
h3: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 3,
},
h4: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 2,
},
h5: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 1,
},
h6: {
fontFamily: "heading",
fontWeight: "heading",
fontSize: 0,
},
p: {
fontFamily: "body",
fontWeight: "body",
lineHeight: "body",
},
a: {
color: "inherit",
},
pre: {
fontFamily: "monospace",
overflowX: "auto",
code: {
color: "inherit",
},
},
code: {
fontFamily: "monospace",
fontSize: "inherit",
},
table: {
width: "100%",
borderCollapse: "separate",
borderSpacing: 0,
},
th: {
textAlign: "left",
borderBottomStyle: "solid",
},
td: {
textAlign: "left",
borderBottomStyle: "solid",
},
img: {
maxWidth: "100%",
},
},
layout: {
container: {
px: [3, 4, 5],
py: [1, 2, 3]
}
}
};