-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.js
65 lines (62 loc) · 1.15 KB
/
color.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
import React from "react";
export const ColorBlock = ({ hex, label }) => {
return (
<div
style={{
width: 160,
marginRight: 32,
marginBottom: 48
}}
>
<div
style={{
height: 96,
width: 160,
backgroundColor: "#" + hex,
marginBottom: 12,
borderRadius: 3
}}
></div>
<div>{label}</div>
<div>{hex}</div>
</div>
);
};
const colors = {
onyx: "1B262B",
basalt: "3D4D54",
slate: "6A7173",
tufa: "ACB3B6",
limestone: "DEE1E3",
marble: "ECECEC",
chalk: "F2F4F5",
blue: "76B8FF",
error: "D13842",
graph_blue: "00CCFF",
graph_pink: "FF6EE3",
graph_yellow: "FFD26E",
leaf: "75C97B",
moss: "2E7533",
orange: "FFAE76",
purple: "885FBD",
red: "FF8276",
sigstr: "4aa951",
tag_blue: "005D7D",
tag_yellow: "856D39",
yellow: "FFC74C"
};
export const ColorGroup = () => {
const blocks = Object.entries(colors).map(([key, value]) => (
<ColorBlock hex={value} label={key} />
));
return (
<div
style={{
display: "flex",
flexWrap: "wrap"
}}
>
{blocks}
</div>
);
};