forked from aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa77/ez-colors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
79 lines (76 loc) · 1.7 KB
/
index.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
const colors = require("./colors.json");
module.exports = {
color(color) {
if (color === "YELLOW") {
color = colors.YELLOW
return color;
}
else if (color === "RED") {
color = colors.RED
return color;
}
else if (color === "PINK") {
color = colors.PINK
return color;
}
else if (color === "VIOLET") {
color = colors.VIOLET
return color;
}
else if (color === "BLUE") {
color = colors.BLUE
return color;
}
else if (color === "GREEN") {
color = colors.GREEN
return color;
}
else if (color === "BROWN") {
color = colors.BROWN
return color;
}
else if (color === "GRAY") {
color = colors.GRAY
return color;
}
else if (color === "MELLOW") {
color = colors.MELLOW
return color;
}
else if (color === "GOLD") {
color = colors.GOLD
return color;
}
else if (color === "SALMON") {
color = colors.SALMON
return color;
}
else if (color === "RUBY") {
color = colors.RUBY
return color;
}
else if (color === "HIBISCUS") {
color = colors.HIBISCUS
return color;
}
else if (color === "DENIM") {
color = colors.DENIM
return color;
}
else if (color === "FOREST") {
color = colors.FOREST
return color;
}
else if (color === "CEDAR") {
color = colors.CEDAR
return color;
}
else if (color === "FOSSIL") {
color = colors.FOSSIL
return color;
} else if(color === "AQUA") {
color = colors.AQUA
return color
}
}
}