@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
@@ -0,0 +1,138 @@
1
+ {
2
+ "radio-border": {
3
+ "value": {
4
+ "width": "{borderWidth.s}",
5
+ "style": "solid",
6
+ "color": "{color.greyscale.700}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "radio-border-checked": {
11
+ "value": {
12
+ "width": "7px",
13
+ "style": "solid",
14
+ "color": "{color.interactive.default}"
15
+ },
16
+ "type": "border"
17
+ },
18
+ "radio-border-checked-disabled": {
19
+ "value": {
20
+ "width": "7px",
21
+ "style": "solid",
22
+ "color": "{color.interactive.disabled}"
23
+ },
24
+ "type": "border"
25
+ },
26
+ "radio-border-checked-error": {
27
+ "value": {
28
+ "width": "7px",
29
+ "style": "solid",
30
+ "color": "{color.interactive.error}"
31
+ },
32
+ "type": "border"
33
+ },
34
+ "radio-border-checked-error-disabled": {
35
+ "value": {
36
+ "width": "7px",
37
+ "style": "solid",
38
+ "color": "#f58185"
39
+ },
40
+ "type": "border"
41
+ },
42
+ "radio-border-checked-error-hover": {
43
+ "value": {
44
+ "width": "7px",
45
+ "style": "solid",
46
+ "color": "#ba0000"
47
+ },
48
+ "type": "border"
49
+ },
50
+ "radio-border-checked-hover": {
51
+ "value": {
52
+ "width": "7px",
53
+ "style": "solid",
54
+ "color": "{color.interactive.hover}"
55
+ },
56
+ "type": "border"
57
+ },
58
+ "radio-border-disabled": {
59
+ "value": {
60
+ "width": "{borderWidth.s}",
61
+ "style": "solid",
62
+ "color": "{color.greyscale.400}"
63
+ },
64
+ "type": "border"
65
+ },
66
+ "radio-border-error": {
67
+ "value": {
68
+ "width": "{borderWidth.m}",
69
+ "style": "solid",
70
+ "color": "{color.interactive.error}"
71
+ },
72
+ "type": "border"
73
+ },
74
+ "radio-border-error-disabled": {
75
+ "value": {
76
+ "width": "{borderWidth.m}",
77
+ "style": "solid",
78
+ "color": "#f58185"
79
+ },
80
+ "type": "border"
81
+ },
82
+ "radio-border-error-hover": {
83
+ "value": {
84
+ "width": "{borderWidth.m}",
85
+ "style": "solid",
86
+ "color": "#ba0000"
87
+ },
88
+ "type": "border"
89
+ },
90
+ "radio-border-focus": {
91
+ "value": {
92
+ "width": "{borderWidth.l}",
93
+ "style": "solid",
94
+ "color": "{color.interactive.focus}"
95
+ },
96
+ "type": "border"
97
+ },
98
+ "radio-border-hover": {
99
+ "value": {
100
+ "width": "{borderWidth.m}",
101
+ "style": "solid",
102
+ "color": "{color.interactive.hover}"
103
+ },
104
+ "type": "border"
105
+ },
106
+ "radio-color-bg": {
107
+ "value": "{color.greyscale.white}",
108
+ "type": "color"
109
+ },
110
+ "radio-description": {
111
+ "value": "{typography.body.xs}",
112
+ "type": "other"
113
+ },
114
+ "radio-group-gap-horizontal": {
115
+ "value": "{space.l}",
116
+ "type": "spacing"
117
+ },
118
+ "radio-group-gap-vertical": {
119
+ "value": "{space.m}",
120
+ "type": "spacing"
121
+ },
122
+ "radio-label": {
123
+ "value": "{typography.body.m}",
124
+ "type": "other"
125
+ },
126
+ "radio-label-color-disabled": {
127
+ "value": "{color.greyscale.500}",
128
+ "type": "color"
129
+ },
130
+ "radio-size": {
131
+ "value": "{space.l}",
132
+ "type": "sizing"
133
+ },
134
+ "radio-border-radius": {
135
+ "value": "50%",
136
+ "type": "borderRadius"
137
+ }
138
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "scrollable-padding-desktop": {
3
+ "value": "2rem",
4
+ "type": "spacing",
5
+ "description": "32px"
6
+ },
7
+ "scrollable-padding-mobile": {
8
+ "value": "1.5rem",
9
+ "type": "spacing",
10
+ "description": "24px"
11
+ }
12
+ }
@@ -1,34 +1,186 @@
1
1
  {
2
- "side-menu-group-color-bg": {
2
+ "side-menu-border-right": {
3
+ "value": {
4
+ "width": "{borderWidth.s}",
5
+ "style": "solid",
6
+ "color": "{color.greyscale.200}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "side-menu-color-bg": {
3
11
  "value": "{color.greyscale.white}",
4
12
  "type": "color"
5
13
  },
6
- "side-menu-group-padding": {
14
+ "side-menu-color-bg-menu-item-current": {
15
+ "value": "#cedfee",
16
+ "type": "color"
17
+ },
18
+ "side-menu-color-bg-menu-item-hover": {
19
+ "value": "#cedfee",
20
+ "type": "color"
21
+ },
22
+ "side-menu-color-menu-item": {
23
+ "value": "{color.text.default}",
24
+ "type": "color"
25
+ },
26
+ "side-menu-heading-border": {
27
+ "value": {
28
+ "width": "{borderWidth.m}",
29
+ "style": "solid",
30
+ "color": "{color.greyscale.200}"
31
+ },
32
+ "type": "border"
33
+ },
34
+ "side-menu-heading-color": {
35
+ "value": "{color.text.secondary}",
36
+ "type": "color"
37
+ },
38
+ "side-menu-heading-color-bg": {
39
+ "value": "{color.greyscale.100}",
40
+ "type": "color"
41
+ },
42
+ "side-menu-heading-icon-gap": {
43
+ "value": "{space.xs}",
44
+ "type": "spacing"
45
+ },
46
+ "side-menu-heading-margin": {
47
+ "value": "{space.none} 0 0 0",
48
+ "type": "spacing"
49
+ },
50
+ "side-menu-heading-padding": {
51
+ "value": "{space.s} {space.s} {space.xs} {space.l}",
52
+ "type": "spacing"
53
+ },
54
+ "side-menu-heading-typography": {
55
+ "value": "{typography.heading.s}",
56
+ "type": "other"
57
+ },
58
+ "side-menu-icon-color": {
59
+ "value": "{color.text.secondary}",
60
+ "type": "color"
61
+ },
62
+ "side-menu-icon-size": {
63
+ "value": "{iconSize.l}",
64
+ "type": "sizing"
65
+ },
66
+ "side-menu-items-gap": {
7
67
  "value": "{space.none}",
8
68
  "type": "spacing"
9
69
  },
10
- "side-menu-sub-group-padding": {
11
- "value": "{space.none} {space.none} {space.none} {space.none}",
70
+ "side-menu-item-focus-border": {
71
+ "value": {
72
+ "width": "{borderWidth.l}",
73
+ "style": "solid",
74
+ "color": "{color.interactive.focus}"
75
+ },
76
+ "type": "border"
77
+ },
78
+ "side-menu-padding": {
79
+ "value": "{space.m} {space.none} {space.l} {space.none}",
12
80
  "type": "spacing"
13
81
  },
82
+ "side-menu-padding-item": {
83
+ "value": "{space.xs} {space.s} 10px {space.xl}",
84
+ "type": "spacing"
85
+ },
86
+ "side-menu-padding-child": {
87
+ "value": "{space.xs} {space.s} 10px {space.m}",
88
+ "type": "spacing"
89
+ },
90
+ "side-menu-parent-color-bg-hover": {
91
+ "value": "#cedfee",
92
+ "type": "color"
93
+ },
94
+ "side-menu-parent-color-bg-selected": {
95
+ "value": "#cedfee",
96
+ "type": "color"
97
+ },
14
98
  "side-menu-parent-padding": {
15
- "value": "{space.xs} {space.m} {space.xs} {space.xl}",
99
+ "value": "{space.xs} {space.s} 10px {space.xl}",
16
100
  "type": "spacing"
17
101
  },
102
+ "side-menu-sub-group-padding": {
103
+ "value": "{space.none} {space.none} {space.none} {space.none}",
104
+ "type": "spacing"
105
+ },
106
+ "side-menu-sub-item-border-left": {
107
+ "value": {
108
+ "width": "{borderWidth.xl}",
109
+ "style": "solid",
110
+ "color": "{color.greyscale.100}"
111
+ },
112
+ "type": "border"
113
+ },
114
+ "side-menu-sub-item-border-left-hover": {
115
+ "value": {
116
+ "width": "{borderWidth.xl}",
117
+ "style": "solid",
118
+ "color": "{color.greyscale.200}"
119
+ },
120
+ "type": "border"
121
+ },
122
+ "side-menu-sub-item-border-left-current": {
123
+ "value": {
124
+ "width": "{borderWidth.xl}",
125
+ "style": "solid",
126
+ "color": "{color.interactive.disabled}"
127
+ },
128
+ "type": "border"
129
+ },
130
+ "side-menu-sub-item-color-bg": {
131
+ "value": "none",
132
+ "type": "color"
133
+ },
134
+ "side-menu-sub-item-color-bg-current": {
135
+ "value": "{color.info.background}",
136
+ "type": "color"
137
+ },
138
+ "side-menu-sub-item-color-bg-hover": {
139
+ "value": "{color.info.background}",
140
+ "type": "color"
141
+ },
142
+ "side-menu-width": {
143
+ "value": "256px",
144
+ "type": "sizing"
145
+ },
18
146
  "side-menu-group-border-radius": {
19
147
  "value": "{borderRadius.none}",
20
148
  "type": "borderRadius"
21
149
  },
22
- "side-menu-child-border-width": {
23
- "value": "4px",
24
- "type": "borderWidth"
25
- },
26
- "side-menu-parent-color-bg-hover": {
27
- "value": "#CEDFEE",
150
+ "side-menu-group-color-bg": {
151
+ "value": "{color.greyscale.white}",
28
152
  "type": "color"
29
153
  },
30
- "side-menu-parent-color-bg-selected": {
31
- "value": "#CEDFEE",
154
+ "side-menu-group-padding": {
155
+ "value": "{space.none}",
156
+ "type": "spacing"
157
+ },
158
+ "side-menu-child-border-left": {
159
+ "value": {
160
+ "width": "{borderWidth.xl}",
161
+ "style": "solid",
162
+ "color": "{color.greyscale.100}"
163
+ },
164
+ "type": "border"
165
+ },
166
+ "side-menu-child-border-left-hover": {
167
+ "value": {
168
+ "width": "{borderWidth.xl}",
169
+ "style": "solid",
170
+ "color": "{color.greyscale.200}"
171
+ },
172
+ "type": "border"
173
+ },
174
+ "side-menu-child-border-left-selected": {
175
+ "value": {
176
+ "width": "{borderWidth.xl}",
177
+ "style": "solid",
178
+ "color": "{color.interactive.disabled}"
179
+ },
180
+ "type": "border"
181
+ },
182
+ "side-menu-child-color-bg": {
183
+ "value": "none",
32
184
  "type": "color"
33
185
  },
34
186
  "side-menu-child-color-bg-hover": {
@@ -43,12 +195,17 @@
43
195
  "value": "{color.text.default}",
44
196
  "type": "color"
45
197
  },
46
- "side-menu-parent-text": {
198
+ "side-menu-typography-item": {
47
199
  "value": "{typography.body.m}",
48
200
  "type": "other"
49
201
  },
50
- "side-menu-parent-text-active": {
51
- "value": "{typography.body.m}",
202
+ "side-menu-typography-item-current": {
203
+ "value": "{typography.heading.s}",
52
204
  "type": "other"
205
+ },
206
+ "side-menu-child-border-width": {
207
+ "value": "{borderWidth.xl}",
208
+ "type": "borderWidth",
209
+ "description": "4px"
53
210
  }
54
- }
211
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "skeleton-loading-color-bg": {
3
+ "value": "{color.greyscale.100}",
4
+ "type": "color"
5
+ }
6
+ }
@@ -6,5 +6,9 @@
6
6
  "table-color-border-heading": {
7
7
  "value": "{color.greyscale.600}",
8
8
  "type": "color"
9
+ },
10
+ "goa-table-header-padding": {
11
+ "value": "{space.m}",
12
+ "type": "sizing"
9
13
  }
10
14
  }
@@ -0,0 +1,78 @@
1
+ {
2
+ "tab-border-focus": {
3
+ "value": {
4
+ "width": "{borderWidth.l}",
5
+ "style": "solid",
6
+ "color": "{color.interactive.focus}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "tab-border-hover": {
11
+ "value": {
12
+ "width": "{borderWidth.xl}",
13
+ "style": "solid",
14
+ "color": "{color.greyscale.200}"
15
+ },
16
+ "type": "border"
17
+ },
18
+ "tab-border-not-selected": {
19
+ "value": {
20
+ "width": "{borderWidth.xl}",
21
+ "style": "solid",
22
+ "color": "transparent"
23
+ },
24
+ "type": "border"
25
+ },
26
+ "tab-border-selected": {
27
+ "value": {
28
+ "width": "{borderWidth.xl}",
29
+ "style": "solid",
30
+ "color": "{color.interactive.default}"
31
+ },
32
+ "type": "border"
33
+ },
34
+ "tab-color-bg-selected": {
35
+ "value": "transparent",
36
+ "type": "color"
37
+ },
38
+ "tab-color-bg-selected-small-screen": {
39
+ "value": "{color.info.background}",
40
+ "type": "color"
41
+ },
42
+ "tab-padding": {
43
+ "value": "{space.xs} {space.m}",
44
+ "type": "spacing"
45
+ },
46
+ "tab-padding-mobile": {
47
+ "value": "6px {space.m}",
48
+ "type": "spacing"
49
+ },
50
+ "tab-text-color": {
51
+ "value": "{color.text.default}",
52
+ "type": "color"
53
+ },
54
+ "tab-typography": {
55
+ "value": "{typography.body.m}",
56
+ "type": "other"
57
+ },
58
+ "tab-typography-selected": {
59
+ "value": "{typography.heading.s}",
60
+ "type": "other"
61
+ },
62
+ "tabs-bottom-border": {
63
+ "value": {
64
+ "width": "{borderWidth.s}",
65
+ "style": "solid",
66
+ "color": "{color.greyscale.200}"
67
+ },
68
+ "type": "border"
69
+ },
70
+ "tabs-gap": {
71
+ "value": "{space.xl}",
72
+ "type": "spacing"
73
+ },
74
+ "tabs-gap-small-screen": {
75
+ "value": "{space.2xs}",
76
+ "type": "spacing"
77
+ }
78
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "text-area-border": {
3
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.700}",
4
+ "type": "other"
5
+ },
6
+ "text-area-border-disabled": {
7
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
8
+ "type": "other"
9
+ },
10
+ "text-area-border-error": {
11
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.error}",
12
+ "type": "other"
13
+ },
14
+ "text-area-border-focus": {
15
+ "value": "0 0 0 {borderWidth.l} {color.interactive.focus}",
16
+ "type": "other"
17
+ },
18
+ "text-area-border-hover": {
19
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.hover}",
20
+ "type": "other"
21
+ },
22
+ "text-area-border-radius": {
23
+ "value": "{borderRadius.m}",
24
+ "type": "borderRadius"
25
+ },
26
+ "text-area-color-bg": {
27
+ "value": "{color.greyscale.white}",
28
+ "type": "color"
29
+ },
30
+ "text-area-color-bg-disabled": {
31
+ "value": "{color.greyscale.100}",
32
+ "type": "color"
33
+ },
34
+ "text-area-color-text": {
35
+ "value": "{color.text.default}",
36
+ "type": "color"
37
+ },
38
+ "text-area-color-text-counter": {
39
+ "value": "{color.text.default}",
40
+ "type": "color"
41
+ },
42
+ "text-area-color-text-counter-error": {
43
+ "value": "{color.interactive.error}",
44
+ "type": "color"
45
+ },
46
+ "text-area-color-text-disabled": {
47
+ "value": "{color.text.disabled}",
48
+ "type": "color"
49
+ },
50
+ "text-area-color-text-placeholder": {
51
+ "value": "{color.text.secondary}",
52
+ "type": "color"
53
+ },
54
+ "text-area-padding": {
55
+ "value": "0.625rem {space.s}",
56
+ "type": "spacing",
57
+ "description": "10px {space.s}"
58
+ },
59
+ "text-area-typography": {
60
+ "value": "{typography.body.m}",
61
+ "type": "other"
62
+ },
63
+ "text-area-typography-counter": {
64
+ "value": "{typography.body.xs}",
65
+ "type": "other"
66
+ }
67
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "tooltip-border-focus": {
3
+ "value": {
4
+ "width": "{borderWidth.l}",
5
+ "style": "solid",
6
+ "color": "{color.interactive.focus}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "tooltip-border-radius": {
11
+ "value": "{borderRadius.m}",
12
+ "type": "borderRadius"
13
+ },
14
+ "tooltip-color-bg": {
15
+ "value": "{color.greyscale.700}",
16
+ "type": "color"
17
+ },
18
+ "tooltip-color-text": {
19
+ "value": "{color.text.light}",
20
+ "type": "color"
21
+ },
22
+ "tooltip-gap": {
23
+ "value": "{space.2xs}",
24
+ "type": "spacing"
25
+ },
26
+ "tooltip-max-width": {
27
+ "value": "400px",
28
+ "type": "dimension"
29
+ },
30
+ "tooltip-padding": {
31
+ "value": "6px {space.m} 10px {space.m}",
32
+ "type": "spacing"
33
+ },
34
+ "tooltip-text-size": {
35
+ "value": "{typography.body.m}",
36
+ "type": "other"
37
+ }
38
+ }