This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.js
164 lines (149 loc) · 3.78 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
export const colors = {
/* colors */
/*blue*/
blue900: '#093371',
blue800: '#0d47a1',
blue700: '#1565c0',
blue600: '#147cd7',
blue500: '#2196f3',
blue400: '#42a5f5',
blue300: '#90caf9',
blue200: '#c5e3fc',
blue100: '#e3f2fd',
blue050: '#f5fbff',
/*teal*/
teal900: '#00332b',
teal800: '#004d40',
teal700: '#00695c',
teal600: '#00796b',
teal500: '#00897b',
teal400: '#009688',
teal300: '#4db6ac',
teal200: '#b2dfdb',
teal100: '#e0f2f1',
teal050: '#f1f9f9',
/*red*/
red900: '#330202',
red800: '#891515',
red700: '#b71c1c',
red600: '#c62828',
red500: '#d32f2f',
red400: '#f44336',
red300: '#e57373',
red200: '#ffcdd2',
red100: '#ffe5e8',
red050: '#fff5f6',
/*yellow*/
yellow900: '#6f3205',
yellow800: '#bb460d',
yellow700: '#e56408',
yellow600: '#ff8302',
yellow500: '#ff9302',
yellow400: '#ffa902',
yellow300: '#ffc324',
yellow200: '#ffe082',
yellow100: '#ffecb3',
yellow050: '#fff8e1',
/*green*/
green900: '#103713',
green800: '#1b5e20',
green700: '#2e7d32',
green600: '#388e3c',
green500: '#43a047',
green400: '#4caf50',
green300: '#a5d6a7',
green200: '#c8e6c9',
green100: '#e8f5e9',
green050: '#f4fbf4',
/*grey*/
grey900: '#212934',
grey800: '#404b5a',
grey700: '#4a5768',
grey600: '#6e7a8a',
grey500: '#a0adba',
grey400: '#d5dde5',
grey300: '#e8edf2',
grey200: '#f3f5f7',
grey100: '#f8f9fa',
grey050: '#fbfcfd',
white: '#ffffff',
}
export const theme = {
/* theme */
fonts: 'Roboto, sans-serif',
/*primary*/
primary900: colors.blue900,
primary800: colors.blue800,
primary700: colors.blue700,
primary600: colors.blue600,
primary500: colors.blue500,
primary400: colors.blue400,
primary300: colors.blue300,
primary200: colors.blue200,
primary100: colors.blue100,
primary050: colors.blue050,
/*secondary*/
secondary900: colors.teal900,
secondary800: colors.teal800,
secondary700: colors.teal700,
secondary600: colors.teal600,
secondary500: colors.teal500,
secondary400: colors.teal400,
secondary300: colors.teal300,
secondary200: colors.teal200,
secondary100: colors.teal100,
secondary050: colors.teal050,
/*status*/
default: colors.grey700,
error: colors.red500,
valid: colors.blue600,
warning: colors.yellow500,
disabled: colors.grey600,
}
export const layers = {
applicationTop: 2000,
blocking: 3000,
alert: 9999,
}
export const spacersNum = {
dp4: 4,
dp8: 8,
dp12: 12,
dp16: 16,
dp24: 24,
dp32: 32,
dp48: 48,
dp64: 64,
dp96: 96,
dp128: 128,
dp192: 192,
dp256: 256,
dp384: 384,
dp512: 512,
dp640: 640,
}
export const spacers = {
dp4: `${spacersNum.dp4}px`,
dp8: `${spacersNum.dp8}px`,
dp12: `${spacersNum.dp12}px`,
dp16: `${spacersNum.dp16}px`,
dp24: `${spacersNum.dp24}px`,
dp32: `${spacersNum.dp32}px`,
dp48: `${spacersNum.dp48}px`,
dp64: `${spacersNum.dp64}px`,
dp96: `${spacersNum.dp96}px`,
dp128: `${spacersNum.dp128}px`,
dp192: `${spacersNum.dp192}px`,
dp256: `${spacersNum.dp256}px`,
dp384: `${spacersNum.dp384}px`,
dp512: `${spacersNum.dp512}px`,
dp640: `${spacersNum.dp640}px`,
}
// based on this CodePen: https://codepen.io/j_cpr/pen/oOBLMp
// which was produced by Joe Cooper
export const elevations = {
e100: '0 0 1px 0 rgba(64,75,90,0.20), 0 2px 1px 0 rgba(64,75,90,0.28)',
e200: '0 0 1px 0 rgba(64,75,90,0.29), 0 3px 8px -2px rgba(64,75,90,0.30)',
e300: '0 0 1px 0 rgba(64,75,90,0.30), 0 8px 18px -4px rgba(64,75,90,0.28)',
e400: '0 0 1px 0 rgba(64,75,90,0.30), 0 14px 28px -6px rgba(64,75,90,0.30)',
}