@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.
- package/data/component-design-tokens/accordion-design-tokens.json +92 -11
- package/data/component-design-tokens/badge-design-tokens.json +139 -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 +818 -430
- package/dist/tokens.scss +964 -576
- package/lib/design-tokens.js +43 -9
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tab-border-focus": {
|
|
3
3
|
"value": {
|
|
4
|
-
"width": "{borderWidth.
|
|
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.
|
|
52
|
+
"value": "{color.info.light}",
|
|
40
53
|
"type": "color"
|
|
41
54
|
},
|
|
42
|
-
"tab-
|
|
43
|
-
"value": "{
|
|
44
|
-
"type": "
|
|
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-
|
|
47
|
-
"value": "
|
|
48
|
-
"type": "
|
|
60
|
+
"tab-color-text": {
|
|
61
|
+
"value": "{color.text.default}",
|
|
62
|
+
"type": "color"
|
|
49
63
|
},
|
|
50
|
-
"tab-text-
|
|
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":
|
|
56
|
-
|
|
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":
|
|
60
|
-
|
|
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.
|
|
120
|
+
"color": "{color.greyscale.150}"
|
|
67
121
|
},
|
|
68
122
|
"type": "border"
|
|
69
123
|
},
|
|
70
124
|
"tabs-gap": {
|
|
71
|
-
"value": "{space.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
23
|
+
"value": "{input.borderRadius.input}",
|
|
24
24
|
"type": "borderRadius"
|
|
25
25
|
},
|
|
26
26
|
"text-area-color-bg": {
|
|
27
|
-
"value": "{color.
|
|
27
|
+
"value": "{input.color.background.default}",
|
|
28
28
|
"type": "color"
|
|
29
29
|
},
|
|
30
30
|
"text-area-color-bg-disabled": {
|
|
31
|
-
"value": "{color.
|
|
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.
|
|
39
|
+
"value": "{input.color.text.secondary}",
|
|
36
40
|
"type": "color"
|
|
37
41
|
},
|
|
38
42
|
"text-area-color-text-counter": {
|
|
39
|
-
"value": "{color.text.
|
|
43
|
+
"value": "{input.color.text.secondary}",
|
|
40
44
|
"type": "color"
|
|
41
45
|
},
|
|
42
46
|
"text-area-color-text-counter-error": {
|
|
43
|
-
"value": "{color.
|
|
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.
|
|
55
|
+
"value": "{input.color.text.placeholder}",
|
|
52
56
|
"type": "color"
|
|
53
57
|
},
|
|
54
58
|
"text-area-padding": {
|
|
55
|
-
"value": "
|
|
59
|
+
"value": "{space.m}",
|
|
56
60
|
"type": "spacing",
|
|
57
|
-
"description": "
|
|
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.
|
|
11
|
+
"value": "{borderRadius.xl}",
|
|
12
12
|
"type": "borderRadius"
|
|
13
13
|
},
|
|
14
14
|
"tooltip-color-bg": {
|
|
15
|
-
"value": "{color.greyscale.
|
|
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": "
|
|
31
|
+
"value": "{space.m}",
|
|
32
32
|
"type": "spacing"
|
|
33
33
|
},
|
|
34
34
|
"tooltip-text-size": {
|