Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit a24ece1

Browse files
refactor: updating brand color object to singular and reducing nesting
1 parent 4c614c2 commit a24ece1

File tree

8 files changed

+202
-172
lines changed

8 files changed

+202
-172
lines changed

src/js/brandColors/brandColors.test.ts renamed to src/js/brandColor/brandColor.test.ts

Lines changed: 66 additions & 66 deletions
Large diffs are not rendered by default.

src/js/brandColor/brandColor.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { BrandColor } from './brandColor.types';
2+
3+
export const brandColor: BrandColor = {
4+
white000: '#ffffff',
5+
white010: '#fcfcfc',
6+
black000: '#000000',
7+
grey030: '#fafbfc',
8+
grey040: '#f2f4f6',
9+
grey100: '#d6d9dc',
10+
grey200: '#bbc0c5',
11+
grey300: '#9fa6ae',
12+
grey400: '#848c96',
13+
grey500: '#6a737d',
14+
grey600: '#535a61',
15+
grey700: '#3b4046',
16+
grey750: '#2e3339',
17+
grey800: '#24272a',
18+
grey900: '#141618',
19+
blue000: '#eaf6ff',
20+
blue100: '#a7d9fe',
21+
blue200: '#75c4fd',
22+
blue300: '#43aefc',
23+
blue400: '#1098fc',
24+
blue500: '#0376c9',
25+
blue600: '#0260a4',
26+
blue700: '#024272',
27+
blue800: '#01253f',
28+
blue900: '#00080d',
29+
orange000: '#fef5ef',
30+
orange100: '#fde2cf',
31+
orange200: '#fbc49d',
32+
orange300: '#faa66c',
33+
orange400: '#f8883b',
34+
orange500: '#f66a0a',
35+
orange600: '#c65507',
36+
orange700: '#954005',
37+
orange800: '#632b04',
38+
orange900: '#321602',
39+
green000: '#f3fcf5',
40+
green100: '#d6ffdf',
41+
green200: '#afecbd',
42+
green300: '#86e29b',
43+
green400: '#5dd879',
44+
green500: '#28a745',
45+
green600: '#1e7e34',
46+
green700: '#145523',
47+
green800: '#0a2c12',
48+
green900: '#041007',
49+
red000: '#fcf2f3',
50+
red100: '#f7d5d8',
51+
red200: '#f1b9be',
52+
red300: '#e88f97',
53+
red400: '#e06470',
54+
red500: '#d73847',
55+
red600: '#b92534',
56+
red700: '#8e1d28',
57+
red800: '#64141c',
58+
red900: '#3a0c10',
59+
purple500: '#8b45b6',
60+
violet300: '#cfb5f0',
61+
yellow000: '#fffdf8',
62+
yellow100: '#fefcde',
63+
yellow200: '#fff2c5',
64+
yellow300: '#ffeaa3',
65+
yellow400: '#ffdf70',
66+
yellow500: '#ffd33d',
67+
yellow600: '#ffc70a',
68+
};
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
export interface BrandColor {
2+
white000: string;
3+
white010: string;
4+
black000: string;
5+
grey030: string;
6+
grey040: string;
7+
grey100: string;
8+
grey200: string;
9+
grey300: string;
10+
grey400: string;
11+
grey500: string;
12+
grey600: string;
13+
grey700: string;
14+
grey750: string;
15+
grey800: string;
16+
grey900: string;
17+
blue000: string;
18+
blue100: string;
19+
blue200: string;
20+
blue300: string;
21+
blue400: string;
22+
blue500: string;
23+
blue600: string;
24+
blue700: string;
25+
blue800: string;
26+
blue900: string;
27+
orange000: string;
28+
orange100: string;
29+
orange200: string;
30+
orange300: string;
31+
orange400: string;
32+
orange500: string;
33+
orange600: string;
34+
orange700: string;
35+
orange800: string;
36+
orange900: string;
37+
green000: string;
38+
green100: string;
39+
green200: string;
40+
green300: string;
41+
green400: string;
42+
green500: string;
43+
green600: string;
44+
green700: string;
45+
green800: string;
46+
green900: string;
47+
red000: string;
48+
red100: string;
49+
red200: string;
50+
red300: string;
51+
red400: string;
52+
red500: string;
53+
red600: string;
54+
red700: string;
55+
red800: string;
56+
red900: string;
57+
purple500: string;
58+
violet300: string;
59+
yellow000: string;
60+
yellow100: string;
61+
yellow200: string;
62+
yellow300: string;
63+
yellow400: string;
64+
yellow500: string;
65+
yellow600: string;
66+
}

src/js/brandColor/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { brandColor } from './brandColor';

src/js/brandColors/brandColors.ts

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/js/brandColors/brandColors.types.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/js/brandColors/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export { Theme } from './themes';
22
export { lightTheme } from './themes';
33
export { darkTheme } from './themes';
4-
export { brandColors } from './brandColors';
4+
export { brandColor } from './brandColor';
55

66
// DEPRECATED in favor of importing theme objects above
77
export { colors } from './colors';

0 commit comments

Comments
 (0)