/
variables.js
108 lines (105 loc) · 1.87 KB
/
variables.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
104
105
106
107
108
export const AVAIABLE_COLORS_THEME_NAME = [
"light", "primary", "success", "info", "warning", "danger", "dark"
];
export const colors = {
black: '#333',
blue: '#49b2fa',
darkGray: "#666",
dark: "#444",
lightgray: '#efefef',
gray: '#ddd',
white: "#fff",
yellow: "#ffeb3b",
info: "#17a2b8",
primary: "#3F51B5",
red: '#ff3e24',
success: "green",
light: "#fefefe",
secondary: "#888"
}
export const size = {
small: 'small',
medium: 'medium',
large: 'large'
}
export const theme = {
color: '#000',
fontSize: {
small: 10,
medium: 14,
large: 18
},
button: {
view: {
danger:{
backgroundColor: colors.red
},
primary: {
backgroundColor: colors.primary
},
warning:{
backgroundColor: colors.yellow
},
info: {
backgroundColor: colors.info
},
success: {
backgroundColor: colors.success
},
dark: {
backgroundColor: colors.black
},
light: {
backgroundColor: colors.light
}
},
text: {
danger:{
fontWeight: "600",
color: colors.white
},
primary: {
fontWeight: "600",
color: colors.white
},
warning:{
fontWeight: "600",
color: colors.white
},
info: {
fontWeight: "600",
color: colors.white
},
success: {
fontWeight: "600",
color: colors.white
},
dark: {
fontWeight: "600",
color: colors.white
},
light: {
fontWeight: "600",
color: colors.darkGray
}
}
},
h1: {
fontSize: 26,
fontWeight: "800"
},
h4: {
fontSize: 16,
fontWeight: "600",
},
text: {
primary: {
fontSize: 14,
color: colors.black,
},
secondary: {
fontSize: 14,
color: colors.secondary
}
}
}