@abgov/design-tokens 1.10.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 (34) 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/goa-global-design-tokens.json +571 -145
  31. package/dist/tokens.css +812 -430
  32. package/dist/tokens.scss +958 -576
  33. package/lib/design-tokens.js +43 -9
  34. package/package.json +1 -1
@@ -1,13 +1,17 @@
1
1
  {
2
+ "app-header-color-bg": {
3
+ "value": "{color.greyscale.white}",
4
+ "type": "color"
5
+ },
2
6
  "app-header-border-bottom": {
3
7
  "value": {
4
8
  "width": "{borderWidth.s}",
5
9
  "style": "solid",
6
- "color": "{color.greyscale.200}"
10
+ "color": "{color.greyscale.150}"
7
11
  },
8
12
  "type": "border"
9
13
  },
10
- "app-header-service-name-border-focus": {
14
+ "app-header-border-focus": {
11
15
  "value": {
12
16
  "width": "{borderWidth.l}",
13
17
  "style": "solid",
@@ -15,296 +19,246 @@
15
19
  },
16
20
  "type": "border"
17
21
  },
18
- "app-header-border-bottom-menu-item": {
19
- "value": "inset 0 -1px 0 0 {color.greyscale.200}",
20
- "type": "other"
22
+ "app-header-padding-h-desktop": {
23
+ "value": "{space.2xl}",
24
+ "type": "spacing",
25
+ "description": "Header horizontal padding on desktop"
21
26
  },
22
- "app-header-border-focus": {
23
- "value": {
24
- "width": "{borderWidth.l}",
25
- "style": "solid",
26
- "color": "{color.interactive.focus}"
27
- },
28
- "type": "border"
27
+ "app-header-padding-h-mobile": {
28
+ "value": "{space.m}",
29
+ "type": "spacing",
30
+ "description": "Header horizontal padding on mobile"
29
31
  },
30
- "app-header-border-nav-item-current": {
31
- "value": {
32
- "width": "{space.2xs}",
33
- "style": "solid",
34
- "color": "{color.interactive.default}"
35
- },
36
- "type": "border"
32
+ "app-header-padding-v": {
33
+ "value": "{space.s}",
34
+ "type": "spacing",
35
+ "description": "Header vertical padding"
37
36
  },
38
- "app-header-border-nav-item-current-focus": {
39
- "value": {
40
- "width": "{space.2xs}",
41
- "style": "solid",
42
- "color": "{color.interactive.hover}"
43
- },
44
- "type": "border"
37
+ "app-header-padding-desktop": {
38
+ "value": "{space.2xl}",
39
+ "type": "spacing"
45
40
  },
46
- "app-header-border-nav-item-current-hover": {
47
- "value": {
48
- "width": "{space.2xs}",
49
- "style": "solid",
50
- "color": "{color.interactive.hover}"
51
- },
52
- "type": "border"
41
+ "app-header-padding-mobile": {
42
+ "value": "{space.m}",
43
+ "type": "spacing"
53
44
  },
54
- "app-header-color-text-nav-item-in-menu-current": {
55
- "value": "{color.text.light}",
56
- "type": "color"
45
+ "app-header-padding-tablet": {
46
+ "value": "{space.xl}",
47
+ "type": "spacing"
57
48
  },
58
- "app-header-color-text-nav-item-in-menu-current-hover": {
59
- "value": "{color.text.light}",
49
+ "app-header-logo-desktop-height": {
50
+ "value": "{space.xl}",
51
+ "type": "sizing",
52
+ "description": "Desktop logo height (width scales proportionally)"
53
+ },
54
+ "app-header-logo-mobile-size": {
55
+ "value": "{space.xl}",
56
+ "type": "sizing",
57
+ "description": "Mobile square logo size"
58
+ },
59
+ "app-header-logo-service-gap": {
60
+ "value": "{space.2xl}",
61
+ "type": "spacing",
62
+ "description": "Gap between logo and service name (32px)"
63
+ },
64
+ "app-header-logo-service-gap-small-screen": {
65
+ "value": "{space.l}",
66
+ "type": "spacing",
67
+ "description": "Gap between logo and service name on small screen (24px)"
68
+ },
69
+ "app-header-color-service-name": {
70
+ "value": "{color.text.default}",
60
71
  "type": "color"
61
72
  },
62
- "app-header-border-nav-item-default": {
63
- "value": {
64
- "width": "{space.2xs}",
65
- "style": "solid",
66
- "color": "transparent"
67
- },
68
- "type": "border"
73
+ "app-header-typography-service-name": {
74
+ "value": "{typography.heading.xs}",
75
+ "type": "other"
69
76
  },
70
- "app-header-border-nav-item-focus": {
77
+ "app-header-typography-service-name-mobile": {
71
78
  "value": {
72
- "width": "{space.2xs}",
73
- "style": "solid",
74
- "color": "{color.interactive.hover}"
79
+ "fontFamily": "{fontFamily.sans}",
80
+ "fontWeight": "{fontWeight.semiBold}",
81
+ "fontSize": "{fontSize.3}",
82
+ "lineHeight": "{lineHeight.1}",
83
+ "letterSpacing": "{letterSpacing.3xs}"
75
84
  },
76
- "type": "border"
85
+ "type": "typography"
77
86
  },
78
- "app-header-border-nav-item-hover": {
87
+ "app-header-service-name-border-focus": {
79
88
  "value": {
80
- "width": "{space.2xs}",
89
+ "width": "{borderWidth.l}",
81
90
  "style": "solid",
82
- "color": "{color.interactive.hover}"
91
+ "color": "{color.interactive.focus}"
83
92
  },
84
93
  "type": "border"
85
94
  },
86
- "app-header-border-top-menu-item": {
87
- "value": "inset 0 1px 0 0 {color.greyscale.200}",
88
- "type": "other"
89
- },
90
- "app-header-color-bg": {
91
- "value": "{color.greyscale.white}",
92
- "type": "color"
93
- },
94
- "app-header-color-bg-menu-button-focus": {
95
- "value": "{color.greyscale.100}",
96
- "type": "color"
97
- },
98
- "app-header-color-bg-menu-button-hover": {
99
- "value": "{color.greyscale.100}",
100
- "type": "color"
101
- },
102
- "app-header-color-bg-nav-item": {
103
- "value": "{color.greyscale.white}",
104
- "type": "color"
105
- },
106
- "app-header-color-bg-nav-item-current": {
107
- "value": "{color.greyscale.white}",
108
- "type": "color"
95
+ "app-header-max-width-service-name": {
96
+ "value": "40rem",
97
+ "type": "dimension"
109
98
  },
110
- "app-header-color-bg-nav-item-focus": {
111
- "value": "{color.greyscale.white}",
112
- "type": "color"
99
+ "app-header-min-width-service-name": {
100
+ "value": "13rem",
101
+ "type": "dimension"
113
102
  },
114
- "app-header-color-bg-nav-item-hover": {
115
- "value": "{color.greyscale.white}",
116
- "type": "color"
103
+ "app-header-subline-color": {
104
+ "value": "{color.text.secondary}",
105
+ "type": "color",
106
+ "description": "Subline text color"
117
107
  },
118
- "app-header-color-bg-nav-item-in-menu-current": {
119
- "value": "{color.interactive.default}",
120
- "type": "color"
108
+ "app-header-subline-typography-desktop": {
109
+ "value": "{typography.body.s}",
110
+ "type": "other",
111
+ "description": "Subline typography on desktop"
121
112
  },
122
- "app-header-nav-color-text-link-item": {
123
- "value": "{color.interactive.default}",
124
- "type": "color"
113
+ "app-header-subline-typography-mobile": {
114
+ "value": "{typography.body.xs}",
115
+ "type": "other",
116
+ "description": "Subline typography on mobile"
125
117
  },
126
- "app-header-nav-color-text-link-item-hover": {
127
- "value": "{color.interactive.hover}",
128
- "type": "color"
118
+ "app-header-service-name-subline-gap": {
119
+ "value": "{space.3xs}",
120
+ "type": "spacing",
121
+ "description": "Vertical gap between service name and subline"
129
122
  },
130
- "app-header-nav-color-text-link-item-focus": {
131
- "value": "{color.interactive.hover}",
132
- "type": "color"
123
+ "app-header-service-phase-gap-horizontal": {
124
+ "value": "{space.m}",
125
+ "type": "spacing",
126
+ "description": "Horizontal gap between service name and phase badge (desktop)"
133
127
  },
134
- "app-header-color-bg-nav-item-in-menu-current-hover": {
135
- "value": "{color.interactive.hover}",
136
- "type": "color"
128
+ "app-header-service-phase-gap-vertical": {
129
+ "value": "6px",
130
+ "type": "spacing",
131
+ "description": "Vertical gap between service name and phase badge (mobile)"
137
132
  },
138
- "app-header-color-bg-nav-item-child-hover": {
139
- "value": "{color.greyscale.100}",
140
- "type": "color"
133
+ "app-header-service-phase-row-gap": {
134
+ "value": "{space.xs}",
135
+ "type": "spacing",
136
+ "description": "Vertical gap when service name and phase badge wrap to multiple rows"
141
137
  },
142
- "app-header-color-bg-nav-item-child-focus": {
143
- "value": "{color.greyscale.100}",
144
- "type": "color"
138
+ "app-header-utilities-gap": {
139
+ "value": "{space.s}",
140
+ "type": "spacing",
141
+ "description": "Gap between utility items"
145
142
  },
146
- "app-header-color-menu-button": {
147
- "value": "{color.text.default}",
148
- "type": "color"
143
+ "app-header-nav-bar-bg": {
144
+ "value": "{color.greyscale.50}",
145
+ "type": "color",
146
+ "description": "Navigation bar background color"
149
147
  },
150
- "app-header-color-menu-button-focus": {
151
- "value": "{color.interactive.hover}",
152
- "type": "color"
153
- },
154
- "app-header-color-menu-button-hover": {
155
- "value": "{color.interactive.hover}",
156
- "type": "color"
157
- },
158
- "app-header-color-service-name": {
159
- "value": "{color.text.default}",
160
- "type": "color"
148
+ "app-header-nav-item-gap": {
149
+ "value": "{space.m}",
150
+ "type": "spacing",
151
+ "description": "Gap between navigation items in the nav bar"
161
152
  },
162
153
  "app-header-color-text-nav-item": {
163
- "value": "{color.text.default}",
154
+ "value": "{color.text.secondary}",
164
155
  "type": "color"
165
156
  },
166
157
  "app-header-color-text-nav-item-current": {
167
- "value": "{color.text.default}",
158
+ "value": "{color.text.secondary}",
168
159
  "type": "color"
169
160
  },
170
- "app-header-color-text-nav-item-focus": {
171
- "value": "{color.interactive.hover}",
172
- "type": "color"
161
+ "app-header-nav-text-color": {
162
+ "value": "{color.text.secondary}",
163
+ "type": "color",
164
+ "description": "Navigation item text color"
173
165
  },
174
- "app-header-color-text-nav-item-hover": {
175
- "value": "{color.interactive.hover}",
176
- "type": "color"
166
+ "app-header-typography-nav-item": {
167
+ "value": {
168
+ "fontFamily": "{fontFamily.sans}",
169
+ "fontWeight": "{fontWeight.medium}",
170
+ "fontSize": "{fontSize.3}",
171
+ "lineHeight": "{lineHeight.2}",
172
+ "letterSpacing": "{letterSpacing.3xs}"
173
+ },
174
+ "type": "typography"
177
175
  },
178
- "app-header-max-width-service-name": {
179
- "value": "28rem",
180
- "type": "dimension"
176
+ "app-header-padding-nav-item": {
177
+ "value": "{space.2xs} {space.2xs} 0 {space.2xs}",
178
+ "type": "spacing",
179
+ "description": "Navigation item padding (4px 4px 0 4px)"
181
180
  },
182
- "app-header-min-width-service-name": {
183
- "value": "8rem",
181
+ "app-header-height-nav-item": {
182
+ "value": "{space.2xl}",
184
183
  "type": "dimension"
185
184
  },
186
- "app-header-padding-desktop": {
187
- "value": "{space.3xl}",
188
- "type": "spacing"
189
- },
190
- "app-header-padding-link-item": {
191
- "value": "{space.m}",
192
- "type": "spacing"
193
- },
194
- "app-header-padding-logo": {
195
- "value": "14px {space.xl} {space.m} 0px",
196
- "type": "spacing"
197
- },
198
- "app-header-padding-logo-mobile": {
199
- "value": "{space.s} {space.m}",
200
- "type": "spacing"
185
+ "app-header-border-nav-item-default": {
186
+ "value": {
187
+ "width": "{borderWidth.xl}",
188
+ "style": "solid",
189
+ "color": "transparent"
190
+ },
191
+ "type": "border"
201
192
  },
202
- "app-header-padding-menu-button": {
203
- "value": "{space.m} {space.s}",
204
- "type": "spacing"
193
+ "app-header-border-nav-item-hover": {
194
+ "value": {
195
+ "width": "{borderWidth.xl}",
196
+ "style": "solid",
197
+ "color": "{color.greyscale.200}"
198
+ },
199
+ "type": "border"
205
200
  },
206
- "app-header-padding-mobile": {
207
- "value": "{space.m}",
208
- "type": "spacing"
201
+ "app-header-border-nav-item-current": {
202
+ "value": {
203
+ "width": "{borderWidth.xl}",
204
+ "style": "solid",
205
+ "color": "{color.interactive.default}"
206
+ },
207
+ "type": "border"
209
208
  },
210
- "app-header-padding-nav-item": {
211
- "value": "{space.m} {space.s}",
212
- "type": "spacing"
209
+ "app-header-nav-active-indicator-color": {
210
+ "value": "{color.interactive.default}",
211
+ "type": "color",
212
+ "description": "Active navigation indicator color"
213
213
  },
214
- "app-header-padding-nav-item-with-children": {
215
- "value": "{space.m} {space.s} {space.s}",
216
- "type": "spacing"
214
+ "app-header-nav-hover-indicator-color": {
215
+ "value": "{color.greyscale.200}",
216
+ "type": "color",
217
+ "description": "Hover navigation indicator color"
217
218
  },
218
219
  "app-header-padding-nav-item-in-menu": {
219
- "value": "9px {space.m}",
220
- "type": "spacing"
221
- },
222
- "app-header-padding-secondary-nav-item-in-menu-mobile": {
223
- "value": "9px {space.m} 9px 80px",
224
- "type": "spacing"
225
- },
226
- "app-header-padding-secondary-nav-item-in-menu": {
227
- "value": "9px {space.m} 9px {space.xl}",
228
- "type": "spacing"
229
- },
230
- "app-header-padding-tablet": {
231
- "value": "{space.xl}",
232
- "type": "spacing"
233
- },
234
- "app-header-size-logo": {
235
- "value": "{space.xl}",
236
- "type": "sizing"
237
- },
238
- "app-header-size-logo-mobile": {
239
- "value": "{space.l}",
240
- "type": "sizing"
241
- },
242
- "app-header-space-btw-logo-service-name": {
243
- "value": "{space.m}",
244
- "type": "spacing"
245
- },
246
- "app-header-space-btw-logo-service-name-mobile": {
247
220
  "value": "{space.xs}",
248
- "type": "spacing"
249
- },
250
- "app-header-space-btw-service-name-nav-items-mobile": {
251
- "value": "{space.l}",
252
- "type": "spacing"
253
- },
254
- "app-header-typography-menu-button": {
255
- "value": "{typography.body.m}",
256
- "type": "other"
257
- },
258
- "app-header-typography-menu-button-mobile": {
259
- "value": "{typography.body.s}",
260
- "type": "other"
261
- },
262
- "app-header-typography-nav-item": {
263
- "value": "{typography.heading.s}",
264
- "type": "other"
265
- },
266
- "app-header-typography-menu-item": {
267
- "value": "{typography.body.m}",
268
- "type": "other"
269
- },
270
- "app-header-typography-link-item": {
271
- "value": "{typography.body.m}",
272
- "type": "other"
273
- },
274
- "app-header-typography-service-name": {
275
- "value": "{typography.body.m}",
276
- "type": "other"
277
- },
278
- "app-header-typography-service-name-mobile": {
279
- "value": "{typography.body.s}",
280
- "type": "other"
281
- },
282
- "app-header-height-nav-item": {
283
- "value": "{space.3xl}",
284
- "type": "dimension"
221
+ "type": "spacing",
222
+ "description": "Padding around the menu container (not individual items)"
285
223
  },
286
- "app-header-height-nav-item-mobile": {
287
- "value": "50px",
288
- "type": "dimension"
224
+ "app-header-padding-secondary-nav-item-in-menu": {
225
+ "value": "{space.s} {space.xs} {space.s} {space.l}",
226
+ "type": "spacing",
227
+ "description": "Padding for child items in More menu (12px 8px 12px 24px)"
289
228
  },
290
- "app-header-nav-color-bg-link-item": {
291
- "value": "transparent",
229
+ "app-header-color-text-nav-item-in-menu-current": {
230
+ "value": "{color.text.secondary}",
292
231
  "type": "color"
293
232
  },
294
- "app-header-nav-color-bg-link-item-hover": {
295
- "value": "transparent",
233
+ "app-header-color-text-nav-item-in-menu-current-hover": {
234
+ "value": "{color.text.secondary}",
296
235
  "type": "color"
297
236
  },
298
- "app-header-nav-color-bg-link-item-focus": {
299
- "value": "transparent",
237
+ "app-header-color-bg-nav-item-in-menu-current": {
238
+ "value": "{color.interactive.default}",
300
239
  "type": "color"
301
240
  },
302
- "app-header-nav-color-bg-link-item-in-menu": {
303
- "value": "transparent",
241
+ "app-header-color-bg-nav-item-in-menu-current-hover": {
242
+ "value": "{color.interactive.hover}",
304
243
  "type": "color"
305
244
  },
306
- "app-header-nav-color-bg-link-item-in-menu-focus": {
245
+ "app-header-color-bg-nav-item-child-hover": {
307
246
  "value": "{color.greyscale.100}",
308
247
  "type": "color"
248
+ },
249
+ "app-header-nav-menu-dropdown-shadow": {
250
+ "value": "drop-shadow(0px 12px 16px rgba(16,29,40,0.08)) drop-shadow(0px 4px 6px rgba(16,29,40,0.03))",
251
+ "type": "other",
252
+ "description": "Shadow for navigation dropdown menus (uses filter: drop-shadow)"
253
+ },
254
+ "app-header-nav-menu-dropdown-border": {
255
+ "value": "{borderWidth.2xs} solid {color.greyscale.150}",
256
+ "type": "other",
257
+ "description": "Border for navigation dropdown menus"
258
+ },
259
+ "app-header-nav-menu-dropdown-gap": {
260
+ "value": "3px",
261
+ "type": "spacing",
262
+ "description": "Gap between nav button and dropdown menu"
309
263
  }
310
- }
264
+ }
@@ -1,4 +1,36 @@
1
1
  {
2
+ "icon-button-small-padding": {
3
+ "value": "{space.2xs}",
4
+ "type": "spacing"
5
+ },
6
+ "icon-button-medium-padding": {
7
+ "value": "{space.xs}",
8
+ "type": "spacing"
9
+ },
10
+ "icon-button-large-padding": {
11
+ "value": "{space.s}",
12
+ "type": "spacing"
13
+ },
14
+ "icon-button-border-radius": {
15
+ "value": "{borderRadius.m}",
16
+ "type": "borderRadius"
17
+ },
18
+ "icon-button-focus-border-width": {
19
+ "value": "{input.borderWidth.focus}",
20
+ "type": "borderWidth"
21
+ },
22
+ "icon-button-focus-border-color": {
23
+ "value": "{input.color.border.focus}",
24
+ "type": "color"
25
+ },
26
+ "icon-button-medium-border-radius": {
27
+ "value": "{borderRadius.m}",
28
+ "type": "borderRadius"
29
+ },
30
+ "icon-button-large-border-radius": {
31
+ "value": "{borderRadius.xl}",
32
+ "type": "borderRadius"
33
+ },
2
34
  "icon-button-default-color": {
3
35
  "value": "{color.interactive.default}",
4
36
  "type": "color"
@@ -7,10 +39,6 @@
7
39
  "value": "{color.interactive.hover}",
8
40
  "type": "color"
9
41
  },
10
- "icon-button-default-focus-color": {
11
- "value": "{color.interactive.hover}",
12
- "type": "color"
13
- },
14
42
  "icon-button-default-hover-color-bg": {
15
43
  "value": "{color.greyscale.100}",
16
44
  "type": "color"
@@ -24,7 +52,7 @@
24
52
  "type": "color"
25
53
  },
26
54
  "icon-button-light-hover-color-bg": {
27
- "value": "{color.greyscale.700}",
55
+ "value": "{color.greyscale.600}",
28
56
  "type": "color"
29
57
  },
30
58
  "icon-button-light-disabled-color": {
@@ -39,7 +67,7 @@
39
67
  "value": "{color.greyscale.100}",
40
68
  "type": "color"
41
69
  },
42
- "icon-button-dark-disabled-color-bg": {
70
+ "icon-button-dark-disabled-color": {
43
71
  "value": "{color.greyscale.500}",
44
72
  "type": "color"
45
73
  },
@@ -47,28 +75,16 @@
47
75
  "value": "{color.emergency.default}",
48
76
  "type": "color"
49
77
  },
78
+ "icon-button-destructive-hover-color": {
79
+ "value": "{color.emergency.dark}",
80
+ "type": "color"
81
+ },
50
82
  "icon-button-destructive-hover-color-bg": {
51
83
  "value": "{color.emergency.light}",
52
84
  "type": "color"
53
85
  },
54
86
  "icon-button-destructive-disabled-color": {
55
- "value": "{color.interactive.error-disabled}",
87
+ "value": "{color.greyscale.500}",
56
88
  "type": "color"
57
- },
58
- "icon-button-large-border-radius": {
59
- "value": "{borderRadius.xl}",
60
- "type": "borderRadius"
61
- },
62
- "icon-button-medium-border-radius": {
63
- "value": "{borderRadius.m}",
64
- "type": "borderRadius"
65
- },
66
- "icon-button-large-padding": {
67
- "value": "{space.xs}",
68
- "type": "spacing"
69
- },
70
- "icon-button-medium-padding": {
71
- "value": "{space.2xs}",
72
- "type": "spacing"
73
89
  }
74
- }
90
+ }