@abgov/design-tokens 1.10.0 → 2.0.1

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 +139 -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 +818 -430
  32. package/dist/tokens.scss +964 -576
  33. package/lib/design-tokens.js +43 -9
  34. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "accordion-color-bg-heading": {
3
- "value": "{color.greyscale.100}",
3
+ "value": "{color.greyscale.white}",
4
4
  "type": "color"
5
5
  },
6
6
  "accordion-color-bg-content": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "accordion-border": {
15
15
  "value": {
16
- "color": "{color.greyscale.200}",
16
+ "color": "{color.greyscale.100}",
17
17
  "width": "{borderWidth.s}",
18
18
  "style": "solid"
19
19
  },
@@ -21,22 +21,45 @@
21
21
  },
22
22
  "accordion-divider": {
23
23
  "value": {
24
- "color": "{color.greyscale.200}",
24
+ "color": "{color.greyscale.100}",
25
+ "width": "{borderWidth.s}",
26
+ "style": "solid"
27
+ },
28
+ "type": "border"
29
+ },
30
+ "accordion-divider-hover": {
31
+ "value": {
32
+ "color": "{color.greyscale.black}",
25
33
  "width": "{borderWidth.s}",
26
34
  "style": "solid"
27
35
  },
28
36
  "type": "border"
29
37
  },
30
38
  "accordion-border-radius": {
31
- "value": "{borderRadius.m}",
39
+ "value": "{borderRadius.xl}",
32
40
  "type": "borderRadius"
33
41
  },
42
+ "accordion-border-radius-focus": {
43
+ "value": "{borderRadius.xl} {borderRadius.xl} {borderRadius.xs} {borderRadius.xs}",
44
+ "type": "borderRadius",
45
+ "description": "when the accordion is focused and open"
46
+ },
34
47
  "accordion-padding-heading-icon-left": {
35
- "value": "{space.s} {space.m} {space.s} 0",
48
+ "value": "{space.xs} {space.m} {space.xs} 0",
36
49
  "type": "spacing",
37
50
  "description": "padding of accordion heading when icon is positioned on the left"
38
51
  },
39
52
  "accordion-padding-heading-icon-right": {
53
+ "value": "{space.xs} 0 {space.xs} {space.m}",
54
+ "type": "spacing",
55
+ "description": "padding of accordion heading when icon is positioned on the right"
56
+ },
57
+ "accordion-padding-heading-m-icon-left": {
58
+ "value": "{space.s} {space.m} {space.s} 0",
59
+ "type": "spacing",
60
+ "description": "padding of accordion heading when icon is positioned on the left"
61
+ },
62
+ "accordion-padding-heading-m-icon-right": {
40
63
  "value": "{space.s} 0 {space.s} {space.m}",
41
64
  "type": "spacing",
42
65
  "description": "padding of accordion heading when icon is positioned on the right"
@@ -50,20 +73,50 @@
50
73
  "type": "spacing"
51
74
  },
52
75
  "accordion-color-bg-heading-hover": {
53
- "value": "{color.greyscale.200}",
76
+ "value": "{color.greyscale.50}",
54
77
  "type": "color"
55
78
  },
56
79
  "accordion-color-heading-hover": {
57
80
  "value": "{color.text.default}",
58
81
  "type": "color"
59
82
  },
60
- "accordion-heading-s": {
61
- "value": "{typography.heading.s}",
62
- "type": "other"
83
+ "accordion-border-focus": {
84
+ "value": {
85
+ "color": "{color.interactive.focus}",
86
+ "width": "3px",
87
+ "style": "solid"
88
+ },
89
+ "type": "border"
90
+ },
91
+ "accordion-border-hover": {
92
+ "value": {
93
+ "color": "{color.greyscale.black}",
94
+ "width": "{borderWidth.s}",
95
+ "style": "solid"
96
+ },
97
+ "type": "border"
98
+ },
99
+ "accordion-heading": {
100
+ "value": {
101
+ "fontFamily": "{fontFamily.sans}",
102
+ "fontWeight": "{fontWeight.medium}",
103
+ "fontSize": "{fontSize.4}",
104
+ "lineHeight": "{lineHeight.4}",
105
+ "letterSpacing": "{letterSpacing.2xs}"
106
+ },
107
+ "type": "typography",
108
+ "description": "Small accordion heading - 16px/22px with -0.5px letter-spacing"
63
109
  },
64
110
  "accordion-heading-m": {
65
- "value": "{typography.heading.m}",
66
- "type": "other"
111
+ "value": {
112
+ "fontFamily": "{fontFamily.sans}",
113
+ "fontWeight": "{fontWeight.medium}",
114
+ "fontSize": "{fontSize.5}",
115
+ "lineHeight": "{lineHeight.5}",
116
+ "letterSpacing": "{letterSpacing.2xs}"
117
+ },
118
+ "type": "typography",
119
+ "description": "Medium accordion heading - 18px/24px with -0.5px letter-spacing"
67
120
  },
68
121
  "accordion-shadow": {
69
122
  "value": {
@@ -75,5 +128,33 @@
75
128
  "type": "dropShadow"
76
129
  },
77
130
  "type": "boxShadow"
131
+ },
132
+ "accordion-icon-color": {
133
+ "value": "{color.greyscale.black}",
134
+ "type": "color"
135
+ },
136
+ "accordion-icon-color-hover": {
137
+ "value": "{color.greyscale.black}",
138
+ "type": "color"
139
+ },
140
+ "accordion-heading-min-height": {
141
+ "value": "3rem",
142
+ "type": "size"
143
+ },
144
+ "accordion-heading-m-min-height": {
145
+ "value": "4rem",
146
+ "type": "size"
147
+ },
148
+ "accordion-heading-secondary-text": {
149
+ "value": "{typography.body.xs}",
150
+ "type": "other"
151
+ },
152
+ "accordion-heading-m-secondary-text": {
153
+ "value": "{typography.body.s}",
154
+ "type": "other"
155
+ },
156
+ "accordion-heading-secondary-text-color": {
157
+ "value": "{color.text.default}",
158
+ "type": "color"
78
159
  }
79
160
  }
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "badge-padding": {
3
- "value": "0px {space.xs}",
3
+ "value": "0 {space.xs}",
4
+ "type": "spacing",
5
+ "description": "0px 8px"
6
+ },
7
+ "badge-padding-large": {
8
+ "value": "0 {space.xs}",
4
9
  "type": "spacing",
5
10
  "description": "0px 8px"
6
11
  },
@@ -14,83 +19,191 @@
14
19
  "type": "fontSizes",
15
20
  "description": "14px"
16
21
  },
22
+ "badge-font-size-large": {
23
+ "value": "{fontSize.3}",
24
+ "type": "fontSizes",
25
+ "description": "16px"
26
+ },
17
27
  "badge-line-height": {
18
28
  "value": "{lineHeight.1}",
19
29
  "type": "lineHeights",
20
30
  "description": "20px"
21
31
  },
32
+ "badge-line-height-large": {
33
+ "value": "{lineHeight.2}",
34
+ "type": "lineHeights",
35
+ "description": "22px"
36
+ },
22
37
  "badge-icon-size": {
23
- "value": "{iconSize.1}",
38
+ "value": "{iconSize.s}",
24
39
  "type": "sizing",
25
- "description": "16px"
40
+ "description": "18px"
41
+ },
42
+ "badge-icon-size-large": {
43
+ "value": "{iconSize.m}",
44
+ "type": "sizing",
45
+ "description": "20px"
26
46
  },
27
47
  "badge-border-radius": {
28
- "value": "{borderRadius.m}",
48
+ "value": "{borderRadius.s}",
29
49
  "type": "borderRadius",
30
- "description": "4px"
50
+ "description": "6px"
51
+ },
52
+ "badge-border-width": {
53
+ "value": "{borderWidth.s}",
54
+ "type": "borderWidth",
55
+ "description": "1px"
56
+ },
57
+ "badge-height": {
58
+ "value": "24px",
59
+ "type": "sizing"
60
+ },
61
+ "badge-height-large": {
62
+ "value": "32px",
63
+ "type": "sizing"
31
64
  },
32
65
  "badge-info-color-bg": {
33
- "value": "{color.greyscale.100}",
66
+ "value": "{color.info.default}",
34
67
  "type": "color"
35
68
  },
36
69
  "badge-info-color-content": {
37
- "value": "{color.info.default}",
70
+ "value": "{color.info.textInverse}",
38
71
  "type": "color"
39
72
  },
73
+ "badge-info-subtle-color-bg": {
74
+ "value": "{color.info.light}",
75
+ "type": "color"
76
+ },
77
+ "badge-info-subtle-color-content": {
78
+ "value": "{color.info.textDark}",
79
+ "type": "color"
80
+ },
81
+ "badge-info-subtle-border": {
82
+ "value": "inset 0 0 0 {borderWidth.s} {color.info.border}",
83
+ "type": "dropShadow"
84
+ },
40
85
  "badge-success-color-bg": {
41
86
  "value": "{color.success.default}",
42
87
  "type": "color"
43
88
  },
44
89
  "badge-success-color-content": {
45
- "value": "{color.text.light}",
90
+ "value": "{color.success.textInverse}",
91
+ "type": "color"
92
+ },
93
+ "badge-success-subtle-color-bg": {
94
+ "value": "{color.success.light}",
46
95
  "type": "color"
47
96
  },
97
+ "badge-success-subtle-color-content": {
98
+ "value": "{color.success.textDark}",
99
+ "type": "color"
100
+ },
101
+ "badge-success-subtle-border": {
102
+ "value": "inset 0 0 0 {borderWidth.s} {color.success.border}",
103
+ "type": "dropShadow"
104
+ },
48
105
  "badge-important-color-bg": {
49
106
  "value": "{color.warning.default}",
50
107
  "type": "color"
51
108
  },
52
109
  "badge-important-color-content": {
53
- "value": "{color.text.default}",
110
+ "value": "{color.warning.textDark}",
111
+ "type": "color"
112
+ },
113
+ "badge-important-subtle-color-bg": {
114
+ "value": "{color.warning.light}",
115
+ "type": "color"
116
+ },
117
+ "badge-important-subtle-color-content": {
118
+ "value": "{color.warning.textDark}",
54
119
  "type": "color"
55
120
  },
121
+ "badge-important-subtle-border": {
122
+ "value": "inset 0 0 0 {borderWidth.s} {color.warning.border}",
123
+ "type": "dropShadow"
124
+ },
56
125
  "badge-emergency-color-bg": {
57
126
  "value": "{color.emergency.default}",
58
127
  "type": "color"
59
128
  },
60
129
  "badge-emergency-color-content": {
61
- "value": "{color.text.light}",
130
+ "value": "{color.emergency.textInverse}",
62
131
  "type": "color"
63
132
  },
64
- "badge-dark-color-bg": {
65
- "value": "{color.greyscale.black}",
133
+ "badge-emergency-subtle-color-bg": {
134
+ "value": "{color.emergency.light}",
66
135
  "type": "color"
67
136
  },
68
- "badge-dark-color-content": {
69
- "value": "{color.text.light}",
137
+ "badge-emergency-subtle-color-content": {
138
+ "value": "{color.emergency.textDark}",
70
139
  "type": "color"
71
140
  },
72
- "badge-midtone-color-bg": {
73
- "value": "{color.greyscale.700}",
141
+ "badge-emergency-subtle-border": {
142
+ "value": "inset 0 0 0 {borderWidth.s} {color.emergency.border}",
143
+ "type": "dropShadow"
144
+ },
145
+ "badge-default-color-bg": {
146
+ "value": "{color.greyscale.800}",
74
147
  "type": "color"
75
148
  },
76
- "badge-midtone-color-content": {
149
+ "badge-default-color-content": {
77
150
  "value": "{color.text.light}",
78
151
  "type": "color"
79
152
  },
80
- "badge-light-color-bg": {
153
+ "badge-default-subtle-color-bg": {
154
+ "value": "{color.greyscale.100}",
155
+ "type": "color"
156
+ },
157
+ "badge-default-subtle-color-content": {
158
+ "value": "{color.text.default}",
159
+ "type": "color"
160
+ },
161
+ "badge-default-subtle-border": {
162
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
163
+ "type": "dropShadow"
164
+ },
165
+ "badge-archived-color-bg": {
166
+ "value": "{color.greyscale.200}",
167
+ "type": "color"
168
+ },
169
+ "badge-archived-color-content": {
170
+ "value": "{color.greyscale.800}",
171
+ "type": "color"
172
+ },
173
+ "badge-archived-subtle-color-bg": {
81
174
  "value": "{color.greyscale.white}",
82
175
  "type": "color"
83
176
  },
84
- "badge-light-color-content": {
177
+ "badge-archived-subtle-color-content": {
85
178
  "value": "{color.text.default}",
86
179
  "type": "color"
87
180
  },
88
- "badge-height": {
89
- "value": "22px",
90
- "type": "sizing"
181
+ "badge-archived-subtle-border": {
182
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
183
+ "type": "dropShadow"
184
+ },
185
+ "badge-sky-subtle-border": {
186
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.sky.border}",
187
+ "type": "dropShadow"
188
+ },
189
+ "badge-prairie-subtle-border": {
190
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.prairie.border}",
191
+ "type": "dropShadow"
192
+ },
193
+ "badge-lilac-subtle-border": {
194
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.lilac.border}",
195
+ "type": "dropShadow"
196
+ },
197
+ "badge-pasture-subtle-border": {
198
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.pasture.border}",
199
+ "type": "dropShadow"
200
+ },
201
+ "badge-sunset-subtle-border": {
202
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.sunset.border}",
203
+ "type": "dropShadow"
91
204
  },
92
- "badge-border": {
93
- "value": "inset 0 0 {borderWidth.s} 0 rgba(0, 0, 0, 0.5)",
94
- "type": "other"
205
+ "badge-dawn-subtle-border": {
206
+ "value": "inset 0 0 0 {borderWidth.s} {color.extended.dawn.border}",
207
+ "type": "dropShadow"
95
208
  }
96
- }
209
+ }