-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyleguide.js
58 lines (56 loc) · 1.24 KB
/
styleguide.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
const base = 4;
const baseStyles = {
typography: {
scale: {
s: base * 3,
base: base * 4,
m: base * 6,
l: base * 9,
xl: base * 13,
xxl: base * 20,
unit: "px",
},
weight: {
thin: 300,
normal: 400,
bold: 700,
bolder: 900,
},
},
spacing: {
s: base,
base: base * 2,
m: base * 4,
l: base * 6,
xl: base * 8,
xxl: base * 10,
unit: "px",
},
colors: {
blue: "blue",
green: "green",
red: "red",
},
};
const styles = {
base: baseStyles,
theme: {
normal: {
button: {
fontSize: baseStyles.typography.scale.l,
backgroundColor: baseStyles.colors.red,
padding: baseStyles.spacing.l,
cursor: "pointer",
},
},
done: {
button: {
fontSize: baseStyles.typography.scale.l,
backgroundColor: baseStyles.colors.green,
padding: baseStyles.spacing.l,
cursor: "pointer",
},
},
},
};
export default styles;