@abgov/design-tokens 1.9.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/data/component-design-tokens/accordion-design-tokens.json +92 -11
  2. package/data/component-design-tokens/badge-design-tokens.json +115 -26
  3. package/data/component-design-tokens/button-design-tokens.json +151 -66
  4. package/data/component-design-tokens/callout-design-tokens.json +158 -74
  5. package/data/component-design-tokens/checkbox-design-tokens.json +33 -14
  6. package/data/component-design-tokens/container-design-tokens.json +15 -11
  7. package/data/component-design-tokens/date-picker-design-tokens.json +26 -10
  8. package/data/component-design-tokens/details-design-tokens.json +28 -5
  9. package/data/component-design-tokens/drawer-design-tokens.json +42 -35
  10. package/data/component-design-tokens/dropdown-design-tokens.json +81 -17
  11. package/data/component-design-tokens/filter-chip-design-tokens.json +92 -0
  12. package/data/component-design-tokens/footer-design-tokens.json +16 -20
  13. package/data/component-design-tokens/form-item-design-tokens.json +99 -20
  14. package/data/component-design-tokens/header-design-tokens.json +189 -235
  15. package/data/component-design-tokens/icon-button-design-tokens.json +40 -24
  16. package/data/component-design-tokens/input-design-tokens.json +52 -28
  17. package/data/component-design-tokens/link-design-tokens.json +115 -0
  18. package/data/component-design-tokens/modal-design-tokens.json +202 -17
  19. package/data/component-design-tokens/notification-banner-design-tokens.json +152 -0
  20. package/data/component-design-tokens/pagination-design-tokens.json +17 -0
  21. package/data/component-design-tokens/popover-design-tokens.json +23 -9
  22. package/data/component-design-tokens/push-drawer-design-tokens.json +1 -1
  23. package/data/component-design-tokens/radio-design-tokens.json +79 -17
  24. package/data/component-design-tokens/side-menu-design-tokens.json +101 -94
  25. package/data/component-design-tokens/table-design-tokens.json +159 -9
  26. package/data/component-design-tokens/tabs-design-tokens.json +74 -16
  27. package/data/component-design-tokens/temporary-notification-design-tokens.json +112 -0
  28. package/data/component-design-tokens/text-area-design-tokens.json +29 -15
  29. package/data/component-design-tokens/tooltip-design-tokens.json +3 -3
  30. package/data/component-design-tokens/work-side-menu-design-tokens.json +34 -0
  31. package/data/component-design-tokens/work-side-menu-group-design-tokens.json +26 -0
  32. package/data/component-design-tokens/work-side-menu-item-design-tokens.json +58 -0
  33. package/data/goa-global-design-tokens.json +571 -145
  34. package/dist/tokens.css +840 -430
  35. package/dist/tokens.scss +974 -564
  36. package/index.spec.js +12 -0
  37. package/lib/design-tokens.js +43 -9
  38. package/package.json +1 -1
@@ -3,48 +3,48 @@
3
3
  "value": "{borderRadius.m}",
4
4
  "type": "borderRadius"
5
5
  },
6
- "button-padding-lr": {
7
- "value": "{space.s}",
6
+ "button-padding": {
7
+ "value": "0 {space.xl}",
8
8
  "type": "spacing",
9
- "description": "12px"
9
+ "description": "32px"
10
10
  },
11
- "button-padding-lr-compact": {
12
- "value": "{space.xs}",
11
+ "button-padding-compact": {
12
+ "value": "0 {space.m}",
13
13
  "type": "spacing",
14
- "description": "8px"
14
+ "description": "16px left and right"
15
15
  },
16
16
  "button-padding-lr-start": {
17
- "value": "{space.m}",
17
+ "value": "{space.xl}",
18
18
  "type": "spacing",
19
- "description": "16px"
19
+ "description": "32px"
20
20
  },
21
21
  "button-height": {
22
- "value": "2.625rem",
22
+ "value": "3.5rem",
23
23
  "type": "sizing",
24
- "description": "42px"
24
+ "description": "56px"
25
25
  },
26
26
  "button-height-compact": {
27
- "value": "2rem",
27
+ "value": "2.5rem",
28
28
  "type": "sizing",
29
- "description": "32px"
29
+ "description": "40px"
30
30
  },
31
31
  "button-height-start": {
32
- "value": "3.25rem",
32
+ "value": "3.5rem",
33
33
  "type": "sizing",
34
- "description": "52px"
34
+ "description": "56px"
35
35
  },
36
36
  "button-text": {
37
- "value": "{fontWeight.regular} {fontSize.5}/{lineHeight.1} {fontFamily.sans}",
37
+ "value": "{fontWeight.medium} {fontSize.5}/{lineHeight.1} {fontFamily.sans}",
38
38
  "type": "other",
39
39
  "description": "typography for default button size"
40
40
  },
41
41
  "button-text-compact": {
42
- "value": "{fontWeight.regular} {fontSize.4}/{lineHeight.05} {fontFamily.sans}",
42
+ "value": "{fontWeight.medium} {fontSize.4}/{lineHeight.05} {fontFamily.sans}",
43
43
  "type": "other",
44
44
  "description": "typography for compact button size"
45
45
  },
46
46
  "button-text-start": {
47
- "value": "{fontWeight.bold} {fontSize.5}/{lineHeight.1} {fontFamily.sans}",
47
+ "value": "{fontWeight.medium} {fontSize.5}/{lineHeight.05} {fontFamily.sans}",
48
48
  "type": "other",
49
49
  "description": "typography for start button size"
50
50
  },
@@ -53,20 +53,24 @@
53
53
  "type": "spacing",
54
54
  "description": "8px"
55
55
  },
56
+ "button-outline-offset": {
57
+ "value": "2px",
58
+ "type": "sizing"
59
+ },
56
60
  "button-compact-gap": {
57
61
  "value": "0.375rem",
58
62
  "type": "spacing",
59
63
  "description": "6px"
60
64
  },
61
65
  "button-icon-size": {
62
- "value": "{iconSize.3}",
66
+ "value": "{iconSize.4}",
63
67
  "type": "sizing",
64
- "description": "20px"
68
+ "description": "24px"
65
69
  },
66
70
  "button-compact-icon-size": {
67
- "value": "{iconSize.2}",
71
+ "value": "{iconSize.3}",
68
72
  "type": "sizing",
69
- "description": "18px"
73
+ "description": "20px"
70
74
  },
71
75
  "button-primary-color-bg": {
72
76
  "value": "{color.interactive.default}",
@@ -78,7 +82,7 @@
78
82
  },
79
83
  "button-primary-border": {
80
84
  "value": {
81
- "color": "rgba(0,0,0,0)",
85
+ "color": "transparent",
82
86
  "width": "{borderWidth.none}",
83
87
  "style": "solid"
84
88
  },
@@ -94,14 +98,14 @@
94
98
  },
95
99
  "button-primary-hover-border": {
96
100
  "value": {
97
- "color": "rgba(0,0,0,0)",
101
+ "color": "transparent",
98
102
  "width": "{borderWidth.none}",
99
103
  "style": "solid"
100
104
  },
101
105
  "type": "border"
102
106
  },
103
107
  "button-primary-focus-color-bg": {
104
- "value": "{color.interactive.hover}",
108
+ "value": "{color.interactive.default}",
105
109
  "type": "color"
106
110
  },
107
111
  "button-primary-focus-color-text": {
@@ -110,7 +114,7 @@
110
114
  },
111
115
  "button-primary-focus-border": {
112
116
  "value": {
113
- "color": "rgba(0,0,0,0)",
117
+ "color": "transparent",
114
118
  "width": "{borderWidth.none}",
115
119
  "style": "solid"
116
120
  },
@@ -129,15 +133,23 @@
129
133
  "type": "color"
130
134
  },
131
135
  "button-primary-destructive-focus-color-bg": {
132
- "value": "{color.emergency.dark}",
136
+ "value": "{color.emergency.default}",
137
+ "type": "color"
138
+ },
139
+ "button-primary-disabled-color-bg": {
140
+ "value": "{color.interactive.disabled}",
141
+ "type": "color"
142
+ },
143
+ "button-primary-disabled-color-text": {
144
+ "value": "{color.text.light}",
133
145
  "type": "color"
134
146
  },
135
147
  "button-primary-inverse-color-bg": {
136
- "value": "{color.greyscale.white}",
148
+ "value": "{color.interactive.default}",
137
149
  "type": "color"
138
150
  },
139
151
  "button-primary-inverse-color-text": {
140
- "value": "{color.text.default}",
152
+ "value": "{color.text.light}",
141
153
  "type": "color"
142
154
  },
143
155
  "button-primary-inverse-hover-color-bg": {
@@ -145,31 +157,31 @@
145
157
  "type": "color"
146
158
  },
147
159
  "button-primary-inverse-hover-color-text": {
148
- "value": "{color.greyscale.white}",
160
+ "value": "{color.text.light}",
149
161
  "type": "color"
150
162
  },
151
163
  "button-primary-inverse-focus-color-bg": {
152
- "value": "{color.interactive.hover}",
164
+ "value": "{color.interactive.default}",
153
165
  "type": "color"
154
166
  },
155
167
  "button-secondary-color-bg": {
156
- "value": "{color.greyscale.white}",
168
+ "value": "{color.interactive.secondary}",
157
169
  "type": "color"
158
170
  },
159
171
  "button-secondary-color-text": {
160
- "value": "{color.interactive.default}",
172
+ "value": "{color.interactive.hover}",
161
173
  "type": "color"
162
174
  },
163
175
  "button-secondary-border": {
164
176
  "value": {
165
- "width": "{borderWidth.m}",
177
+ "width": "{borderWidth.none}",
166
178
  "style": "solid",
167
- "color": "{color.interactive.default}"
179
+ "color": "transparent"
168
180
  },
169
181
  "type": "border"
170
182
  },
171
183
  "button-secondary-hover-color-bg": {
172
- "value": "{color.greyscale.100}",
184
+ "value": "{color.interactive.secondary-hover}",
173
185
  "type": "color"
174
186
  },
175
187
  "button-secondary-hover-color-text": {
@@ -178,14 +190,14 @@
178
190
  },
179
191
  "button-secondary-hover-border": {
180
192
  "value": {
181
- "width": "{borderWidth.m}",
193
+ "width": "{borderWidth.none}",
182
194
  "style": "solid",
183
- "color": "{color.interactive.hover}"
195
+ "color": "transparent"
184
196
  },
185
197
  "type": "border"
186
198
  },
187
199
  "button-secondary-focus-color-bg": {
188
- "value": "{color.greyscale.100}",
200
+ "value": "{color.interactive.secondary}",
189
201
  "type": "color"
190
202
  },
191
203
  "button-secondary-focus-color-text": {
@@ -194,32 +206,40 @@
194
206
  },
195
207
  "button-secondary-focus-border": {
196
208
  "value": {
197
- "width": "{borderWidth.m}",
209
+ "width": "{borderWidth.none}",
198
210
  "style": "solid",
199
- "color": "{color.interactive.hover}"
211
+ "color": "transparent"
200
212
  },
201
213
  "type": "border"
202
214
  },
203
215
  "button-secondary-destructive-color-text": {
204
- "value": "{color.emergency.default}",
216
+ "value": "{color.emergency.dark}",
217
+ "type": "color"
218
+ },
219
+ "button-secondary-destructive-color-bg": {
220
+ "value": "{color.emergency.light}",
205
221
  "type": "color"
206
222
  },
207
223
  "button-secondary-destructive-border": {
208
224
  "value": {
209
- "width": "{borderWidth.m}",
225
+ "width": "{borderWidth.none}",
210
226
  "style": "solid",
211
- "color": "{color.emergency.default}"
227
+ "color": "transparent"
212
228
  },
213
229
  "type": "border"
214
230
  },
215
231
  "button-secondary-destructive-hover-border": {
216
232
  "value": {
217
- "width": "{borderWidth.m}",
233
+ "width": "{borderWidth.none}",
218
234
  "style": "solid",
219
- "color": "{color.emergency.dark}"
235
+ "color": "transparent"
220
236
  },
221
237
  "type": "border"
222
238
  },
239
+ "button-secondary-destructive-hover-color-bg": {
240
+ "value": "{input.color.background.error-hover}",
241
+ "type": "color"
242
+ },
223
243
  "button-secondary-destructive-hover-color-text": {
224
244
  "value": "{color.emergency.dark}",
225
245
  "type": "color"
@@ -228,12 +248,20 @@
228
248
  "value": "{color.emergency.dark}",
229
249
  "type": "color"
230
250
  },
251
+ "button-secondary-disabled-color-bg": {
252
+ "value": "{color.greyscale.150}",
253
+ "type": "color"
254
+ },
255
+ "button-secondary-disabled-color-text": {
256
+ "value": "{color.greyscale.400}",
257
+ "type": "color"
258
+ },
231
259
  "button-secondary-inverse-color-text": {
232
- "value": "{color.greyscale.white}",
260
+ "value": "{color.interactive.hover}",
233
261
  "type": "color"
234
262
  },
235
263
  "button-secondary-inverse-color-bg": {
236
- "value": "none",
264
+ "value": "{color.interactive.secondary}",
237
265
  "type": "color"
238
266
  },
239
267
  "button-secondary-inverse-hover-color-text": {
@@ -246,38 +274,38 @@
246
274
  },
247
275
  "button-secondary-destructive-focus-border": {
248
276
  "value": {
249
- "width": "{borderWidth.m}",
277
+ "width": "{borderWidth.none}",
250
278
  "style": "solid",
251
- "color": "{color.emergency.dark}"
279
+ "color": "transparent"
252
280
  },
253
281
  "type": "border"
254
282
  },
255
283
  "button-secondary-inverse-border": {
256
284
  "value": {
257
- "width": "{borderWidth.m}",
285
+ "width": "{borderWidth.none}",
258
286
  "style": "solid",
259
- "color": "{color.greyscale.white}"
287
+ "color": "transparent"
260
288
  },
261
289
  "type": "border"
262
290
  },
263
291
  "button-secondary-inverse-hover-border": {
264
292
  "value": {
265
- "width": "{borderWidth.m}",
293
+ "width": "{borderWidth.none}",
266
294
  "style": "solid",
267
- "color": "{color.interactive.hover}"
295
+ "color": "transparent"
268
296
  },
269
297
  "type": "border"
270
298
  },
271
299
  "button-secondary-inverse-focus-border": {
272
300
  "value": {
273
- "width": "{borderWidth.m}",
301
+ "width": "{borderWidth.none}",
274
302
  "style": "solid",
275
- "color": "{color.interactive.hover}"
303
+ "color": "transparent"
276
304
  },
277
305
  "type": "border"
278
306
  },
279
307
  "button-tertiary-color-bg": {
280
- "value": "none",
308
+ "value": "transparent",
281
309
  "type": "color"
282
310
  },
283
311
  "button-tertiary-color-bg-mobile": {
@@ -285,31 +313,51 @@
285
313
  "type": "color"
286
314
  },
287
315
  "button-tertiary-color-text": {
288
- "value": "{color.interactive.default}",
316
+ "value": "{color.text.default}",
289
317
  "type": "color"
290
318
  },
291
319
  "button-tertiary-border": {
292
320
  "value": {
293
- "color": "rgba(0,0,0,0)",
294
- "width": "{borderWidth.none}",
321
+ "color": "{color.greyscale.200}",
322
+ "width": "{borderWidth.s}",
295
323
  "style": "solid"
296
324
  },
297
325
  "type": "border"
298
326
  },
299
327
  "button-tertiary-hover-color-bg": {
300
- "value": "{color.greyscale.100}",
328
+ "value": "transparent",
301
329
  "type": "color"
302
330
  },
303
331
  "button-tertiary-hover-color-text": {
304
- "value": "{color.interactive.hover}",
332
+ "value": "{color.text.default}",
305
333
  "type": "color"
306
334
  },
307
335
  "button-tertiary-focus-color-bg": {
308
- "value": "{color.greyscale.100}",
336
+ "value": "transparent",
309
337
  "type": "color"
310
338
  },
311
339
  "button-tertiary-focus-color-text": {
312
- "value": "{color.interactive.hover}",
340
+ "value": "{color.text.default}",
341
+ "type": "color"
342
+ },
343
+ "button-tertiary-hover-border": {
344
+ "value": {
345
+ "color": "{color.greyscale.black}",
346
+ "width": "{borderWidth.s}",
347
+ "style": "solid"
348
+ },
349
+ "type": "border"
350
+ },
351
+ "button-tertiary-focus-border": {
352
+ "value": {
353
+ "color": "{color.greyscale.black}",
354
+ "width": "{borderWidth.s}",
355
+ "style": "solid"
356
+ },
357
+ "type": "border"
358
+ },
359
+ "button-tertiary-destructive-color-border": {
360
+ "value": "{color.emergency.border}",
313
361
  "type": "color"
314
362
  },
315
363
  "button-tertiary-destructive-color-text": {
@@ -320,25 +368,62 @@
320
368
  "value": "{color.emergency.dark}",
321
369
  "type": "color"
322
370
  },
371
+ "button-tertiary-destructive-hover-border": {
372
+ "value": {
373
+ "color": "{color.emergency.dark}",
374
+ "width": "{borderWidth.s}",
375
+ "style": "solid"
376
+ },
377
+ "type": "border"
378
+ },
323
379
  "button-tertiary-destructive-focus-color-text": {
324
380
  "value": "{color.emergency.dark}",
325
381
  "type": "color"
326
382
  },
383
+ "button-tertiary-disabled-color-border": {
384
+ "value": "{color.greyscale.200}",
385
+ "type": "color"
386
+ },
387
+ "button-tertiary-disabled-color-text": {
388
+ "value": "{color.interactive.disabled}",
389
+ "type": "color"
390
+ },
391
+ "button-tertiary-inverse-border": {
392
+ "value": {
393
+ "color": "{color.greyscale.white}",
394
+ "width": "{borderWidth.s}",
395
+ "style": "solid"
396
+ },
397
+ "type": "border"
398
+ },
327
399
  "button-tertiary-inverse-color-text": {
328
- "value": "{color.greyscale.white}",
400
+ "value": "{color.text.light}",
329
401
  "type": "color"
330
402
  },
331
403
  "button-tertiary-inverse-hover-color-text": {
332
- "value": "{color.interactive.hover}",
404
+ "value": "{color.greyscale.200}",
333
405
  "type": "color"
334
406
  },
407
+ "button-tertiary-inverse-hover-border": {
408
+ "value": {
409
+ "color": "{color.greyscale.200}",
410
+ "width": "{borderWidth.s}",
411
+ "style": "solid"
412
+ },
413
+ "type": "border"
414
+ },
335
415
  "button-tertiary-inverse-focus-color-text": {
336
- "value": "{color.interactive.hover}",
416
+ "value": "{color.text.light}",
337
417
  "type": "color"
338
418
  },
339
419
  "button-letter-spacing": {
340
420
  "value": "0.0125rem",
341
421
  "type": "letterSpacing",
342
422
  "description": "subtle letter spacing in the button for better readability"
423
+ },
424
+ "button-tertiary-text-decoration": {
425
+ "value": "none",
426
+ "type": "textDecoration",
427
+ "description": "removes underline from tertiary buttons"
343
428
  }
344
429
  }