@abgov/design-tokens 1.4.3 → 1.5.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 (35) hide show
  1. package/data/component-design-tokens/accordion-design-tokens.json +6 -4
  2. package/data/component-design-tokens/badge-design-tokens.json +103 -0
  3. package/data/component-design-tokens/button-design-tokens.json +326 -8
  4. package/data/component-design-tokens/button-group-design-tokens.json +12 -0
  5. package/data/component-design-tokens/checkbox-design-tokens.json +99 -0
  6. package/data/component-design-tokens/container-design-tokens.json +146 -0
  7. package/data/component-design-tokens/date-picker-design-tokens.json +102 -0
  8. package/data/component-design-tokens/details-design-tokens.json +84 -0
  9. package/data/component-design-tokens/divider-design-tokens.json +6 -0
  10. package/data/component-design-tokens/dropdown-design-tokens.json +110 -0
  11. package/data/component-design-tokens/file-uploader-design-tokens.json +102 -0
  12. package/data/component-design-tokens/footer-design-tokens.json +74 -0
  13. package/data/component-design-tokens/form-item-design-tokens.json +46 -0
  14. package/data/component-design-tokens/form-stepper-design-tokens.json +98 -0
  15. package/data/component-design-tokens/header-design-tokens.json +70 -0
  16. package/data/component-design-tokens/hero-banner-design-tokens.json +22 -0
  17. package/data/component-design-tokens/icon-button-design-tokens.json +74 -0
  18. package/data/component-design-tokens/input-design-tokens.json +90 -0
  19. package/data/component-design-tokens/microsite-header-design-tokens.json +66 -0
  20. package/data/component-design-tokens/modal-design-tokens.json +53 -0
  21. package/data/component-design-tokens/notification-banner-design-tokens.json +90 -0
  22. package/data/component-design-tokens/popover-design-tokens.json +33 -0
  23. package/data/component-design-tokens/progress-indicator-design-tokens.json +22 -0
  24. package/data/component-design-tokens/radio-design-tokens.json +138 -0
  25. package/data/component-design-tokens/scrollable-design-tokens.json +12 -0
  26. package/data/component-design-tokens/side-menu-design-tokens.json +174 -17
  27. package/data/component-design-tokens/skeleton-loading-design-tokens.json +6 -0
  28. package/data/component-design-tokens/table-design-tokens.json +4 -0
  29. package/data/component-design-tokens/tabs-design-tokens.json +78 -0
  30. package/data/component-design-tokens/text-area-design-tokens.json +67 -0
  31. package/data/component-design-tokens/tooltip-design-tokens.json +38 -0
  32. package/data/goa-global-design-tokens.json +252 -215
  33. package/dist/tokens.css +552 -60
  34. package/dist/tokens.scss +552 -60
  35. package/package.json +1 -1
@@ -33,10 +33,13 @@
33
33
  },
34
34
  "accordion-padding-heading-icon-left": {
35
35
  "value": "{space.s} {space.m} {space.s} 0",
36
- "type": "spacing"
36
+ "type": "spacing",
37
+ "description": "padding of accordion heading when icon is positioned on the left"
37
38
  },
38
39
  "accordion-padding-heading-icon-right": {
39
- "value": "{space.s} 0 {space.s} {space.m}"
40
+ "value": "{space.s} 0 {space.s} {space.m}",
41
+ "type": "spacing",
42
+ "description": "padding of accordion heading when icon is positioned on the right"
40
43
  },
41
44
  "accordion-padding-content-wide": {
42
45
  "value": "{space.l} {space.l} {space.xl} 56px",
@@ -73,5 +76,4 @@
73
76
  },
74
77
  "type": "boxShadow"
75
78
  }
76
- }
77
-
79
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "badge-padding": {
3
+ "value": "0px {space.xs}",
4
+ "type": "spacing",
5
+ "description": "0px 8px"
6
+ },
7
+ "badge-gap": {
8
+ "value": "{space.2xs}",
9
+ "type": "spacing",
10
+ "description": "4px"
11
+ },
12
+ "badge-font-size": {
13
+ "value": "{fontSize.2}",
14
+ "type": "fontSizes",
15
+ "description": "14px"
16
+ },
17
+ "badge-line-height": {
18
+ "value": "{lineHeight.1}",
19
+ "type": "lineHeights",
20
+ "description": "20px"
21
+ },
22
+ "badge-icon-size": {
23
+ "value": "{iconSize.1}",
24
+ "type": "sizing",
25
+ "description": "16px"
26
+ },
27
+ "badge-border-radius": {
28
+ "value": "{borderRadius.m}",
29
+ "type": "borderRadius",
30
+ "description": "4px"
31
+ },
32
+ "badge-info-color-bg": {
33
+ "value": "{color.greyscale.100}",
34
+ "type": "color"
35
+ },
36
+ "badge-info-color-content": {
37
+ "value": "{color.info.default}",
38
+ "type": "color"
39
+ },
40
+ "badge-success-color-bg": {
41
+ "value": "{color.success.default}",
42
+ "type": "color"
43
+ },
44
+ "badge-success-color-content": {
45
+ "value": "{color.text.light}",
46
+ "type": "color"
47
+ },
48
+ "badge-important-color-bg": {
49
+ "value": "{color.warning.default}",
50
+ "type": "color"
51
+ },
52
+ "badge-important-color-content": {
53
+ "value": "{color.text.default}",
54
+ "type": "color"
55
+ },
56
+ "badge-emergency-color-bg": {
57
+ "value": "{color.emergency.default}",
58
+ "type": "color"
59
+ },
60
+ "badge-emergency-color-content": {
61
+ "value": "{color.text.light}",
62
+ "type": "color"
63
+ },
64
+ "badge-dark-color-bg": {
65
+ "value": "{color.greyscale.black}",
66
+ "type": "color"
67
+ },
68
+ "badge-dark-color-content": {
69
+ "value": "{color.text.light}",
70
+ "type": "color"
71
+ },
72
+ "badge-midtone-color-bg": {
73
+ "value": "{color.greyscale.700}",
74
+ "type": "color"
75
+ },
76
+ "badge-midtone-color-content": {
77
+ "value": "{color.text.light}",
78
+ "type": "color"
79
+ },
80
+ "badge-light-color-bg": {
81
+ "value": "{color.greyscale.white}",
82
+ "type": "color"
83
+ },
84
+ "badge-light-color-content": {
85
+ "value": "{color.text.default}",
86
+ "type": "color"
87
+ },
88
+ "badge-height": {
89
+ "value": "22px",
90
+ "type": "sizing"
91
+ },
92
+ "badge-border": {
93
+ "value": {
94
+ "x": "0",
95
+ "y": "0",
96
+ "blur": "0",
97
+ "spread": "{borderWidth.s}",
98
+ "color": "rgba(0,0,0,0.5)",
99
+ "type": "innerShadow"
100
+ },
101
+ "type": "boxShadow"
102
+ }
103
+ }
@@ -5,22 +5,340 @@
5
5
  },
6
6
  "button-padding-lr": {
7
7
  "value": "{space.s}",
8
- "type": "spacing"
8
+ "type": "spacing",
9
+ "description": "12px"
9
10
  },
10
11
  "button-padding-lr-compact": {
11
12
  "value": "{space.xs}",
12
- "type": "spacing"
13
+ "type": "spacing",
14
+ "description": "8px"
15
+ },
16
+ "button-padding-lr-start": {
17
+ "value": "{space.m}",
18
+ "type": "spacing",
19
+ "description": "16px"
13
20
  },
14
21
  "button-height": {
15
- "value": "42px",
16
- "type": "sizing"
22
+ "value": "2.625rem",
23
+ "type": "sizing",
24
+ "description": "42px"
17
25
  },
18
26
  "button-height-compact": {
19
- "value": "32px",
20
- "type": "sizing"
27
+ "value": "2rem",
28
+ "type": "sizing",
29
+ "description": "32px"
30
+ },
31
+ "button-height-start": {
32
+ "value": "3.25rem",
33
+ "type": "sizing",
34
+ "description": "52px"
21
35
  },
22
36
  "button-text": {
23
- "value": "{typography.button.default}",
24
- "type": "other"
37
+ "value": "{fontFamily.sans} {fontWeight.regular} {fontSize.5} {lineHeight.1} {button-letter-spacing}",
38
+ "type": "other",
39
+ "description": "typography for default button size"
40
+ },
41
+ "button-text-compact": {
42
+ "value": "{fontFamily.sans} {fontWeight.regular} {fontSize.4} {lineHeight.05} {button-letter-spacing}",
43
+ "type": "other",
44
+ "description": "typography for compact button size"
45
+ },
46
+ "button-text-start": {
47
+ "value": "{fontFamily.sans} {fontWeight.bold} {fontSize.5} {lineHeight.1} {button-letter-spacing}",
48
+ "type": "other",
49
+ "description": "typography for start button size"
50
+ },
51
+ "button-gap": {
52
+ "value": "{space.xs}",
53
+ "type": "spacing",
54
+ "description": "8px"
55
+ },
56
+ "button-compact-gap": {
57
+ "value": "0.375rem",
58
+ "type": "spacing",
59
+ "description": "6px"
60
+ },
61
+ "button-icon-size": {
62
+ "value": "{iconSize.3}",
63
+ "type": "sizing",
64
+ "description": "20px"
65
+ },
66
+ "button-compact-icon-size": {
67
+ "value": "{iconSize.2}",
68
+ "type": "sizing",
69
+ "description": "18px"
70
+ },
71
+ "button-primary-color-bg": {
72
+ "value": "{color.interactive.default}",
73
+ "type": "color"
74
+ },
75
+ "button-primary-color-text": {
76
+ "value": "{color.text.light}",
77
+ "type": "color"
78
+ },
79
+ "button-primary-border": {
80
+ "value": {
81
+ "color": "rgba(0,0,0,0)",
82
+ "width": "{borderWidth.none}",
83
+ "style": "solid"
84
+ },
85
+ "type": "border"
86
+ },
87
+ "button-primary-hover-color-bg": {
88
+ "value": "{color.interactive.hover}",
89
+ "type": "color"
90
+ },
91
+ "button-primary-hover-color-text": {
92
+ "value": "{color.text.light}",
93
+ "type": "color"
94
+ },
95
+ "button-primary-hover-border": {
96
+ "value": {
97
+ "color": "rgba(0,0,0,0)",
98
+ "width": "{borderWidth.none}",
99
+ "style": "solid"
100
+ },
101
+ "type": "border"
102
+ },
103
+ "button-primary-focus-color-bg": {
104
+ "value": "{color.interactive.hover}",
105
+ "type": "color"
106
+ },
107
+ "button-primary-focus-color-text": {
108
+ "value": "{color.text.light}",
109
+ "type": "color"
110
+ },
111
+ "button-primary-focus-border": {
112
+ "value": {
113
+ "color": "rgba(0,0,0,0)",
114
+ "width": "{borderWidth.none}",
115
+ "style": "solid"
116
+ },
117
+ "type": "border"
118
+ },
119
+ "button-primary-destructive-color-bg": {
120
+ "value": "{color.emergency.default}",
121
+ "type": "color"
122
+ },
123
+ "button-primary-destructive-hover-color-bg": {
124
+ "value": "{color.emergency.dark}",
125
+ "type": "color"
126
+ },
127
+ "button-primary-destructive-hover-color-text": {
128
+ "value": "{color.text.light}",
129
+ "type": "color"
130
+ },
131
+ "button-primary-destructive-focus-color-bg": {
132
+ "value": "{color.emergency.dark}",
133
+ "type": "color"
134
+ },
135
+ "button-primary-inverse-color-bg": {
136
+ "value": "{color.greyscale.white}",
137
+ "type": "color"
138
+ },
139
+ "button-primary-inverse-color-text": {
140
+ "value": "{color.text.default}",
141
+ "type": "color"
142
+ },
143
+ "button-primary-inverse-hover-color-bg": {
144
+ "value": "{color.interactive.hover}",
145
+ "type": "color"
146
+ },
147
+ "button-primary-inverse-hover-color-text": {
148
+ "value": "{color.greyscale.white}",
149
+ "type": "color"
150
+ },
151
+ "button-primary-inverse-focus-color-bg": {
152
+ "value": "{color.interactive.hover}",
153
+ "type": "color"
154
+ },
155
+ "button-secondary-color-bg": {
156
+ "value": "{color.greyscale.white}",
157
+ "type": "color"
158
+ },
159
+ "button-secondary-color-text": {
160
+ "value": "{color.interactive.default}",
161
+ "type": "color"
162
+ },
163
+ "button-secondary-border": {
164
+ "value": {
165
+ "width": "{borderWidth.m}",
166
+ "style": "solid",
167
+ "color": "{color.interactive.default}"
168
+ },
169
+ "type": "border"
170
+ },
171
+ "button-secondary-hover-color-bg": {
172
+ "value": "{color.greyscale.100}",
173
+ "type": "color"
174
+ },
175
+ "button-secondary-hover-color-text": {
176
+ "value": "{color.interactive.hover}",
177
+ "type": "color"
178
+ },
179
+ "button-secondary-hover-border": {
180
+ "value": {
181
+ "width": "{borderWidth.m}",
182
+ "style": "solid",
183
+ "color": "{color.interactive.hover}"
184
+ },
185
+ "type": "border"
186
+ },
187
+ "button-secondary-focus-color-bg": {
188
+ "value": "{color.greyscale.100}",
189
+ "type": "color"
190
+ },
191
+ "button-secondary-focus-color-text": {
192
+ "value": "{color.interactive.hover}",
193
+ "type": "color"
194
+ },
195
+ "button-secondary-focus-border": {
196
+ "value": {
197
+ "width": "{borderWidth.m}",
198
+ "style": "solid",
199
+ "color": "{color.interactive.hover}"
200
+ },
201
+ "type": "border"
202
+ },
203
+ "button-secondary-destructive-color-text": {
204
+ "value": "{color.emergency.default}",
205
+ "type": "color"
206
+ },
207
+ "button-secondary-destructive-border": {
208
+ "value": {
209
+ "width": "{borderWidth.m}",
210
+ "style": "solid",
211
+ "color": "{color.emergency.default}"
212
+ },
213
+ "type": "border"
214
+ },
215
+ "button-secondary-destructive-hover-border": {
216
+ "value": {
217
+ "width": "{borderWidth.m}",
218
+ "style": "solid",
219
+ "color": "{color.emergency.dark}"
220
+ },
221
+ "type": "border"
222
+ },
223
+ "button-secondary-destructive-hover-color-text": {
224
+ "value": "{color.emergency.dark}",
225
+ "type": "color"
226
+ },
227
+ "button-secondary-destructive-focus-color-text": {
228
+ "value": "{color.emergency.dark}",
229
+ "type": "color"
230
+ },
231
+ "button-secondary-inverse-color-text": {
232
+ "value": "{color.greyscale.white}",
233
+ "type": "color"
234
+ },
235
+ "button-secondary-inverse-color-bg": {
236
+ "value": "none",
237
+ "type": "color"
238
+ },
239
+ "button-secondary-inverse-hover-color-text": {
240
+ "value": "{color.interactive.hover}",
241
+ "type": "color"
242
+ },
243
+ "button-secondary-inverse-focus-color-text": {
244
+ "value": "{color.interactive.hover}",
245
+ "type": "color"
246
+ },
247
+ "button-secondary-destructive-focus-border": {
248
+ "value": {
249
+ "width": "{borderWidth.m}",
250
+ "style": "solid",
251
+ "color": "{color.emergency.dark}"
252
+ },
253
+ "type": "border"
254
+ },
255
+ "button-secondary-inverse-border": {
256
+ "value": {
257
+ "width": "{borderWidth.m}",
258
+ "style": "solid",
259
+ "color": "{color.greyscale.white}"
260
+ },
261
+ "type": "border"
262
+ },
263
+ "button-secondary-inverse-hover-border": {
264
+ "value": {
265
+ "width": "{borderWidth.m}",
266
+ "style": "solid",
267
+ "color": "{color.interactive.hover}"
268
+ },
269
+ "type": "border"
270
+ },
271
+ "button-secondary-inverse-focus-border": {
272
+ "value": {
273
+ "width": "{borderWidth.m}",
274
+ "style": "solid",
275
+ "color": "{color.interactive.hover}"
276
+ },
277
+ "type": "border"
278
+ },
279
+ "button-tertiary-color-bg": {
280
+ "value": "none",
281
+ "type": "color"
282
+ },
283
+ "button-tertiary-color-bg-mobile": {
284
+ "value": "{color.greyscale.100}",
285
+ "type": "color"
286
+ },
287
+ "button-tertiary-color-text": {
288
+ "value": "{color.interactive.default}",
289
+ "type": "color"
290
+ },
291
+ "button-tertiary-border": {
292
+ "value": {
293
+ "color": "rgba(0,0,0,0)",
294
+ "width": "{borderWidth.none}",
295
+ "style": "solid"
296
+ },
297
+ "type": "border"
298
+ },
299
+ "button-tertiary-hover-color-bg": {
300
+ "value": "{color.greyscale.100}",
301
+ "type": "color"
302
+ },
303
+ "button-tertiary-hover-color-text": {
304
+ "value": "{color.interactive.hover}",
305
+ "type": "color"
306
+ },
307
+ "button-tertiary-focus-color-bg": {
308
+ "value": "{color.greyscale.100}",
309
+ "type": "color"
310
+ },
311
+ "button-tertiary-focus-color-text": {
312
+ "value": "{color.interactive.hover}",
313
+ "type": "color"
314
+ },
315
+ "button-tertiary-destructive-color-text": {
316
+ "value": "{color.emergency.default}",
317
+ "type": "color"
318
+ },
319
+ "button-tertiary-destructive-hover-color-text": {
320
+ "value": "{color.emergency.dark}",
321
+ "type": "color"
322
+ },
323
+ "button-tertiary-destructive-focus-color-text": {
324
+ "value": "{color.emergency.dark}",
325
+ "type": "color"
326
+ },
327
+ "button-tertiary-inverse-color-text": {
328
+ "value": "{color.greyscale.white}",
329
+ "type": "color"
330
+ },
331
+ "button-tertiary-inverse-hover-color-text": {
332
+ "value": "{color.interactive.hover}",
333
+ "type": "color"
334
+ },
335
+ "button-tertiary-inverse-focus-color-text": {
336
+ "value": "{color.interactive.hover}",
337
+ "type": "color"
338
+ },
339
+ "button-letter-spacing": {
340
+ "value": "0.0125rem",
341
+ "type": "letterSpacing",
342
+ "description": "subtle letter spacing in the button for better readability"
25
343
  }
26
344
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "button-group-gap": {
3
+ "value": "{space.m}",
4
+ "type": "spacing",
5
+ "description": "16px"
6
+ },
7
+ "button-group-compact-gap": {
8
+ "value": "{space.s}",
9
+ "type": "spacing",
10
+ "description": "12px"
11
+ }
12
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "checkbox-border": {
3
+ "value": {
4
+ "width": "{borderWidth.s}",
5
+ "style": "solid",
6
+ "color": "{color.greyscale.700}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "checkbox-border-disabled": {
11
+ "value": {
12
+ "width": "{borderWidth.s}",
13
+ "style": "solid",
14
+ "color": "{color.greyscale.400}"
15
+ },
16
+ "type": "border"
17
+ },
18
+ "checkbox-border-disabled-error": {
19
+ "value": {
20
+ "width": "{borderWidth.m}",
21
+ "style": "solid",
22
+ "color": "#F58185"
23
+ },
24
+ "type": "border"
25
+ },
26
+ "checkbox-border-error": {
27
+ "value": {
28
+ "width": "{borderWidth.m}",
29
+ "style": "solid",
30
+ "color": "{color.interactive.error}"
31
+ },
32
+ "type": "border"
33
+ },
34
+ "checkbox-border-focus": {
35
+ "value": {
36
+ "width": "{borderWidth.l}",
37
+ "style": "solid",
38
+ "color": "{color.interactive.focus}"
39
+ },
40
+ "type": "border"
41
+ },
42
+ "checkbox-border-hover": {
43
+ "value": {
44
+ "width": "{borderWidth.m}",
45
+ "style": "solid",
46
+ "color": "{color.interactive.hover}"
47
+ },
48
+ "type": "border"
49
+ },
50
+ "checkbox-border-radius": {
51
+ "value": "2px",
52
+ "type": "borderRadius",
53
+ "description": "2px"
54
+ },
55
+ "checkbox-color-bg": {
56
+ "value": "{color.greyscale.white}",
57
+ "type": "color"
58
+ },
59
+ "checkbox-color-bg-checked": {
60
+ "value": "{color.interactive.default}",
61
+ "type": "color"
62
+ },
63
+ "checkbox-color-bg-checked-disabled": {
64
+ "value": "{color.interactive.disabled}",
65
+ "type": "color"
66
+ },
67
+ "checkbox-color-bg-checked-error": {
68
+ "value": "{color.interactive.error}",
69
+ "type": "color"
70
+ },
71
+ "checkbox-color-bg-checked-hover": {
72
+ "value": "{color.interactive.hover}",
73
+ "type": "color"
74
+ },
75
+ "checkbox-color-label": {
76
+ "value": "{color.text.default}",
77
+ "type": "color"
78
+ },
79
+ "checkbox-color-label-disabled": {
80
+ "value": "{color.greyscale.500}",
81
+ "type": "color"
82
+ },
83
+ "checkbox-description-font-size": {
84
+ "value": "{typography.body.xs}",
85
+ "type": "other"
86
+ },
87
+ "checkbox-gap": {
88
+ "value": "{space.xs}",
89
+ "type": "spacing"
90
+ },
91
+ "checkbox-label-font-size": {
92
+ "value": "{typography.body.m}",
93
+ "type": "other"
94
+ },
95
+ "checkbox-size": {
96
+ "value": "{space.l}",
97
+ "type": "sizing"
98
+ }
99
+ }