@abgov/design-tokens 1.9.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 (38) 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/component-design-tokens/work-side-menu-design-tokens.json +34 -0
  31. package/data/component-design-tokens/work-side-menu-group-design-tokens.json +26 -0
  32. package/data/component-design-tokens/work-side-menu-item-design-tokens.json +58 -0
  33. package/data/goa-global-design-tokens.json +571 -145
  34. package/dist/tokens.css +840 -430
  35. package/dist/tokens.scss +974 -564
  36. package/index.spec.js +12 -0
  37. package/lib/design-tokens.js +43 -9
  38. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "tab-border-focus": {
3
3
  "value": {
4
- "width": "{borderWidth.l}",
4
+ "width": "{borderWidth.xl}",
5
5
  "style": "solid",
6
6
  "color": "{color.interactive.focus}"
7
7
  },
@@ -31,48 +31,106 @@
31
31
  },
32
32
  "type": "border"
33
33
  },
34
+ "tab-indicator-width": {
35
+ "value": "{borderWidth.xl}",
36
+ "type": "sizing",
37
+ "description": "Width of the active/hover indicator line (desktop bottom bar, mobile left bar)"
38
+ },
39
+ "tab-indicator-border-radius-desktop": {
40
+ "value": "{borderRadius.s} {borderRadius.s} 0px 0px",
41
+ "type": "other"
42
+ },
43
+ "tab-indicator-border-radius-small-screen": {
44
+ "value": "0px {borderRadius.s} {borderRadius.s} 0px",
45
+ "type": "other"
46
+ },
34
47
  "tab-color-bg-selected": {
35
48
  "value": "transparent",
36
49
  "type": "color"
37
50
  },
38
51
  "tab-color-bg-selected-small-screen": {
39
- "value": "{color.info.background}",
52
+ "value": "{color.info.light}",
40
53
  "type": "color"
41
54
  },
42
- "tab-padding": {
43
- "value": "{space.xs} {space.m}",
44
- "type": "spacing"
55
+ "tab-color-bg-hover-small-screen": {
56
+ "value": "{color.greyscale.50}",
57
+ "type": "color",
58
+ "description": "Mobile hover background color"
45
59
  },
46
- "tab-padding-mobile": {
47
- "value": "6px {space.m}",
48
- "type": "spacing"
60
+ "tab-color-text": {
61
+ "value": "{color.text.default}",
62
+ "type": "color"
49
63
  },
50
- "tab-text-color": {
64
+ "tab-color-text-hover": {
51
65
  "value": "{color.text.default}",
66
+ "type": "color",
67
+ "description": "Text color on hover state"
68
+ },
69
+ "tab-color-text-selected": {
70
+ "value": "{color.interactive.default}",
71
+ "type": "color"
72
+ },
73
+ "tab-color-text-not-selected": {
74
+ "value": "{color.greyscale.600}",
52
75
  "type": "color"
53
76
  },
77
+ "tab-indicator-color-active": {
78
+ "value": "{color.interactive.default}",
79
+ "type": "color",
80
+ "description": "Active tab indicator color (blue underline/left bar)"
81
+ },
82
+ "tab-indicator-color-hover": {
83
+ "value": "{color.greyscale.300}",
84
+ "type": "color",
85
+ "description": "Hover tab indicator color (grey underline/left bar)"
86
+ },
87
+ "tab-padding": {
88
+ "value": "{space.xs} {space.2xs} 9px {space.2xs}",
89
+ "type": "spacing",
90
+ "description": "Desktop tab padding"
91
+ },
92
+ "tab-padding-mobile": {
93
+ "value": "{space.2xs} {space.s} {space.2xs} 15px",
94
+ "type": "spacing"
95
+ },
54
96
  "tab-typography": {
55
- "value": "{typography.body.m}",
56
- "type": "other"
97
+ "value": {
98
+ "fontFamily": "{fontFamily.sans}",
99
+ "fontWeight": "{fontWeight.medium}",
100
+ "fontSize": "{fontSize.3}",
101
+ "lineHeight": "{lineHeight.2}",
102
+ "letterSpacing": "{letterSpacing.3xs}"
103
+ },
104
+ "type": "typography"
57
105
  },
58
106
  "tab-typography-selected": {
59
- "value": "{typography.heading.s}",
60
- "type": "other"
107
+ "value": {
108
+ "fontFamily": "{fontFamily.sans}",
109
+ "fontWeight": "{fontWeight.semiBold}",
110
+ "fontSize": "{fontSize.3}",
111
+ "lineHeight": "{lineHeight.2}",
112
+ "letterSpacing": "{letterSpacing.3xs}"
113
+ },
114
+ "type": "typography"
61
115
  },
62
116
  "tabs-bottom-border": {
63
117
  "value": {
64
118
  "width": "{borderWidth.s}",
65
119
  "style": "solid",
66
- "color": "{color.greyscale.200}"
120
+ "color": "{color.greyscale.150}"
67
121
  },
68
122
  "type": "border"
69
123
  },
70
124
  "tabs-gap": {
71
- "value": "{space.xl}",
125
+ "value": "{space.m}",
72
126
  "type": "spacing"
73
127
  },
74
128
  "tabs-gap-small-screen": {
75
129
  "value": "{space.2xs}",
76
130
  "type": "spacing"
131
+ },
132
+ "tabs-padding-bottom-small-screen": {
133
+ "value": "{space.m}",
134
+ "type": "spacing"
77
135
  }
78
- }
136
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "temporary-notification-color-bg-basic": {
3
+ "value": "#333333",
4
+ "type": "color",
5
+ "description": "Background color for basic, indeterminate, and progress notifications"
6
+ },
7
+ "temporary-notification-color-bg-success": {
8
+ "value": "{color.success.default}",
9
+ "type": "color",
10
+ "description": "Background color for success notifications"
11
+ },
12
+ "temporary-notification-color-bg-failure": {
13
+ "value": "{color.emergency.default}",
14
+ "type": "color",
15
+ "description": "Background color for failure notifications"
16
+ },
17
+ "temporary-notification-color-text": {
18
+ "value": "{color.text.light}",
19
+ "type": "color",
20
+ "description": "Text color for notification messages"
21
+ },
22
+ "temporary-notification-color-border": {
23
+ "value": "{color.greyscale.700}",
24
+ "type": "color",
25
+ "description": "Border color for basic notification type"
26
+ },
27
+ "temporary-notification-borderWidth": {
28
+ "value": "{borderWidth.s}",
29
+ "type": "borderWidth",
30
+ "description": "Border width for basic notification type"
31
+ },
32
+ "temporary-notification-borderRadius": {
33
+ "value": "{borderRadius.l}",
34
+ "type": "borderRadius",
35
+ "description": "Border radius for notification container"
36
+ },
37
+ "temporary-notification-padding": {
38
+ "value": "{space.m} {space.l}",
39
+ "type": "spacing",
40
+ "description": "Container padding (top/bottom left/right)"
41
+ },
42
+ "temporary-notification-padding-text-top": {
43
+ "value": "{space.2xs}",
44
+ "type": "spacing",
45
+ "description": "Top margin for message text when icon is present (helps vertically center first line with icon)"
46
+ },
47
+ "temporary-notification-padding-with-progress": {
48
+ "value": "{space.m} {space.l} 22px {space.l}",
49
+ "type": "spacing",
50
+ "description": "Container padding when progress bar is present (16px + 6px progress bar height)"
51
+ },
52
+ "temporary-notification-row-gap": {
53
+ "value": "{space.s}",
54
+ "type": "spacing",
55
+ "description": "Vertical gap when elements wrap to new rows"
56
+ },
57
+ "temporary-notification-column-gap": {
58
+ "value": "{space.s}",
59
+ "type": "spacing",
60
+ "description": "Horizontal gap between icon and message within content wrapper"
61
+ },
62
+ "temporary-notification-typography": {
63
+ "value": "{typography.body.m}",
64
+ "type": "other",
65
+ "description": "Typography for notification message text"
66
+ },
67
+ "temporary-notification-max-width": {
68
+ "value": "640px",
69
+ "type": "sizing",
70
+ "description": "Maximum width for notification container"
71
+ },
72
+ "temporary-notification-min-width-desktop": {
73
+ "value": "360px",
74
+ "type": "sizing",
75
+ "description": "Minimum width for notification on desktop"
76
+ },
77
+ "temporary-notification-iconSize": {
78
+ "value": "{iconSize.xl}",
79
+ "type": "sizing",
80
+ "description": "Icon size for success and failure indicators"
81
+ },
82
+ "temporary-notification-progress-bar-height": {
83
+ "value": "6px",
84
+ "type": "sizing",
85
+ "description": "Height of progress bar"
86
+ },
87
+ "temporary-notification-progress-bar-borderRadius": {
88
+ "value": "{borderRadius.l}",
89
+ "type": "borderRadius",
90
+ "description": "Border radius for progress bar bottom corners"
91
+ },
92
+ "temporary-notification-progress-bar-color-bg": {
93
+ "value": "{color.greyscale.400}",
94
+ "type": "color",
95
+ "description": "Progress bar unfilled background color"
96
+ },
97
+ "temporary-notification-progress-bar-color-fill": {
98
+ "value": "{color.greyscale.white}",
99
+ "type": "color",
100
+ "description": "Progress bar fill color"
101
+ },
102
+ "temporary-notification-transition-duration": {
103
+ "value": "0.3s",
104
+ "type": "time",
105
+ "description": "Animation transition duration"
106
+ },
107
+ "temporary-notification-animation-distance": {
108
+ "value": "100px",
109
+ "type": "sizing",
110
+ "description": "Distance for slide in/out animation"
111
+ }
112
+ }
@@ -1,65 +1,79 @@
1
1
  {
2
2
  "text-area-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
  "text-area-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
  "text-area-border-error": {
11
- "value": "inset 0 0 0 {borderWidth.m} {color.interactive.error}",
11
+ "value": "inset 0 0 0 {input.borderWidth.hover} {input.color.border.error}",
12
12
  "type": "other"
13
13
  },
14
14
  "text-area-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
  "text-area-border-hover": {
19
- "value": "inset 0 0 0 {borderWidth.m} {color.interactive.hover}",
19
+ "value": "inset 0 0 0 {input.borderWidth.hover} {input.color.border.hover}",
20
20
  "type": "other"
21
21
  },
22
22
  "text-area-border-radius": {
23
- "value": "{borderRadius.m}",
23
+ "value": "{input.borderRadius.input}",
24
24
  "type": "borderRadius"
25
25
  },
26
26
  "text-area-color-bg": {
27
- "value": "{color.greyscale.white}",
27
+ "value": "{input.color.background.default}",
28
28
  "type": "color"
29
29
  },
30
30
  "text-area-color-bg-disabled": {
31
- "value": "{color.greyscale.100}",
31
+ "value": "{input.color.background.disabled}",
32
+ "type": "color"
33
+ },
34
+ "text-area-color-bg-readonly": {
35
+ "value": "{input.color.background.readonly}",
32
36
  "type": "color"
33
37
  },
34
38
  "text-area-color-text": {
35
- "value": "{color.text.default}",
39
+ "value": "{input.color.text.secondary}",
36
40
  "type": "color"
37
41
  },
38
42
  "text-area-color-text-counter": {
39
- "value": "{color.text.default}",
43
+ "value": "{input.color.text.secondary}",
40
44
  "type": "color"
41
45
  },
42
46
  "text-area-color-text-counter-error": {
43
- "value": "{color.interactive.error}",
47
+ "value": "{input.color.border.error}",
44
48
  "type": "color"
45
49
  },
46
50
  "text-area-color-text-disabled": {
47
- "value": "{color.text.disabled}",
51
+ "value": "{input.color.text.disabled}",
48
52
  "type": "color"
49
53
  },
50
54
  "text-area-color-text-placeholder": {
51
- "value": "{color.text.secondary}",
55
+ "value": "{input.color.text.placeholder}",
52
56
  "type": "color"
53
57
  },
54
58
  "text-area-padding": {
55
- "value": "0.625rem {space.s}",
59
+ "value": "{space.m}",
56
60
  "type": "spacing",
57
- "description": "10px {space.s}"
61
+ "description": "Regular size: 16px all around"
62
+ },
63
+ "text-area-padding-compact": {
64
+ "value": "{space.s}",
65
+ "type": "spacing",
66
+ "description": "Compact variant: 12px all around"
58
67
  },
59
68
  "text-area-typography": {
60
69
  "value": "{typography.body.m}",
61
70
  "type": "other"
62
71
  },
72
+ "text-area-typography-compact": {
73
+ "value": "{typography.body.s}",
74
+ "type": "other",
75
+ "description": "Compact variant typography for content text"
76
+ },
63
77
  "text-area-typography-counter": {
64
78
  "value": "{typography.body.xs}",
65
79
  "type": "other"
@@ -8,11 +8,11 @@
8
8
  "type": "border"
9
9
  },
10
10
  "tooltip-border-radius": {
11
- "value": "{borderRadius.m}",
11
+ "value": "{borderRadius.xl}",
12
12
  "type": "borderRadius"
13
13
  },
14
14
  "tooltip-color-bg": {
15
- "value": "{color.greyscale.700}",
15
+ "value": "{color.greyscale.600}",
16
16
  "type": "color"
17
17
  },
18
18
  "tooltip-color-text": {
@@ -28,7 +28,7 @@
28
28
  "type": "dimension"
29
29
  },
30
30
  "tooltip-padding": {
31
- "value": "6px {space.m} 10px {space.m}",
31
+ "value": "{space.m}",
32
32
  "type": "spacing"
33
33
  },
34
34
  "tooltip-text-size": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "work-side-menu-width-open": {
3
+ "value": "17.5rem",
4
+ "type": "spacing"
5
+ },
6
+ "work-side-menu-width-closed": {
7
+ "value": "4.5rem",
8
+ "type": "spacing"
9
+ },
10
+ "work-side-menu-color-bg": {
11
+ "value": "transparent",
12
+ "type": "color"
13
+ },
14
+ "work-side-menu-border-radius": {
15
+ "value": "{borderRadius.m}",
16
+ "type": "borderRadius"
17
+ },
18
+ "work-side-menu-border": {
19
+ "value": "{borderWidth.s} solid {color.greyscale.200}",
20
+ "type": "other"
21
+ },
22
+ "work-side-menu-account-shadow": {
23
+ "value": "0px 12px 20px -8px rgba(26, 26, 26, 0.24)",
24
+ "type": "other"
25
+ },
26
+ "work-side-menu-text-color": {
27
+ "value": "{color.greyscale.600}",
28
+ "type": "color"
29
+ },
30
+ "work-side-menu-mobile-bg": {
31
+ "value": "{color.greyscale.50}",
32
+ "type": "color"
33
+ }
34
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "work-side-menu-group-border": {
3
+ "value": "{borderWidth.xl} solid {color.greyscale.100}",
4
+ "type": "other"
5
+ },
6
+ "work-side-menu-group-margin": {
7
+ "value": "{space.xs} 0 0.375rem 1.125rem",
8
+ "type": "spacing"
9
+ },
10
+ "work-side-menu-group-padding": {
11
+ "value": "0 0 0 0.75rem",
12
+ "type": "spacing"
13
+ },
14
+ "work-side-menu-group-item-padding": {
15
+ "value": "{space.2xs} {space.xs}",
16
+ "type": "spacing"
17
+ },
18
+ "work-side-menu-group-item-min-height": {
19
+ "value": "1.75rem",
20
+ "type": "spacing"
21
+ },
22
+ "work-side-menu-group-item-text-size": {
23
+ "value": "{typography.body.xs}",
24
+ "type": "other"
25
+ }
26
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "work-side-menu-item-badge-background-color": {
3
+ "value": "{color.success.default}",
4
+ "type": "color"
5
+ },
6
+ "work-side-menu-item-badge-emergency-background-color": {
7
+ "value": "{color.emergency.default}",
8
+ "type": "color"
9
+ },
10
+ "work-side-menu-item-badge-success-background-color": {
11
+ "value": "{color.success.default}",
12
+ "type": "color"
13
+ },
14
+ "work-side-menu-item-badge-text-size": {
15
+ "value": "{fontSize.2}",
16
+ "type": "fontSize"
17
+ },
18
+ "work-side-menu-item-border-radius": {
19
+ "value": "{borderRadius.m}",
20
+ "type": "borderRadius"
21
+ },
22
+ "work-side-menu-item-color-bg-current": {
23
+ "value": "{color.greyscale.100}",
24
+ "type": "color"
25
+ },
26
+ "work-side-menu-item-color-bg-hover": {
27
+ "value": "{color.greyscale.100}",
28
+ "type": "color"
29
+ },
30
+ "work-side-menu-item-icon-display": {
31
+ "value": "flex",
32
+ "type": "other"
33
+ },
34
+ "work-side-menu-item-min-height": {
35
+ "value": "2.5rem",
36
+ "type": "spacing"
37
+ },
38
+ "work-side-menu-item-padding": {
39
+ "value": "{space.xs} {space.xs} {space.xs} 0.625rem",
40
+ "type": "spacing"
41
+ },
42
+ "work-side-menu-item-text-color": {
43
+ "value": "{color.greyscale.600}",
44
+ "type": "color"
45
+ },
46
+ "work-side-menu-item-text-color-current": {
47
+ "value": "{color.text.default}",
48
+ "type": "color"
49
+ },
50
+ "work-side-menu-item-text-color-hover": {
51
+ "value": "{color.text.default}",
52
+ "type": "color"
53
+ },
54
+ "work-side-menu-item-text-size": {
55
+ "value": "{typography.body.s}",
56
+ "type": "other"
57
+ }
58
+ }