@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,30 +1,48 @@
1
1
  {
2
2
  "drawer-overlay-color": {
3
- "value": "rgba(0,0,0,0.3)",
3
+ "value": "rgba(51, 51, 51, 0.5)",
4
4
  "type": "color",
5
- "description": "background overlay color behind drawer, 70%"
6
- },
7
- "drawer-bottom-shadow": {
8
- "value": {
9
- "x": "0",
10
- "y": "-6",
11
- "blur": "6",
12
- "spread": "0",
13
- "color": "rgba(0,0,0,0.16)",
14
- "type": "dropShadow"
15
- },
16
- "type": "boxShadow"
17
- },
18
- "drawer-left-shadow": {
19
- "value": {
20
- "x": "6",
21
- "y": "0",
22
- "blur": "6",
23
- "spread": "0",
24
- "color": "rgba(0,0,0,0.16)",
25
- "type": "dropShadow"
26
- },
27
- "type": "boxShadow"
5
+ "description": "Background overlay color behind drawer"
6
+ },
7
+ "drawer-border-radius": {
8
+ "value": "{borderRadius.3xl}",
9
+ "type": "borderRadius",
10
+ "description": "Border radius for drawer corners"
11
+ },
12
+ "drawer-offset": {
13
+ "value": "{space.m}",
14
+ "type": "spacing",
15
+ "description": "Offset from screen edges when open"
16
+ },
17
+ "drawer-content-padding-horizontal": {
18
+ "value": "{space.l}",
19
+ "type": "spacing",
20
+ "description": "Horizontal padding for content section"
21
+ },
22
+ "drawer-content-padding-vertical": {
23
+ "value": "{space.m}",
24
+ "type": "spacing",
25
+ "description": "Vertical padding for content section"
26
+ },
27
+ "drawer-actions-padding-top": {
28
+ "value": "{space.m}",
29
+ "type": "spacing",
30
+ "description": "Top padding for actions section"
31
+ },
32
+ "drawer-actions-padding-bottom": {
33
+ "value": "{space.l}",
34
+ "type": "spacing",
35
+ "description": "Bottom padding for actions section"
36
+ },
37
+ "drawer-heading-typography": {
38
+ "value": "{typography.heading.s}",
39
+ "type": "other",
40
+ "description": "Typography for drawer heading"
41
+ },
42
+ "drawer-shadow": {
43
+ "value": "0 0 4px 0 rgba(0, 0, 0, 0.10), 0 8px 40px 0 rgba(0, 0, 0, 0.20)",
44
+ "type": "other",
45
+ "description": "Drop shadow for drawer"
28
46
  },
29
47
  "drawer-transition-time": {
30
48
  "value": "0.25s",
@@ -33,16 +51,5 @@
33
51
  "drawer-padding": {
34
52
  "value": "{space.m}",
35
53
  "type": "spacing"
36
- },
37
- "drawer-right-shadow": {
38
- "value": {
39
- "x": "-6",
40
- "y": "0",
41
- "blur": "6",
42
- "spread": "0",
43
- "color": "rgba(0,0,0,0.16)",
44
- "type": "dropShadow"
45
- },
46
- "type": "boxShadow"
47
54
  }
48
55
  }
@@ -1,54 +1,70 @@
1
1
  {
2
2
  "dropdown-border": {
3
- "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.700}",
3
+ "value": "inset 0 0 0 {input.borderWidth.default} {input.color.border.default}",
4
4
  "type": "other"
5
5
  },
6
6
  "dropdown-border-disabled": {
7
- "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
7
+ "value": "inset 0 0 0 {input.borderWidth.default} {input.color.border.disabled}",
8
8
  "type": "other"
9
9
  },
10
10
  "dropdown-border-error": {
11
- "value": "inset 0 0 0 {borderWidth.m} {color.interactive.error}",
11
+ "value": "inset 0 0 0 {input.borderWidth.focus} {input.color.border.error}",
12
12
  "type": "other"
13
13
  },
14
14
  "dropdown-border-focus": {
15
- "value": "0 0 0 {borderWidth.l} {color.interactive.focus}",
15
+ "value": "inset 0 0 0 {input.borderWidth.focus} {input.color.border.focus}",
16
16
  "type": "other"
17
17
  },
18
18
  "dropdown-border-hover": {
19
- "value": "inset 0 0 0 {borderWidth.m} {color.interactive.hover}",
19
+ "value": "inset 0 0 0 {input.borderWidth.focus} {input.color.border.hover}",
20
+ "type": "other"
21
+ },
22
+ "dropdown-border-error-hover": {
23
+ "value": "inset 0 0 0 {input.borderWidth.focus} {input.color.border.error-hover}",
20
24
  "type": "other"
21
25
  },
22
26
  "dropdown-border-radius": {
23
- "value": "{borderRadius.m}",
27
+ "value": "{input.borderRadius.input}",
24
28
  "type": "borderRadius"
25
29
  },
26
30
  "dropdown-color-bg": {
27
- "value": "{color.greyscale.white}",
31
+ "value": "{input.color.background.default}",
28
32
  "type": "color"
29
33
  },
30
34
  "dropdown-color-bg-disabled": {
31
- "value": "{color.greyscale.100}",
35
+ "value": "{input.color.background.disabled}",
36
+ "type": "color"
37
+ },
38
+ "dropdown-color-bg-error": {
39
+ "value": "{input.color.background.error}",
40
+ "type": "color"
41
+ },
42
+ "dropdown-color-bg-error-hover": {
43
+ "value": "{input.color.background.error-hover}",
32
44
  "type": "color"
33
45
  },
34
46
  "dropdown-color-text": {
35
- "value": "{color.text.default}",
47
+ "value": "{input.color.text.default}",
36
48
  "type": "color"
37
49
  },
38
50
  "dropdown-color-text-disabled": {
39
- "value": "{color.text.disabled}",
51
+ "value": "{input.color.text.disabled}",
40
52
  "type": "color"
41
53
  },
42
54
  "dropdown-color-text-placeholder": {
43
- "value": "{color.text.secondary}",
55
+ "value": "{input.color.text.default}",
56
+ "type": "color"
57
+ },
58
+ "dropdown-color-text-error": {
59
+ "value": "{input.color.text.error}",
44
60
  "type": "color"
45
61
  },
46
62
  "dropdown-item-color-bg": {
47
- "value": "{color.greyscale.white}",
63
+ "value": "{input.color.background.default}",
48
64
  "type": "color"
49
65
  },
50
66
  "dropdown-item-color-bg-disabled": {
51
- "value": "{color.greyscale.100}",
67
+ "value": "{input.color.background.disabled}",
52
68
  "type": "color"
53
69
  },
54
70
  "dropdown-item-color-bg-hover": {
@@ -72,7 +88,7 @@
72
88
  "type": "color"
73
89
  },
74
90
  "dropdown-item-color-text-hover": {
75
- "value": "{color.interactive.hover}",
91
+ "value": "{color.text.default}",
76
92
  "type": "color"
77
93
  },
78
94
  "dropdown-item-color-text-selected": {
@@ -80,15 +96,27 @@
80
96
  "type": "color"
81
97
  },
82
98
  "dropdown-item-color-text-selected-hover": {
83
- "value": "{color.greyscale.white}",
99
+ "value": "{color.text.light}",
84
100
  "type": "color"
85
101
  },
86
102
  "dropdown-item-padding": {
87
- "value": "7px {dropdown-padding-lr} 9px",
103
+ "value": "{space.s} {space.xs}",
88
104
  "type": "spacing"
89
105
  },
106
+ "dropdown-item-border-radius": {
107
+ "value": "{borderRadius.s}",
108
+ "type": "borderRadius"
109
+ },
110
+ "dropdown-height": {
111
+ "value": "56px",
112
+ "type": "sizing"
113
+ },
90
114
  "dropdown-padding": {
91
- "value": "6px {dropdown-padding-lr} 8px",
115
+ "value": "{space.m} {space.s}",
116
+ "type": "spacing"
117
+ },
118
+ "dropdown-padding-vertical": {
119
+ "value": "{space.m}",
92
120
  "type": "spacing"
93
121
  },
94
122
  "dropdown-padding-lr": {
@@ -106,5 +134,41 @@
106
134
  "dropdown-typography": {
107
135
  "value": "{typography.body.m}",
108
136
  "type": "other"
137
+ },
138
+ "dropdown-label-typography": {
139
+ "value": "{typography.body.m}",
140
+ "type": "other"
141
+ },
142
+ "dropdown-helper-typography": {
143
+ "value": "{typography.body.xs}",
144
+ "type": "other"
145
+ },
146
+ "dropdown-menu-border-radius": {
147
+ "value": "{input.borderRadius.input}",
148
+ "type": "borderRadius"
149
+ },
150
+ "dropdown-menu-margin": {
151
+ "value": "{space.xs}",
152
+ "type": "spacing"
153
+ },
154
+ "dropdown-compact-height": {
155
+ "value": "40px",
156
+ "type": "sizing"
157
+ },
158
+ "dropdown-compact-typography": {
159
+ "value": "{typography.body.s}",
160
+ "type": "other"
161
+ },
162
+ "dropdown-compact-padding": {
163
+ "value": "0 {space.s}",
164
+ "type": "spacing"
165
+ },
166
+ "dropdown-compact-item-padding": {
167
+ "value": "0 {space.xs}",
168
+ "type": "spacing"
169
+ },
170
+ "dropdown-compact-item-typography": {
171
+ "value": "{typography.body.s}",
172
+ "type": "other"
109
173
  }
110
174
  }
@@ -0,0 +1,92 @@
1
+ {
2
+ "filter-chip-border-radius": {
3
+ "value": "{borderRadius.3xl}",
4
+ "type": "borderRadius"
5
+ },
6
+ "filter-chip-border": {
7
+ "value": {
8
+ "color": "{color.greyscale.300}",
9
+ "width": "{borderWidth.s}",
10
+ "style": "solid"
11
+ },
12
+ "type": "border"
13
+ },
14
+ "filter-chip-text-color": {
15
+ "value": "{color.text.default}",
16
+ "type": "color"
17
+ },
18
+ "filter-chip-text-color-error": {
19
+ "value": "{input.color.border.error}",
20
+ "type": "color"
21
+ },
22
+ "filter-chip-bg-color": {
23
+ "value": "{color.greyscale.white}",
24
+ "type": "color"
25
+ },
26
+ "filter-chip-bg-color-error": {
27
+ "value": "{input.color.background.error}",
28
+ "type": "color"
29
+ },
30
+ "filter-chip-border-color-error": {
31
+ "value": "{input.color.border.error}",
32
+ "type": "color"
33
+ },
34
+ "filter-chip-icon-color": {
35
+ "value": "{color.greyscale.600}",
36
+ "type": "color"
37
+ },
38
+ "filter-chip-icon-color-error": {
39
+ "value": "{input.color.text.error}",
40
+ "type": "color"
41
+ },
42
+ "filter-chip-secondary-text-color": {
43
+ "value": "{color.greyscale.600}",
44
+ "type": "color"
45
+ },
46
+ "filter-chip-secondary-text-color-error": {
47
+ "value": "{input.color.text.error}",
48
+ "type": "color"
49
+ },
50
+ "filter-chip-padding-vertical": {
51
+ "value": "0.3125rem",
52
+ "type": "spacing",
53
+ "description": "5px"
54
+ },
55
+ "filter-chip-padding-horizontal-left": {
56
+ "value": "{space.s}",
57
+ "type": "spacing"
58
+ },
59
+ "filter-chip-padding-horizontal-right": {
60
+ "value": "{space.xs}",
61
+ "type": "spacing"
62
+ },
63
+ "filter-chip-gap": {
64
+ "value": "{space.s}",
65
+ "type": "spacing"
66
+ },
67
+ "filter-chip-label-gap": {
68
+ "value": "0.375rem",
69
+ "type": "spacing",
70
+ "description": "6px"
71
+ },
72
+ "filter-chip-typography": {
73
+ "value": "{typography.body.s}",
74
+ "type": "other"
75
+ },
76
+ "filter-chip-line-height": {
77
+ "value": "{lineHeight.2}",
78
+ "type": "lineHeights"
79
+ },
80
+ "filter-chip-min-height": {
81
+ "value": "{space.xl}",
82
+ "type": "sizing"
83
+ },
84
+ "filter-chip-min-width": {
85
+ "value": "56px",
86
+ "type": "sizing"
87
+ },
88
+ "filter-chip-close-button-error-hover-bg-color": {
89
+ "value": "{input.color.background.error-hover}",
90
+ "type": "color"
91
+ }
92
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "footer-border-bottom": {
3
3
  "value": {
4
- "width": "1rem",
4
+ "width": "{borderWidth.none}",
5
5
  "style": "solid",
6
6
  "color": "{color.brand.default}"
7
7
  },
@@ -11,7 +11,7 @@
11
11
  "value": {
12
12
  "width": "{borderWidth.m}",
13
13
  "style": "solid",
14
- "color": "{color.greyscale.200}"
14
+ "color": "{color.greyscale.150}"
15
15
  },
16
16
  "type": "border"
17
17
  },
@@ -20,7 +20,7 @@
20
20
  "type": "color"
21
21
  },
22
22
  "footer-color-links": {
23
- "value": "{color.text.default}",
23
+ "value": "{color.greyscale.black}",
24
24
  "type": "color"
25
25
  },
26
26
  "footer-color-links-hover": {
@@ -32,7 +32,7 @@
32
32
  "type": "color"
33
33
  },
34
34
  "footer-color-links-secondary-hover": {
35
- "value": "{color.greyscale.900}",
35
+ "value": "{color.greyscale.800}",
36
36
  "type": "color"
37
37
  },
38
38
  "footer-link-focus": {
@@ -43,40 +43,36 @@
43
43
  },
44
44
  "type": "border"
45
45
  },
46
+ "footer-link-focus-border-radius": {
47
+ "value": "{borderRadius.s}",
48
+ "type": "borderRadius"
49
+ },
46
50
  "footer-padding-large-screen": {
47
- "value": "{space.2xl} {space.3xl}",
51
+ "value": "{space.l} {space.3xl}",
48
52
  "type": "spacing"
49
53
  },
50
54
  "footer-padding-medium-screen": {
51
- "value": "{space.2xl} {space.xl}",
55
+ "value": "{space.l} {space.xl}",
52
56
  "type": "spacing"
53
57
  },
54
58
  "footer-padding-small-screen": {
55
- "value": "{space.xl} {space.m}",
59
+ "value": "{space.l} {space.m}",
56
60
  "type": "spacing"
57
61
  },
58
- "footer-size-logo-desktop": {
59
- "value": "155px",
60
- "type": "sizing"
61
- },
62
- "footer-size-logo-mobile": {
63
- "value": "133px",
64
- "type": "sizing"
65
- },
66
- "footer-size-logo-tablet": {
67
- "value": "155px",
68
- "type": "sizing"
69
- },
70
62
  "footer-typography-small-screen": {
71
63
  "value": "{fontSize.3}",
72
64
  "type": "other"
73
65
  },
74
66
  "footer-meta-links-gap": {
75
- "value": "{space.l}",
67
+ "value": "{space.xl}",
76
68
  "type": "spacing"
77
69
  },
78
70
  "footer-meta-links-gap-small-screen": {
79
71
  "value": "20px",
80
72
  "type": "spacing"
73
+ },
74
+ "footer-meta-links-margin": {
75
+ "value": "{space.none}",
76
+ "type": "spacing"
81
77
  }
82
78
  }
@@ -1,46 +1,125 @@
1
1
  {
2
2
  "form-item-error-message-color": {
3
- "value": "{color.interactive.error}",
4
- "type": "color"
3
+ "value": "{input.color.text.error}",
4
+ "type": "color",
5
+ "description": "Color for error message text"
5
6
  },
6
7
  "form-item-help-message-color": {
7
- "value": "{color.text.default}",
8
- "type": "color"
8
+ "value": "{input.color.text.helper}",
9
+ "type": "color",
10
+ "description": "Color for helper message text"
9
11
  },
10
12
  "form-item-label-large-padding-bottom": {
11
- "value": "{space.m}",
12
- "type": "spacing"
13
+ "value": "1.375rem",
14
+ "type": "spacing",
15
+ "description": "Space between large label and form input"
13
16
  },
14
17
  "form-item-label-large-typography": {
15
- "value": "{typography.heading.l}",
16
- "type": "other"
18
+ "value": {
19
+ "fontFamily": "{fontFamily.sans}",
20
+ "fontWeight": "{fontWeight.bold}",
21
+ "fontSize": "{fontSize.8}",
22
+ "lineHeight": "{lineHeight.5}",
23
+ "letterSpacing": "{letterSpacing.m}"
24
+ },
25
+ "type": "typography",
26
+ "description": "Typography for large form field labels"
17
27
  },
18
28
  "form-item-label-padding-bottom": {
19
- "value": "{space.s}",
20
- "type": "spacing"
29
+ "value": "0.625rem",
30
+ "type": "spacing",
31
+ "description": "Space between regular label and form input"
21
32
  },
22
33
  "form-item-label-typography": {
23
- "value": "{typography.heading.s}",
24
- "type": "other"
34
+ "value": {
35
+ "fontFamily": "{fontFamily.sans}",
36
+ "fontWeight": "{fontWeight.semiBold}",
37
+ "fontSize": "{fontSize.4}",
38
+ "lineHeight": "{lineHeight.4}",
39
+ "letterSpacing": "0"
40
+ },
41
+ "type": "typography",
42
+ "description": "Typography for regular form field labels"
43
+ },
44
+ "form-item-label-compact-padding-bottom": {
45
+ "value": "0.5625rem",
46
+ "type": "spacing",
47
+ "description": "Space between compact label and form input"
48
+ },
49
+ "form-item-label-compact-typography": {
50
+ "value": {
51
+ "fontFamily": "{fontFamily.sans}",
52
+ "fontWeight": "{fontWeight.semiBold}",
53
+ "fontSize": "{fontSize.3}",
54
+ "lineHeight": "{lineHeight.2}",
55
+ "letterSpacing": "0"
56
+ },
57
+ "type": "typography",
58
+ "description": "Typography for compact form field labels"
25
59
  },
26
60
  "form-item-message-gap": {
27
61
  "value": "{space.2xs}",
28
- "type": "spacing"
62
+ "type": "spacing",
63
+ "description": "Icon to text gap in error message"
64
+ },
65
+ "form-item-message-gap-compact": {
66
+ "value": "0.1875rem",
67
+ "type": "spacing",
68
+ "description": "Icon to text gap in compact error message"
69
+ },
70
+ "form-item-message-margin-top-large": {
71
+ "value": "{space.m}",
72
+ "type": "spacing",
73
+ "description": "Space between input and messages for large label size with text inputs"
74
+ },
75
+ "form-item-message-margin-top-regular": {
76
+ "value": "{space.s}",
77
+ "type": "spacing",
78
+ "description": "Space between input and messages for regular label size with text inputs"
79
+ },
80
+ "form-item-message-margin-top-compact": {
81
+ "value": "{space.xs}",
82
+ "type": "spacing",
83
+ "description": "Space between input and messages for compact label size with text inputs"
84
+ },
85
+ "form-item-message-margin-top-selection-large": {
86
+ "value": "1.25rem",
87
+ "type": "spacing",
88
+ "description": "Space between selection controls and messages for large label size"
89
+ },
90
+ "form-item-message-margin-top-selection-regular": {
91
+ "value": "{space.m}",
92
+ "type": "spacing",
93
+ "description": "Space between selection controls and messages for regular label size"
29
94
  },
30
- "form-item-message-margin-top": {
95
+ "form-item-message-margin-top-selection-compact": {
31
96
  "value": "{space.s}",
32
- "type": "spacing"
97
+ "type": "spacing",
98
+ "description": "Space between selection controls and messages for compact label size"
99
+ },
100
+ "form-item-message-stack-gap": {
101
+ "value": "{space.xs}",
102
+ "type": "spacing",
103
+ "description": "Space between error and helper messages when both present"
104
+ },
105
+ "form-item-message-stack-gap-compact": {
106
+ "value": "{space.2xs}",
107
+ "type": "spacing",
108
+ "description": "Space between error and helper messages for compact size"
33
109
  },
34
110
  "form-item-message-typography": {
35
111
  "value": "{typography.body.xs}",
36
- "type": "other"
112
+ "type": "other",
113
+ "description": "Typography for error and helper messages"
37
114
  },
38
115
  "form-item-optional-label-color": {
39
- "value": "{color.greyscale.700}",
40
- "type": "color"
116
+ "value": "{color.greyscale.600}",
117
+ "type": "color",
118
+ "description": "Color for optional and required indicator text"
41
119
  },
42
120
  "form-item-optional-label-typography": {
43
121
  "value": "{typography.body.xs}",
44
- "type": "other"
122
+ "type": "other",
123
+ "description": "Typography for optional and required indicator text"
45
124
  }
46
- }
125
+ }