@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
@@ -12,7 +12,153 @@
12
12
  "type": "border"
13
13
  },
14
14
  "container-padding": {
15
+ "value": "{space.xl}",
16
+ "type": "spacing"
17
+ },
18
+ "container-padding-compact": {
19
+ "value": "{space.m}",
20
+ "type": "spacing"
21
+ },
22
+ "container-heading": {
23
+ "value": "{typography.heading.s}",
24
+ "type": "other"
25
+ },
26
+ "container-heading-padding": {
27
+ "value": "{space.xs}",
28
+ "type": "spacing"
29
+ },
30
+ "container-heading-gap": {
15
31
  "value": "{space.l}",
16
32
  "type": "spacing"
33
+ },
34
+ "container-accent-thick-height": {
35
+ "value": "{space.m}",
36
+ "type": "dimension",
37
+ "description": "Height of the thick container accent bar"
38
+ },
39
+ "container-accent-thin-height": {
40
+ "value": "{space.xs}",
41
+ "type": "dimension",
42
+ "description": "Height of the thin container accent bar"
43
+ },
44
+ "container-interactive-bg-color": {
45
+ "value": "{color.greyscale.white}",
46
+ "type": "color"
47
+ },
48
+ "container-interactive-heading-bg-color": {
49
+ "value": "{color.brand.default}",
50
+ "type": "color"
51
+ },
52
+ "container-interactive-heading-text-color": {
53
+ "value": "{color.text.light}",
54
+ "type": "color"
55
+ },
56
+ "container-interactive-border": {
57
+ "value": {
58
+ "width": "{borderWidth.s}",
59
+ "style": "solid",
60
+ "color": "{color.brand.default}"
61
+ },
62
+ "type": "border"
63
+ },
64
+ "container-non-interactive-bg-color": {
65
+ "value": "{color.greyscale.100}",
66
+ "type": "color"
67
+ },
68
+ "container-non-interactive-heading-bg-color": {
69
+ "value": "{color.greyscale.100}",
70
+ "type": "color"
71
+ },
72
+ "container-non-interactive-heading-text-color": {
73
+ "value": "{color.text.default}",
74
+ "type": "color"
75
+ },
76
+ "container-non-interactive-border": {
77
+ "value": {
78
+ "width": "{borderWidth.s}",
79
+ "style": "solid",
80
+ "color": "{color.greyscale.200}"
81
+ },
82
+ "type": "border"
83
+ },
84
+ "container-info-bg-color": {
85
+ "value": "{color.info.background}",
86
+ "type": "color"
87
+ },
88
+ "container-info-heading-bg-color": {
89
+ "value": "{color.info.default}",
90
+ "type": "color"
91
+ },
92
+ "container-info-heading-text-color": {
93
+ "value": "{color.text.light}",
94
+ "type": "color"
95
+ },
96
+ "container-info-border": {
97
+ "value": {
98
+ "width": "{borderWidth.s}",
99
+ "style": "solid",
100
+ "color": "{color.info.default}"
101
+ },
102
+ "type": "border"
103
+ },
104
+ "container-error-bg-color": {
105
+ "value": "{color.emergency.background}",
106
+ "type": "color"
107
+ },
108
+ "container-error-heading-bg-color": {
109
+ "value": "{color.emergency.default}",
110
+ "type": "color"
111
+ },
112
+ "container-error-heading-text-color": {
113
+ "value": "{color.text.light}",
114
+ "type": "color"
115
+ },
116
+ "container-error-border": {
117
+ "value": {
118
+ "width": "{borderWidth.s}",
119
+ "style": "solid",
120
+ "color": "{color.emergency.default}"
121
+ },
122
+ "type": "border"
123
+ },
124
+ "container-success-bg-color": {
125
+ "value": "{color.success.background}",
126
+ "type": "color"
127
+ },
128
+ "container-success-heading-bg-color": {
129
+ "value": "{color.success.default}",
130
+ "type": "color"
131
+ },
132
+ "container-success-heading-text-color": {
133
+ "value": "{color.text.light}",
134
+ "type": "color"
135
+ },
136
+ "container-success-border": {
137
+ "value": {
138
+ "width": "{borderWidth.s}",
139
+ "style": "solid",
140
+ "color": "{color.success.default}"
141
+ },
142
+ "type": "border"
143
+ },
144
+ "container-important-bg-color": {
145
+ "value": "{color.warning.background}",
146
+ "type": "color"
147
+ },
148
+ "container-important-heading-bg-color": {
149
+ "value": "{color.warning.default}",
150
+ "type": "color"
151
+ },
152
+ "container-important-heading-text-color": {
153
+ "value": "{color.text.default}",
154
+ "type": "color"
155
+ },
156
+ "container-important-border": {
157
+ "value": {
158
+ "color": "{color.warning.default}",
159
+ "width": "{borderWidth.s}",
160
+ "style": "solid"
161
+ },
162
+ "type": "border"
17
163
  }
18
164
  }
@@ -0,0 +1,102 @@
1
+ {
2
+ "date-input-calendar-width": {
3
+ "value": "280px",
4
+ "type": "dimension"
5
+ },
6
+ "date-input-calendar-border-radius": {
7
+ "value": "{borderRadius.m}",
8
+ "type": "borderRadius"
9
+ },
10
+ "date-input-day-of-week-font": {
11
+ "value": "{typography.heading.xs}",
12
+ "type": "other"
13
+ },
14
+ "date-input-day-font": {
15
+ "value": "{typography.body.s}",
16
+ "type": "other"
17
+ },
18
+ "date-input-day-of-week-margin": {
19
+ "value": "{space.xs}",
20
+ "type": "spacing"
21
+ },
22
+ "date-input-day-font-today": {
23
+ "value": "{typography.heading.xs}",
24
+ "type": "other"
25
+ },
26
+ "date-input-day-underline-today": {
27
+ "value": {
28
+ "color": "{color.interactive.default}",
29
+ "width": "{borderWidth.l}",
30
+ "style": "solid"
31
+ },
32
+ "type": "border"
33
+ },
34
+ "date-input-day-underline-today-width": {
35
+ "value": "{space.l}",
36
+ "type": "spacing"
37
+ },
38
+ "date-input-day-underline-today-selected": {
39
+ "value": {
40
+ "color": "{color.greyscale.white}",
41
+ "width": "{borderWidth.l}",
42
+ "style": "solid"
43
+ },
44
+ "type": "border"
45
+ },
46
+ "date-input-day-border-radius": {
47
+ "value": "{borderRadius.m}",
48
+ "type": "borderRadius"
49
+ },
50
+ "date-input-day-size": {
51
+ "value": "2.5rem",
52
+ "type": "dimension"
53
+ },
54
+ "date-input-day-color-text": {
55
+ "value": "{color.text.default}",
56
+ "type": "color"
57
+ },
58
+ "date-input-day-color-bg": {
59
+ "value": "transparent",
60
+ "type": "color"
61
+ },
62
+ "date-input-day-color-text-hover": {
63
+ "value": "{color.text.default}",
64
+ "type": "color"
65
+ },
66
+ "date-input-day-color-bg-hover": {
67
+ "value": "{color.greyscale.200}",
68
+ "type": "color"
69
+ },
70
+ "date-input-day-border-focus": {
71
+ "value": {
72
+ "color": "{color.interactive.focus}",
73
+ "width": "{borderWidth.l}",
74
+ "style": "solid"
75
+ },
76
+ "type": "border"
77
+ },
78
+ "date-input-day-color-text-selected": {
79
+ "value": "{color.text.light}",
80
+ "type": "color"
81
+ },
82
+ "date-input-day-color-bg-selected": {
83
+ "value": "{color.interactive.default}",
84
+ "type": "color"
85
+ },
86
+ "date-input-day-color-text-selected-hover": {
87
+ "value": "{color.text.light}",
88
+ "type": "color"
89
+ },
90
+ "date-input-day-color-bg-selected-hover": {
91
+ "value": "{color.interactive.hover}",
92
+ "type": "color"
93
+ },
94
+ "date-input-day-color-text-other-month": {
95
+ "value": "{color.text.secondary}",
96
+ "type": "color"
97
+ },
98
+ "date-input-day-color-text-disabled": {
99
+ "value": "{color.text.secondary}",
100
+ "type": "color"
101
+ }
102
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "details-border-radius": {
3
+ "value": "{borderRadius.m}",
4
+ "type": "borderRadius",
5
+ "description": "4px"
6
+ },
7
+ "details-color-bg-hover": {
8
+ "value": "{color.greyscale.100}",
9
+ "type": "color"
10
+ },
11
+ "details-color-text": {
12
+ "value": "{color.interactive.default}",
13
+ "type": "color"
14
+ },
15
+ "details-color-text-hover": {
16
+ "value": "{color.interactive.hover}",
17
+ "type": "color"
18
+ },
19
+ "details-content-left-border": {
20
+ "value": {
21
+ "width": "4px",
22
+ "style": "solid",
23
+ "color": "{color.greyscale.200}"
24
+ },
25
+ "type": "border"
26
+ },
27
+ "details-content-margin-left": {
28
+ "value": "17px",
29
+ "type": "spacing"
30
+ },
31
+ "details-content-padding-bottom": {
32
+ "value": "{space.s}",
33
+ "type": "spacing"
34
+ },
35
+ "details-content-padding-left": {
36
+ "value": "19px",
37
+ "type": "spacing"
38
+ },
39
+ "details-content-padding-right": {
40
+ "value": "{space.m}",
41
+ "type": "spacing"
42
+ },
43
+ "details-content-padding-top": {
44
+ "value": "{space.s}",
45
+ "type": "spacing"
46
+ },
47
+ "details-focus-border": {
48
+ "value": {
49
+ "width": "{borderWidth.l}",
50
+ "style": "solid",
51
+ "color": "{color.interactive.focus}"
52
+ },
53
+ "type": "border"
54
+ },
55
+ "details-margin-bottom": {
56
+ "value": "{space.xs}",
57
+ "type": "spacing"
58
+ },
59
+ "details-padding-bottom": {
60
+ "value": "{space.xs}",
61
+ "type": "spacing"
62
+ },
63
+ "details-padding-left": {
64
+ "value": "{space.xs}",
65
+ "type": "spacing"
66
+ },
67
+ "details-padding-right": {
68
+ "value": "{space.s}",
69
+ "type": "spacing"
70
+ },
71
+ "details-padding-top": {
72
+ "value": "6px",
73
+ "type": "spacing",
74
+ "description": "6px"
75
+ },
76
+ "details-typography": {
77
+ "value": "{typography.body.m}",
78
+ "type": "other"
79
+ },
80
+ "details-text-decoration": {
81
+ "value": "underline",
82
+ "type": "textDecoration"
83
+ }
84
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "divider-color": {
3
+ "value": "{color.greyscale.200}",
4
+ "type": "color"
5
+ }
6
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "dropdown-border": {
3
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.700}",
4
+ "type": "other"
5
+ },
6
+ "dropdown-border-disabled": {
7
+ "value": "inset 0 0 0 {borderWidth.s} {color.greyscale.200}",
8
+ "type": "other"
9
+ },
10
+ "dropdown-border-error": {
11
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.error}",
12
+ "type": "other"
13
+ },
14
+ "dropdown-border-focus": {
15
+ "value": "0 0 0 {borderWidth.l} {color.interactive.focus}",
16
+ "type": "other"
17
+ },
18
+ "dropdown-border-hover": {
19
+ "value": "inset 0 0 0 {borderWidth.m} {color.interactive.hover}",
20
+ "type": "other"
21
+ },
22
+ "dropdown-border-radius": {
23
+ "value": "{borderRadius.m}",
24
+ "type": "borderRadius"
25
+ },
26
+ "dropdown-color-bg": {
27
+ "value": "{color.greyscale.white}",
28
+ "type": "color"
29
+ },
30
+ "dropdown-color-bg-disabled": {
31
+ "value": "{color.greyscale.100}",
32
+ "type": "color"
33
+ },
34
+ "dropdown-color-text": {
35
+ "value": "{color.text.default}",
36
+ "type": "color"
37
+ },
38
+ "dropdown-color-text-disabled": {
39
+ "value": "{color.text.disabled}",
40
+ "type": "color"
41
+ },
42
+ "dropdown-color-text-placeholder": {
43
+ "value": "{color.text.secondary}",
44
+ "type": "color"
45
+ },
46
+ "dropdown-item-color-bg": {
47
+ "value": "{color.greyscale.white}",
48
+ "type": "color"
49
+ },
50
+ "dropdown-item-color-bg-disabled": {
51
+ "value": "",
52
+ "type": "color"
53
+ },
54
+ "dropdown-item-color-bg-hover": {
55
+ "value": "{color.greyscale.100}",
56
+ "type": "color"
57
+ },
58
+ "dropdown-item-color-bg-selected": {
59
+ "value": "{color.interactive.default}",
60
+ "type": "color"
61
+ },
62
+ "dropdown-item-color-bg-selected-hover": {
63
+ "value": "{color.interactive.hover}",
64
+ "type": "color"
65
+ },
66
+ "dropdown-item-color-text": {
67
+ "value": "{color.text.default}",
68
+ "type": "color"
69
+ },
70
+ "dropdown-item-color-text-disabled": {
71
+ "value": "",
72
+ "type": "color"
73
+ },
74
+ "dropdown-item-color-text-hover": {
75
+ "value": "{color.interactive.hover}",
76
+ "type": "color"
77
+ },
78
+ "dropdown-item-color-text-selected": {
79
+ "value": "{color.greyscale.white}",
80
+ "type": "color"
81
+ },
82
+ "dropdown-item-color-text-selected-hover": {
83
+ "value": "{color.greyscale.white}",
84
+ "type": "color"
85
+ },
86
+ "dropdown-item-padding": {
87
+ "value": "7px {dropdown-padding-lr} 9px",
88
+ "type": "spacing"
89
+ },
90
+ "dropdown-padding": {
91
+ "value": "6px {dropdown-padding-lr} 8px",
92
+ "type": "spacing"
93
+ },
94
+ "dropdown-padding-lr": {
95
+ "value": "{space.s}",
96
+ "type": "spacing"
97
+ },
98
+ "dropdown-space-icon-text": {
99
+ "value": "{space.s}",
100
+ "type": "spacing"
101
+ },
102
+ "dropdown-transition": {
103
+ "value": "box-shadow 0.05s ease-in",
104
+ "type": "other"
105
+ },
106
+ "dropdown-typography": {
107
+ "value": "{typography.body.m}",
108
+ "type": "other"
109
+ }
110
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "file-upload-border": {
3
+ "value": {
4
+ "width": "{borderWidth.m}",
5
+ "style": "dashed",
6
+ "color": "{color.interactive.default}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "file-upload-border-active": {
11
+ "value": {
12
+ "width": "{borderWidth.m}",
13
+ "style": "solid",
14
+ "color": "{color.interactive.hover}"
15
+ },
16
+ "type": "border"
17
+ },
18
+ "file-upload-border-drag": {
19
+ "value": {
20
+ "width": "{borderWidth.m}",
21
+ "style": "solid",
22
+ "color": "{color.interactive.hover}"
23
+ },
24
+ "type": "border"
25
+ },
26
+ "file-upload-border-focus": {
27
+ "value": "0 0 0 {borderWidth.l} {color.interactive.focus}",
28
+ "type": "other"
29
+ },
30
+ "file-upload-border-hover": {
31
+ "value": {
32
+ "width": "{borderWidth.m}",
33
+ "style": "dashed",
34
+ "color": "{color.interactive.hover}"
35
+ },
36
+ "type": "border"
37
+ },
38
+ "file-upload-border-radius": {
39
+ "value": "{borderRadius.m}",
40
+ "type": "borderRadius"
41
+ },
42
+ "file-upload-color-bg": {
43
+ "value": "{color.info.background}",
44
+ "type": "color"
45
+ },
46
+ "file-upload-color-bg-active": {
47
+ "value": "{color.info.background}",
48
+ "type": "color"
49
+ },
50
+ "file-upload-color-bg-drag": {
51
+ "value": "{color.info.background}",
52
+ "type": "color"
53
+ },
54
+ "file-upload-color-bg-focus": {
55
+ "value": "{color.greyscale.100}",
56
+ "type": "color"
57
+ },
58
+ "file-upload-color-bg-hover": {
59
+ "value": "{color.greyscale.100}",
60
+ "type": "color"
61
+ },
62
+ "file-upload-help-text": {
63
+ "value": "{typography.body.s}",
64
+ "type": "other"
65
+ },
66
+ "file-upload-help-text-color": {
67
+ "value": "{color.greyscale.700}",
68
+ "type": "color"
69
+ },
70
+ "file-upload-instruction-color": {
71
+ "value": "{color.interactive.default}",
72
+ "type": "color"
73
+ },
74
+ "file-upload-instruction-color-active": {
75
+ "value": "{color.interactive.hover}",
76
+ "type": "color"
77
+ },
78
+ "file-upload-instruction-color-drag": {
79
+ "value": "{color.interactive.hover}",
80
+ "type": "color"
81
+ },
82
+ "file-upload-instruction-color-focus": {
83
+ "value": "{color.interactive.hover}",
84
+ "type": "color"
85
+ },
86
+ "file-upload-instruction-color-hover": {
87
+ "value": "{color.interactive.hover}",
88
+ "type": "color"
89
+ },
90
+ "file-upload-instruction-text": {
91
+ "value": "{typography.body.m}",
92
+ "type": "other"
93
+ },
94
+ "file-upload-padding": {
95
+ "value": "{space.xl}",
96
+ "type": "spacing"
97
+ },
98
+ "file-upload-text-gap": {
99
+ "value": "{space.m}",
100
+ "type": "spacing"
101
+ }
102
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "footer-border-bottom": {
3
+ "value": {
4
+ "width": "1rem",
5
+ "style": "solid",
6
+ "color": "{color.brand.default}"
7
+ },
8
+ "type": "border"
9
+ },
10
+ "footer-border-top": {
11
+ "value": {
12
+ "width": "{borderWidth.m}",
13
+ "style": "solid",
14
+ "color": "{color.greyscale.200}"
15
+ },
16
+ "type": "border"
17
+ },
18
+ "footer-color-bg": {
19
+ "value": "{color.greyscale.100}",
20
+ "type": "color"
21
+ },
22
+ "footer-color-links": {
23
+ "value": "{color.text.default}",
24
+ "type": "color"
25
+ },
26
+ "footer-color-links-hover": {
27
+ "value": "{color.greyscale.700}",
28
+ "type": "color"
29
+ },
30
+ "footer-link-focus": {
31
+ "value": {
32
+ "width": "{borderWidth.l}",
33
+ "style": "solid",
34
+ "color": "{color.interactive.focus}"
35
+ },
36
+ "type": "border"
37
+ },
38
+ "footer-padding-large-screen": {
39
+ "value": "{space.2xl} {space.3xl}",
40
+ "type": "spacing"
41
+ },
42
+ "footer-padding-medium-screen": {
43
+ "value": "{space.2xl} {space.xl}",
44
+ "type": "spacing"
45
+ },
46
+ "footer-padding-small-screen": {
47
+ "value": "{space.xl} {space.m}",
48
+ "type": "spacing"
49
+ },
50
+ "footer-size-logo-desktop": {
51
+ "value": "155px",
52
+ "type": "sizing"
53
+ },
54
+ "footer-size-logo-mobile": {
55
+ "value": "133px",
56
+ "type": "sizing"
57
+ },
58
+ "footer-size-logo-tablet": {
59
+ "value": "155px",
60
+ "type": "sizing"
61
+ },
62
+ "footer-typography-small-screen": {
63
+ "value": "{fontSize.3}",
64
+ "type": "other"
65
+ },
66
+ "footer-meta-links-gap": {
67
+ "value": "{space.l}",
68
+ "type": "spacing"
69
+ },
70
+ "footer-meta-links-gap-small-screen": {
71
+ "value": "20px",
72
+ "type": "spacing"
73
+ }
74
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "form-item-error-message-color": {
3
+ "value": "{color.interactive.error}",
4
+ "type": "color"
5
+ },
6
+ "form-item-help-message-color": {
7
+ "value": "{color.text.default}",
8
+ "type": "color"
9
+ },
10
+ "form-item-label-large-padding-bottom": {
11
+ "value": "{space.m}",
12
+ "type": "spacing"
13
+ },
14
+ "form-item-label-large-typography": {
15
+ "value": "{typography.heading.l}",
16
+ "type": "other"
17
+ },
18
+ "form-item-label-padding-bottom": {
19
+ "value": "{space.s}",
20
+ "type": "spacing"
21
+ },
22
+ "form-item-label-typography": {
23
+ "value": "{typography.heading.s}",
24
+ "type": "other"
25
+ },
26
+ "form-item-message-gap": {
27
+ "value": "{space.2xs}",
28
+ "type": "spacing"
29
+ },
30
+ "form-item-message-margin-top": {
31
+ "value": "{space.s}",
32
+ "type": "spacing"
33
+ },
34
+ "form-item-message-typography": {
35
+ "value": "{typography.body.xs}",
36
+ "type": "other"
37
+ },
38
+ "form-item-optional-label-color": {
39
+ "value": "{color.greyscale.700}",
40
+ "type": "color"
41
+ },
42
+ "form-item-optional-label-typography": {
43
+ "value": "{typography.body.xs}",
44
+ "type": "other"
45
+ }
46
+ }