@@ -12,23 +12,59 @@ export const Tier1Colors = () => {
12
12
figmaToken :
13
13
figmaTokenHeader + '/' + name . slice ( name . lastIndexOf ( '-' ) + 1 ) ,
14
14
} ) ) ;
15
+
16
+ // filter down to the neutral tokens which were introduced or redefined in the new brand
17
+ const nonLegacyNeutralItems = getListItems (
18
+ 'eds-color-neutral' ,
19
+ 'neutral' ,
20
+ ) . filter ( ( item ) => {
21
+ // TODO: remove this filter once the deprecated neutral tokens are deleted
22
+ return [
23
+ '025' ,
24
+ '050' ,
25
+ '100' ,
26
+ '150' ,
27
+ '200' ,
28
+ '250' ,
29
+ '350' ,
30
+ '450' ,
31
+ '550' ,
32
+ '650' ,
33
+ '750' ,
34
+ '800' ,
35
+ '850' ,
36
+ '900' ,
37
+ '950' ,
38
+ ] . includes ( item . figmaToken . split ( '/' ) [ 1 ] ) ;
39
+ } ) ;
15
40
return (
16
41
< div >
17
- < Section title = "Neutral Colors" >
18
- < ColorList listItems = { getListItems ( 'eds-color-neutral' , 'neutral' ) } />
19
- </ Section >
20
- < Section title = "Brand Colors" >
21
- < ColorList listItems = { getListItems ( 'eds-color-brand' , 'brand-grape' ) } />
22
- </ Section >
23
- < Section className = "flex flex-col gap-3" title = "Other Colors" >
24
- < ColorList
25
- listItems = { getListItems ( 'eds-color-other-orange' , 'orange' ) }
26
- />
27
- < ColorList listItems = { getListItems ( 'eds-color-other-mint' , 'mint' ) } />
28
- < ColorList
29
- listItems = { getListItems ( 'eds-color-other-yellow' , 'yellow' ) }
30
- />
31
- < ColorList listItems = { getListItems ( 'eds-color-other-ruby' , 'ruby' ) } />
42
+ < Section
43
+ description = "These base colors are used in higher tier tokens and not linked for use via Tailwind"
44
+ title = "Brand Red Colors"
45
+ >
46
+ < ColorList listItems = { getListItems ( 'eds-color-red' , 'red' ) } />
47
+ </ Section >
48
+ < Section title = "Brand Orange Colors" >
49
+ < ColorList listItems = { getListItems ( 'eds-color-orange' , 'orange' ) } />
50
+ </ Section >
51
+ < Section title = "Brand Yellow Colors" >
52
+ < ColorList listItems = { getListItems ( 'eds-color-yellow' , 'yellow' ) } />
53
+ </ Section >
54
+ < Section title = "Brand Green Colors" >
55
+ < ColorList listItems = { getListItems ( 'eds-color-green' , 'green' ) } />
56
+ </ Section >
57
+ < Section title = "Brand Blue Colors" >
58
+ < ColorList listItems = { getListItems ( 'eds-color-blue' , 'blue' ) } />
59
+ </ Section >
60
+ < Section title = "Brand Purple Colors" >
61
+ < ColorList listItems = { getListItems ( 'eds-color-purple' , 'purple' ) } />
62
+ </ Section >
63
+ < Section title = "Brand Pink Colors" >
64
+ < ColorList listItems = { getListItems ( 'eds-color-pink' , 'pink' ) } />
65
+ </ Section >
66
+ < Section title = "Brand Neutral Colors" >
67
+ < ColorList listItems = { nonLegacyNeutralItems } />
32
68
</ Section >
33
69
</ div >
34
70
) ;
0 commit comments