@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.
- package/data/component-design-tokens/accordion-design-tokens.json +92 -11
- package/data/component-design-tokens/badge-design-tokens.json +115 -26
- package/data/component-design-tokens/button-design-tokens.json +151 -66
- package/data/component-design-tokens/callout-design-tokens.json +158 -74
- package/data/component-design-tokens/checkbox-design-tokens.json +33 -14
- package/data/component-design-tokens/container-design-tokens.json +15 -11
- package/data/component-design-tokens/date-picker-design-tokens.json +26 -10
- package/data/component-design-tokens/details-design-tokens.json +28 -5
- package/data/component-design-tokens/drawer-design-tokens.json +42 -35
- package/data/component-design-tokens/dropdown-design-tokens.json +81 -17
- package/data/component-design-tokens/filter-chip-design-tokens.json +92 -0
- package/data/component-design-tokens/footer-design-tokens.json +16 -20
- package/data/component-design-tokens/form-item-design-tokens.json +99 -20
- package/data/component-design-tokens/header-design-tokens.json +189 -235
- package/data/component-design-tokens/icon-button-design-tokens.json +40 -24
- package/data/component-design-tokens/input-design-tokens.json +52 -28
- package/data/component-design-tokens/link-design-tokens.json +115 -0
- package/data/component-design-tokens/modal-design-tokens.json +202 -17
- package/data/component-design-tokens/notification-banner-design-tokens.json +152 -0
- package/data/component-design-tokens/pagination-design-tokens.json +17 -0
- package/data/component-design-tokens/popover-design-tokens.json +23 -9
- package/data/component-design-tokens/push-drawer-design-tokens.json +1 -1
- package/data/component-design-tokens/radio-design-tokens.json +79 -17
- package/data/component-design-tokens/side-menu-design-tokens.json +101 -94
- package/data/component-design-tokens/table-design-tokens.json +159 -9
- package/data/component-design-tokens/tabs-design-tokens.json +74 -16
- package/data/component-design-tokens/temporary-notification-design-tokens.json +112 -0
- package/data/component-design-tokens/text-area-design-tokens.json +29 -15
- package/data/component-design-tokens/tooltip-design-tokens.json +3 -3
- package/data/goa-global-design-tokens.json +571 -145
- package/dist/tokens.css +812 -430
- package/dist/tokens.scss +958 -576
- package/lib/design-tokens.js +43 -9
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"accordion-color-bg-heading": {
|
|
3
|
-
"value": "{color.greyscale.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
61
|
-
"value":
|
|
62
|
-
|
|
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":
|
|
66
|
-
|
|
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": "
|
|
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,167 @@
|
|
|
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.
|
|
38
|
+
"value": "{iconSize.s}",
|
|
24
39
|
"type": "sizing",
|
|
25
|
-
"description": "
|
|
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.
|
|
48
|
+
"value": "{borderRadius.s}",
|
|
29
49
|
"type": "borderRadius",
|
|
30
|
-
"description": "
|
|
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.
|
|
66
|
+
"value": "{color.info.default}",
|
|
34
67
|
"type": "color"
|
|
35
68
|
},
|
|
36
69
|
"badge-info-color-content": {
|
|
37
|
-
"value": "{color.info.
|
|
70
|
+
"value": "{color.info.textInverse}",
|
|
71
|
+
"type": "color"
|
|
72
|
+
},
|
|
73
|
+
"badge-info-subtle-color-bg": {
|
|
74
|
+
"value": "{color.info.light}",
|
|
38
75
|
"type": "color"
|
|
39
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.
|
|
90
|
+
"value": "{color.success.textInverse}",
|
|
46
91
|
"type": "color"
|
|
47
92
|
},
|
|
93
|
+
"badge-success-subtle-color-bg": {
|
|
94
|
+
"value": "{color.success.light}",
|
|
95
|
+
"type": "color"
|
|
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.
|
|
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.
|
|
130
|
+
"value": "{color.emergency.textInverse}",
|
|
62
131
|
"type": "color"
|
|
63
132
|
},
|
|
64
|
-
"badge-
|
|
65
|
-
"value": "{color.
|
|
133
|
+
"badge-emergency-subtle-color-bg": {
|
|
134
|
+
"value": "{color.emergency.light}",
|
|
66
135
|
"type": "color"
|
|
67
136
|
},
|
|
68
|
-
"badge-
|
|
69
|
-
"value": "{color.
|
|
137
|
+
"badge-emergency-subtle-color-content": {
|
|
138
|
+
"value": "{color.emergency.textDark}",
|
|
70
139
|
"type": "color"
|
|
71
140
|
},
|
|
72
|
-
"badge-
|
|
73
|
-
"value": "{color.
|
|
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-
|
|
149
|
+
"badge-default-color-content": {
|
|
77
150
|
"value": "{color.text.light}",
|
|
78
151
|
"type": "color"
|
|
79
152
|
},
|
|
80
|
-
"badge-
|
|
81
|
-
"value": "{color.greyscale.
|
|
153
|
+
"badge-default-subtle-color-bg": {
|
|
154
|
+
"value": "{color.greyscale.100}",
|
|
82
155
|
"type": "color"
|
|
83
156
|
},
|
|
84
|
-
"badge-
|
|
157
|
+
"badge-default-subtle-color-content": {
|
|
85
158
|
"value": "{color.text.default}",
|
|
86
159
|
"type": "color"
|
|
87
160
|
},
|
|
88
|
-
"badge-
|
|
89
|
-
"value": "
|
|
90
|
-
"type": "
|
|
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": {
|
|
174
|
+
"value": "{color.greyscale.white}",
|
|
175
|
+
"type": "color"
|
|
176
|
+
},
|
|
177
|
+
"badge-archived-subtle-color-content": {
|
|
178
|
+
"value": "{color.text.default}",
|
|
179
|
+
"type": "color"
|
|
91
180
|
},
|
|
92
|
-
"badge-border": {
|
|
93
|
-
"value": "inset 0 0 {borderWidth.s}
|
|
94
|
-
"type": "
|
|
181
|
+
"badge-archived-subtle-border": {
|
|
182
|
+
"value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
|
|
183
|
+
"type": "dropShadow"
|
|
95
184
|
}
|
|
96
185
|
}
|