Skip to content

Commit d428d2c

Browse files
leemunroePoltergeist
authored andcommitted
feat(colors): add color values from UI kit
1 parent 1589aea commit d428d2c

File tree

4 files changed

+121
-26
lines changed

4 files changed

+121
-26
lines changed

packages/badge/style.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import { css } from "emotion";
2-
import { coreColors, customColors } from "../shared/styles/color";
2+
import { coreColors } from "../shared/styles/color";
33
import { coreFonts } from "../shared/styles/typography";
44

55
const { greyDark, greyLight, green, purple, red, white, yellow } = coreColors();
6-
const { ebonyClay } = customColors();
76
const { fontFamilySansSerif } = coreFonts();
87

98
const badgeAppearance = {
109
default: css`
1110
background-color: ${greyLight};
1211
border-color: ${greyLight};
13-
color: ${ebonyClay};
12+
color: ${greyDark};
1413
`,
1514
success: css`
1615
background-color: ${green};

packages/badge/tests/__snapshots__/badge.test.tsx.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Badge accept jsx as children 1`] = `
44
<span
5-
className="css-i4ctwy"
5+
className="css-1rtlwt4"
66
>
77
<span>
88
string
@@ -12,47 +12,47 @@ exports[`Badge accept jsx as children 1`] = `
1212

1313
exports[`Badge danger 1`] = `
1414
<span
15-
className="css-o307zd"
15+
className="css-1r81zrl"
1616
>
1717
danger
1818
</span>
1919
`;
2020

2121
exports[`Badge default 1`] = `
2222
<span
23-
className="css-i4ctwy"
23+
className="css-1rtlwt4"
2424
>
2525
default
2626
</span>
2727
`;
2828

2929
exports[`Badge outline 1`] = `
3030
<span
31-
className="css-ml4yrq"
31+
className="css-1s4jj7m"
3232
>
3333
outline
3434
</span>
3535
`;
3636

3737
exports[`Badge primary 1`] = `
3838
<span
39-
className="css-361qnz"
39+
className="css-1s6ggg6"
4040
>
4141
primary
4242
</span>
4343
`;
4444

4545
exports[`Badge success 1`] = `
4646
<span
47-
className="css-xr9z4s"
47+
className="css-7otxiv"
4848
>
4949
success
5050
</span>
5151
`;
5252

5353
exports[`Badge warning 1`] = `
5454
<span
55-
className="css-19otvs4"
55+
className="css-jogxwy"
5656
>
5757
warning
5858
</span>

packages/badge/tests/__snapshots__/badgeButton.test.tsx.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`BadgeButton accept jsx as children 1`] = `
44
<span
5-
className="css-y5qucr"
5+
className="css-1mdx3w6"
66
onClick={[Function]}
77
role="button"
88
tabIndex={-1}
@@ -15,7 +15,7 @@ exports[`BadgeButton accept jsx as children 1`] = `
1515

1616
exports[`BadgeButton danger 1`] = `
1717
<span
18-
className="css-aqlru0"
18+
className="css-bfxoiv"
1919
onClick={[Function]}
2020
role="button"
2121
tabIndex={-1}
@@ -26,7 +26,7 @@ exports[`BadgeButton danger 1`] = `
2626

2727
exports[`BadgeButton default 1`] = `
2828
<span
29-
className="css-y5qucr"
29+
className="css-1mdx3w6"
3030
onClick={[Function]}
3131
role="button"
3232
tabIndex={-1}
@@ -37,7 +37,7 @@ exports[`BadgeButton default 1`] = `
3737

3838
exports[`BadgeButton outline 1`] = `
3939
<span
40-
className="css-j343ve"
40+
className="css-3uom90"
4141
onClick={[Function]}
4242
role="button"
4343
tabIndex={-1}
@@ -48,7 +48,7 @@ exports[`BadgeButton outline 1`] = `
4848

4949
exports[`BadgeButton primary 1`] = `
5050
<span
51-
className="css-q2731u"
51+
className="css-slxp3r"
5252
onClick={[Function]}
5353
role="button"
5454
tabIndex={-1}
@@ -59,7 +59,7 @@ exports[`BadgeButton primary 1`] = `
5959

6060
exports[`BadgeButton success 1`] = `
6161
<span
62-
className="css-10v0ttp"
62+
className="css-4fz2cu"
6363
onClick={[Function]}
6464
role="button"
6565
tabIndex={-1}
@@ -70,7 +70,7 @@ exports[`BadgeButton success 1`] = `
7070

7171
exports[`BadgeButton warning 1`] = `
7272
<span
73-
className="css-1qzzy6w"
73+
className="css-snof5e"
7474
onClick={[Function]}
7575
role="button"
7676
tabIndex={-1}

packages/shared/styles/color.ts

Lines changed: 105 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,113 @@ export const coreColors = (): IColors => {
1313
return {
1414
white: "#fff",
1515
black: "#000",
16-
greyDark: "#1c212a",
17-
greyLight: "#dadde2",
18-
purple: "#7d57ff",
19-
red: "#ec2a3b",
20-
yellow: "#f9a328",
21-
green: "#14c683"
16+
17+
// Purple
18+
purple: "#7D58FF",
19+
purpleLighten1: "#8360FF",
20+
purpleLighten2: "#8A69FF",
21+
purpleLighten3: "#9779FF",
22+
purpleLighten4: "#E5DDFF",
23+
purpleLighten5: "#F8F6FF",
24+
purpleDarken1: "#704FE5",
25+
purpleDarken2: "#6446CC",
26+
purpleDarken3: "#4B3499",
27+
purpleDarken4: "#322366",
28+
purpleDarken5: "#191133",
29+
30+
// Grey Light
31+
greyLight: "#DADDE2",
32+
greyLightLighten1: "#DDE0E4",
33+
greyLightLighten2: "#E1E3E7",
34+
greyLightLighten3: "#E8EAED",
35+
greyLightLighten4: "#F0F1F3",
36+
greyLightLighten5: "#F7F8F9",
37+
greyLightDarken1: "#C3C6CA",
38+
greyLightDarken2: "#AEB0B4",
39+
greyLightDarken3: "#828487",
40+
greyLightDarken4: "#57585A",
41+
greyLightDarken5: "#2B2C2D",
42+
43+
// Grey Dark
44+
greyDark: "#1B2029",
45+
greyDarkLighten1: "#262B33",
46+
greyDarkLighten2: "#32363E",
47+
greyDarkLighten3: "#484C53",
48+
greyDarkLighten4: "#76797E",
49+
greyDarkLighten5: "#A3A5A9",
50+
greyDarkDarken1: "#181C24",
51+
greyDarkDarken2: "#151920",
52+
greyDarkDarken3: "#101318",
53+
greyDarkDarken4: "#0A0C10",
54+
greyDarkDarken5: "#050608",
55+
56+
// Red
57+
red: "#EB293A",
58+
redLighten1: "#ED3E4E",
59+
redLighten2: "#EF5361",
60+
redLighten3: "#F37E88",
61+
redLighten4: "#FBD4D7",
62+
redLighten5: "#FDF4F4",
63+
redDarken1: "#D32434",
64+
redDarken2: "#BC202E",
65+
redDarken3: "#8D1822",
66+
redDarken4: "#5E1017",
67+
redDarken5: "#2F080B",
68+
69+
// Yellow
70+
yellow: "#F9A328",
71+
yellowLighten1: "#F9AC3D",
72+
yellowLighten2: "#FAB553",
73+
yellowLighten3: "#FBC77E",
74+
yellowLighten4: "#FDECD4",
75+
yellowLighten5: "#FEFAF4",
76+
yellowDarken1: "#DF9223",
77+
yellowDarken2: "#C78220",
78+
yellowDarken3: "#956118",
79+
yellowDarken4: "#634110",
80+
yellowDarken5: "#312008",
81+
82+
// Green
83+
green: "#14C684",
84+
greenLighten1: "#2BCB90",
85+
greenLighten2: "#43D19C",
86+
greenLighten3: "#72DCB6",
87+
greenLighten4: "#D0F3E6",
88+
greenLighten5: "#F3FCF8",
89+
greenDarken1: "#11B176",
90+
greenDarken2: "#109E69",
91+
greenDarken3: "#0C764F",
92+
greenDarken4: "#084F34",
93+
greenDarken5: "#04271A",
94+
95+
// Blue
96+
blue: "#157FF2",
97+
blueLighten1: "#2C8CF3",
98+
blueLighten2: "#4398F4",
99+
blueLighten3: "#72B2F7",
100+
blueLighten4: "#D0E5FC",
101+
blueLighten5: "#F3F8FE",
102+
blueDarken1: "#1272D9",
103+
blueDarken2: "#1065C1",
104+
blueDarken3: "#0C4C91",
105+
blueDarken4: "#083260",
106+
blueDarken5: "#041930",
107+
108+
// Pink
109+
pink: "#FF007D",
110+
pinkLighten1: "#FF1A8A",
111+
pinkLighten2: "#FF3397",
112+
pinkLighten3: "#FF66B1",
113+
pinkLighten4: "#FF99CB",
114+
pinkLighten5: "#FFF2F8",
115+
pinkDarken1: "#E50070",
116+
pinkDarken2: "#CC0064",
117+
pinkDarken3: "#99004B",
118+
pinkDarken4: "#660032",
119+
pinkDarken5: "#330019"
22120
};
23121
};
24122

25123
export const customColors = (): IColors => {
26-
return {
27-
ebonyClay: "#1b2029"
28-
};
124+
return {};
29125
};

0 commit comments

Comments
 (0)