-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathcolors.js
More file actions
52 lines (41 loc) · 850 Bytes
/
colors.js
File metadata and controls
52 lines (41 loc) · 850 Bytes
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
const OPACITY = 0.4;
const RGBA = [
`rgba(4, 199, 253, ${OPACITY})`,
`rgba(166, 42, 164, ${OPACITY})`,
`rgba(18, 174, 248, ${OPACITY})`,
`rgba(132, 36, 134, ${OPACITY})`,
`rgba(4, 199, 253, 0.1)`,
`rgba(166, 42, 164, 0.1)`,
`rgba(18, 174, 248, 0.1)`,
`rgba(132, 36, 134, 0.1)`
];
const HEX = ['#04c7fd', '#a62aa4', '#12aef8', '#842486'];
export class Colors {
static getAll({rgba}={rgba: false}) {
if (rgba) {
return RGBA;
}
return HEX;
}
static get DESKTOP() {
return HEX[0];
}
static get MOBILE() {
return HEX[1];
}
static get DESKTOP_ALT() {
return RGBA[2];
}
static get MOBILE_ALT() {
return RGBA[3];
}
static get DESKTOP_DIM() {
return RGBA[4];
}
static get MOBILE_DIM() {
return RGBA[5];
}
static get WEBPAGETEST() {
return '#000000';
}
}