1
1
import { ColorSchema } from './types' ;
2
2
3
3
export const Colors = {
4
- WHITE : 'hsl(0, 0%, 100%)' ,
5
- BLACK : 'hsl(0, 0%, 0%)' ,
6
- AUTHENTIC_BLUE_1100 : 'hsl(211, 100%, 6%)' ,
7
- AUTHENTIC_BLUE_900 : 'hsl(211, 100%, 12%)' ,
8
- AUTHENTIC_BLUE_550 : 'hsl(210, 16%, 46%)' ,
9
- AUTHENTIC_BLUE_350 : 'hsl(213, 14%, 66%)' ,
10
- AUTHENTIC_BLUE_200 : 'hsl(210, 14%, 80%)' ,
11
- AUTHENTIC_BLUE_50 : 'hsl(220, 12%, 95%)' ,
12
- FREEDOM_RED_1000 : 'hsl(352, 92%, 39%)' ,
13
- FREEDOM_RED_900 : 'hsl(352, 100%, 52%)' ,
14
- ACTION_BLUE_1000 : 'hsl(212, 92%, 34%)' ,
15
- ACTION_BLUE_900 : 'hsl(212, 92%, 45%)' ,
16
- ACTION_BLUE_350 : 'hsl(212, 75%, 78%)' ,
17
- ACTION_BLUE_150 : 'hsl(213, 74%, 91%)' ,
18
- ACTION_BLUE_100 : 'hsl(211, 74%, 94%)' ,
19
- ACTION_BLUE_50 : 'hsl(210, 75%, 97%)' ,
20
- BUMPY_MAGENTA_1000 : 'hsl(302, 100%, 37%)' ,
21
- BUMPY_MAGENTA_900 : 'hsl(302, 100%, 50%)' ,
22
- BUMPY_MAGENTA_350 : 'hsl(302, 100%, 81%)' ,
23
- BUMPY_MAGENTA_50 : 'hsl(300, 100%, 97%)' ,
24
- POSITIVE_GREEN_1000 : 'hsl(149, 92%, 24%)' ,
25
- POSITIVE_GREEN_900 : 'hsl(149, 93%, 32%)' ,
26
- POSITIVE_GREEN_350 : 'hsl(149, 44%, 74%)' ,
27
- POSITIVE_GREEN_50 : 'hsl(147, 47%, 96%)' ,
28
- ATTENTION_YELLOW_900 : 'hsl(48, 100%, 50%)' ,
29
- ATTENTION_YELLOW_350 : 'hsl(48, 100%, 81%)' ,
30
- ATTENTION_YELLOW_50 : 'hsl(47, 100%, 97%)' ,
31
- NEGATIVE_ORANGE_1000 : 'hsl(21, 96%, 38%)' ,
32
- NEGATIVE_ORANGE_900 : 'hsl(21, 100%, 51%)' ,
33
- NEGATIVE_ORANGE_350 : 'hsl(21, 100%, 81%)' ,
34
- NEGATIVE_ORANGE_50 : 'hsl(21, 100%, 97%)'
4
+ white : 'hsl(0, 0%, 100%)' ,
5
+ black : 'hsl(0, 0%, 0%)' ,
6
+ blue : {
7
+ primary : {
8
+ 1100 : 'hsl(211, 100%, 6%)' ,
9
+ 900 : 'hsl(211, 100%, 12%)' ,
10
+ 550 : 'hsl(210, 16%, 46%)' ,
11
+ 350 : 'hsl(213, 14%, 66%)' ,
12
+ 200 : 'hsl(210, 14%, 80%)' ,
13
+ 50 : 'hsl(220, 12%, 95%)' ,
14
+ } ,
15
+ secondary : {
16
+ 1000 : 'hsl(212, 92%, 34%)' ,
17
+ 900 : 'hsl(212, 92%, 45%)' ,
18
+ 350 : 'hsl(212, 75%, 78%)' ,
19
+ 150 : 'hsl(213, 74%, 91%)' ,
20
+ 100 : 'hsl(211, 74%, 94%)' ,
21
+ 50 : 'hsl(210, 75%, 97%)' ,
22
+ }
23
+ } ,
24
+ red : {
25
+ 1000 : 'hsl(352, 92%, 39%)' ,
26
+ 900 : 'hsl(352, 100%, 52%)' ,
27
+ } ,
28
+ magenta : {
29
+ 1000 : 'hsl(302, 100%, 37%)' ,
30
+ 900 : 'hsl(302, 100%, 50%)' ,
31
+ 350 : 'hsl(302, 100%, 81%)' ,
32
+ 50 : 'hsl(300, 100%, 97%)' ,
33
+ } ,
34
+ green : {
35
+ 1000 : 'hsl(149, 92%, 24%)' ,
36
+ 900 : 'hsl(149, 93%, 32%)' ,
37
+ 350 : 'hsl(149, 44%, 74%)' ,
38
+ 50 : 'hsl(147, 47%, 96%)' ,
39
+ } ,
40
+ yellow : {
41
+ 900 : 'hsl(48, 100%, 50%)' ,
42
+ 350 : 'hsl(48, 100%, 81%)' ,
43
+ 50 : 'hsl(47, 100%, 97%)' ,
44
+ } ,
45
+ orange : {
46
+ 1000 : 'hsl(21, 96%, 38%)' ,
47
+ 900 : 'hsl(21, 100%, 51%)' ,
48
+ 350 : 'hsl(21, 100%, 81%)' ,
49
+ 50 : 'hsl(21, 100%, 97%)'
50
+ }
35
51
} as const ;
36
52
53
+ // AUTHENTIC = primary now
54
+ // ACTION = secondary now
55
+
37
56
export const SemanticColors = {
38
57
text : {
39
- primary : Colors . AUTHENTIC_BLUE_900 ,
40
- primaryInverted : Colors . WHITE ,
58
+ primary : Colors . blue . primary [ 900 ] ,
59
+ primaryInverted : Colors . white ,
41
60
secondary : Colors . AUTHENTIC_BLUE_550 ,
42
61
secondaryInverted : Colors . AUTHENTIC_BLUE_200 ,
43
62
tertiary : Colors . AUTHENTIC_BLUE_350 ,
@@ -91,65 +110,116 @@ export const SemanticColors = {
91
110
dangerEmphasized : Colors . NEGATIVE_ORANGE_900 ,
92
111
successEmphasized : Colors . POSITIVE_GREEN_900 ,
93
112
warningEmphasized : Colors . ATTENTION_YELLOW_900
113
+ } ,
114
+ // } satisfies ColorSchema;
115
+ }
116
+
117
+ export const ComponentColors = {
118
+ text : {
119
+ button : {
120
+ primary : {
121
+ // --wave-c-color-text-button-primary-default
122
+ default : '' ,
123
+ // --wave-c-color-text-button-primary-hover
124
+ hover : '' ,
125
+ // --wave-c-color-text-button-primary-disabled
126
+ disabled : '' ,
127
+ // --wave-c-color-text-button-primary-inverted
128
+ inverted : '' ,
129
+ // --wave-c-color-text-button-primary-hoverInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
130
+ hoverInverted : '' ,
131
+ // --wave-c-color-text-button-primary-disabledInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
132
+ disabledInverted : '' ,
133
+ } ,
134
+ secondary : {
135
+ // --wave-c-color-text-button-secondary-default
136
+ default : '' ,
137
+ // --wave-c-color-text-button-secondary-hover
138
+ hover : '' ,
139
+ // --wave-c-color-text-button-secondary-disabled
140
+ disabled : '' ,
141
+ // --wave-c-color-text-button-secondary-inverted
142
+ inverted : '' ,
143
+ // --wave-c-color-text-button-secondary-hoverInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
144
+ hoverInverted : '' ,
145
+ // --wave-c-color-text-button-secondary-disabledInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
146
+ disabledInverted : '' ,
147
+ } ,
148
+ danger : {
149
+ // --wave-c-color-text-button-danger-default
150
+ default : '' ,
151
+ // --wave-c-color-text-button-danger-hover
152
+ hover : '' ,
153
+ // --wave-c-color-text-button-danger-disabled
154
+ disabled : '' ,
155
+ // --wave-c-color-text-button-danger-inverted
156
+ inverted : '' ,
157
+ // --wave-c-color-text-button-danger-hoverInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
158
+ hoverInverted : '' ,
159
+ // --wave-c-color-text-button-danger-disabledInverted // This needs rething, as inverted is state, same as hover - Should be in Dark Mode Schema
160
+ disabledInverted : '' ,
161
+ }
162
+ }
94
163
}
95
- // button: {
96
164
// primary: {
97
165
// text: Colors.WHITE,
98
166
// icon: Colors.WHITE,
99
167
// background: Colors.AUTHENTIC_BLUE_900,
100
168
// border: Colors.AUTHENTIC_BLUE_900,
101
- //
169
+
102
170
// textHover: Colors.WHITE,
103
171
// iconHover: Colors.WHITE,
104
172
// backgroundHover: Colors.AUTHENTIC_BLUE_1100,
105
173
// borderHover: Colors.AUTHENTIC_BLUE_1100,
106
- //
174
+
107
175
// textDisabled: Colors.WHITE,
108
176
// iconDisabled: Colors.WHITE,
109
177
// backgroundDisabled: Colors.AUTHENTIC_BLUE_200,
110
178
// borderDisabled: Colors.AUTHENTIC_BLUE_200,
111
- //
179
+
112
180
// textInverted: Colors.ACTION_BLUE_900,
113
181
// iconInverted: Colors.ACTION_BLUE_900,
114
182
// backgroundInverted: Colors.WHITE,
115
183
// borderInverted: Colors.WHITE,
116
- //
184
+
117
185
// textHoverInverted: Colors.WHITE,
118
186
// iconHoverInverted: Colors.WHITE,
119
187
// backgroundHoverInverted: Colors.ACTION_BLUE_900,
120
188
// borderHoverInverted: Colors.ACTION_BLUE_900,
121
- //
189
+
122
190
// textDisabledInverted: Colors.AUTHENTIC_BLUE_350,
123
191
// iconDisabledInverted: Colors.AUTHENTIC_BLUE_350,
124
192
// backgroundDisabledInverted: Colors.AUTHENTIC_BLUE_550,
125
193
// borderDisabledInverted: Colors.AUTHENTIC_BLUE_550
126
194
// },
195
+ // // --wave-c-color-border-button-primary-hover
196
+ // // --wave-c-color-border-button-primary-hover-inverted
127
197
// secondary: {
128
198
// text: Colors.AUTHENTIC_BLUE_900,
129
199
// icon: Colors.AUTHENTIC_BLUE_900,
130
200
// background: Colors.WHITE,
131
201
// border: Colors.AUTHENTIC_BLUE_200,
132
- //
202
+
133
203
// textHover: Colors.AUTHENTIC_BLUE_900,
134
204
// iconHover: Colors.AUTHENTIC_BLUE_900,
135
205
// backgroundHover: Colors.AUTHENTIC_BLUE_50,
136
206
// borderHover: Colors.AUTHENTIC_BLUE_200,
137
- //
207
+
138
208
// textDisabled: Colors.AUTHENTIC_BLUE_200,
139
209
// iconDisabled: Colors.AUTHENTIC_BLUE_200,
140
210
// backgroundDisabled: Colors.WHITE,
141
211
// borderDisabled: Colors.AUTHENTIC_BLUE_200,
142
- //
212
+
143
213
// textInverted: Colors.WHITE,
144
214
// iconInverted: Colors.WHITE,
145
215
// backgroundInverted: 'transparent',
146
216
// borderInverted: Colors.WHITE,
147
- //
217
+
148
218
// textHoverInverted: Colors.AUTHENTIC_BLUE_900,
149
219
// iconHoverInverted: Colors.AUTHENTIC_BLUE_900,
150
220
// backgroundHoverInverted: Colors.WHITE,
151
221
// borderHoverInverted: Colors.WHITE,
152
- //
222
+
153
223
// textDisabledInverted: Colors.AUTHENTIC_BLUE_550,
154
224
// iconDisabledInverted: Colors.AUTHENTIC_BLUE_550,
155
225
// backgroundDisabledInverted: 'transparent',
@@ -160,27 +230,27 @@ export const SemanticColors = {
160
230
// icon: Colors.WHITE,
161
231
// background: Colors.NEGATIVE_ORANGE_900,
162
232
// border: Colors.NEGATIVE_ORANGE_900,
163
- //
233
+
164
234
// textHover: Colors.WHITE,
165
235
// iconHover: Colors.WHITE,
166
236
// backgroundHover: Colors.NEGATIVE_ORANGE_1000,
167
237
// borderHover: Colors.NEGATIVE_ORANGE_1000,
168
- //
238
+
169
239
// textDisabled: Colors.WHITE,
170
240
// iconDisabled: Colors.WHITE,
171
241
// backgroundDisabled: Colors.AUTHENTIC_BLUE_200,
172
242
// borderDisabled: Colors.AUTHENTIC_BLUE_200,
173
- //
243
+
174
244
// textInverted: Colors.WHITE,
175
245
// iconInverted: Colors.WHITE,
176
246
// backgroundInverted: Colors.NEGATIVE_ORANGE_900,
177
247
// borderInverted: Colors.NEGATIVE_ORANGE_900,
178
- //
248
+
179
249
// textHoverInverted: Colors.WHITE,
180
250
// iconHoverInverted: Colors.WHITE,
181
251
// backgroundHoverInverted: Colors.NEGATIVE_ORANGE_1000,
182
252
// borderHoverInverted: Colors.NEGATIVE_ORANGE_1000,
183
- //
253
+
184
254
// textDisabledInverted: Colors.WHITE,
185
255
// iconDisabledInverted: Colors.WHITE,
186
256
// backgroundDisabledInverted: Colors.AUTHENTIC_BLUE_200,
@@ -195,7 +265,7 @@ export const SemanticColors = {
195
265
// iconHover: Colors.ACTION_BLUE_1000,
196
266
// textDisabled: Colors.AUTHENTIC_BLUE_200,
197
267
// iconDisabled: Colors.AUTHENTIC_BLUE_200,
198
- //
268
+
199
269
// textInverted: Colors.WHITE,
200
270
// iconInverted: Colors.WHITE,
201
271
// textHoverInverted: Colors.AUTHENTIC_BLUE_350,
@@ -210,7 +280,7 @@ export const SemanticColors = {
210
280
// iconHover: Colors.NEGATIVE_ORANGE_1000,
211
281
// textDisabled: Colors.AUTHENTIC_BLUE_200,
212
282
// iconDisabled: Colors.AUTHENTIC_BLUE_200,
213
- //
283
+
214
284
// textInverted: Colors.NEGATIVE_ORANGE_900,
215
285
// iconInverted: Colors.NEGATIVE_ORANGE_900,
216
286
// textHoverInverted: Colors.NEGATIVE_ORANGE_1000,
@@ -278,4 +348,4 @@ export const SemanticColors = {
278
348
// dialog: {
279
349
// dimming: 'rgba(0, 15, 31, 0.6)'
280
350
// }
281
- } satisfies ColorSchema ;
351
+ }
0 commit comments