@amsterdam/design-system-tokens 3.3.0 → 4.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 (109) hide show
  1. package/CHANGELOG.md +61 -3
  2. package/README.md +131 -22
  3. package/build.js +11 -1
  4. package/dist/compact.css +9 -2
  5. package/dist/compact.d.ts +21 -6
  6. package/dist/compact.json +33 -18
  7. package/dist/compact.mjs +21 -13
  8. package/dist/compact.scss +9 -2
  9. package/dist/compact.theme.css +9 -2
  10. package/dist/index.css +177 -165
  11. package/dist/index.d.ts +250 -226
  12. package/dist/index.json +345 -321
  13. package/dist/index.mjs +285 -267
  14. package/dist/index.scss +177 -165
  15. package/dist/index.theme.css +177 -165
  16. package/package.json +2 -2
  17. package/src/brand/ams/aspect-ratio.tokens.json +24 -6
  18. package/src/brand/ams/border.compact.tokens.json +20 -0
  19. package/src/brand/ams/border.tokens.json +25 -0
  20. package/src/brand/ams/color.compact.tokens.json +15 -0
  21. package/src/brand/ams/color.tokens.json +37 -49
  22. package/src/brand/ams/cursor.tokens.json +9 -2
  23. package/src/brand/ams/focus.tokens.json +1 -0
  24. package/src/brand/ams/space.compact.tokens.json +16 -4
  25. package/src/brand/ams/space.tokens.json +31 -6
  26. package/src/brand/ams/typography.compact.tokens.json +36 -27
  27. package/src/brand/ams/typography.tokens.json +60 -32
  28. package/src/common/ams/inputs.tokens.json +41 -19
  29. package/src/common/ams/links.tokens.json +35 -10
  30. package/src/components/ams/accordion.tokens.json +18 -11
  31. package/src/components/ams/action-group.tokens.json +2 -2
  32. package/src/components/ams/alert.tokens.json +38 -20
  33. package/src/components/ams/avatar.tokens.json +79 -29
  34. package/src/components/ams/badge.tokens.json +60 -23
  35. package/src/components/ams/blockquote.tokens.json +14 -5
  36. package/src/components/ams/body.compact.tokens.json +12 -0
  37. package/src/components/ams/body.tokens.json +12 -0
  38. package/src/components/ams/breadcrumb.tokens.json +36 -15
  39. package/src/components/ams/button.tokens.json +74 -33
  40. package/src/components/ams/call-to-action-link.tokens.json +29 -16
  41. package/src/components/ams/card.tokens.json +30 -17
  42. package/src/components/ams/character-count.tokens.json +14 -5
  43. package/src/components/ams/checkbox.tokens.json +106 -39
  44. package/src/components/ams/column.tokens.json +10 -10
  45. package/src/components/ams/date-input.tokens.json +56 -23
  46. package/src/components/ams/description-list.tokens.json +101 -23
  47. package/src/components/ams/dialog.tokens.json +104 -28
  48. package/src/components/ams/error-message.tokens.json +13 -6
  49. package/src/components/ams/field-set.tokens.json +40 -17
  50. package/src/components/ams/field.tokens.json +18 -7
  51. package/src/components/ams/figure.tokens.json +16 -7
  52. package/src/components/ams/file-input.tokens.json +69 -30
  53. package/src/components/ams/file-list.tokens.json +20 -11
  54. package/src/components/ams/grid.compact.tokens.json +24 -2
  55. package/src/components/ams/grid.tokens.json +77 -24
  56. package/src/components/ams/heading.tokens.json +38 -36
  57. package/src/components/ams/hint.tokens.json +6 -2
  58. package/src/components/ams/icon-button.tokens.json +46 -16
  59. package/src/components/ams/icon.tokens.json +19 -23
  60. package/src/components/ams/image-slider.tokens.json +28 -16
  61. package/src/components/ams/image.tokens.json +4 -1
  62. package/src/components/ams/invalid-form-alert.tokens.json +2 -2
  63. package/src/components/ams/label.tokens.json +18 -6
  64. package/src/components/ams/link-list.tokens.json +50 -22
  65. package/src/components/ams/link.tokens.json +38 -25
  66. package/src/components/ams/logo.tokens.json +6 -2
  67. package/src/components/ams/mark.tokens.json +3 -1
  68. package/src/components/ams/menu.tokens.json +81 -28
  69. package/src/components/ams/ordered-list.tokens.json +39 -25
  70. package/src/components/ams/page-footer.tokens.json +70 -26
  71. package/src/components/ams/page-header.compact.tokens.json +2 -1
  72. package/src/components/ams/page-header.tokens.json +128 -59
  73. package/src/components/ams/page.compact.tokens.json +12 -0
  74. package/src/components/ams/page.tokens.json +5 -3
  75. package/src/components/ams/pagination.tokens.json +37 -17
  76. package/src/components/ams/paragraph.tokens.json +22 -8
  77. package/src/components/ams/password-input.tokens.json +47 -21
  78. package/src/components/ams/progress-list.tokens.json +194 -52
  79. package/src/components/ams/radio.tokens.json +97 -36
  80. package/src/components/ams/row.tokens.json +10 -10
  81. package/src/components/ams/search-field.tokens.json +57 -24
  82. package/src/components/ams/select.tokens.json +63 -23
  83. package/src/components/ams/skip-link.tokens.json +23 -12
  84. package/src/components/ams/spotlight.tokens.json +21 -7
  85. package/src/components/ams/standalone-link.tokens.json +44 -18
  86. package/src/components/ams/switch.tokens.json +40 -10
  87. package/src/components/ams/tab-navigation.tokens.json +205 -0
  88. package/src/components/ams/table-of-contents.tokens.json +38 -20
  89. package/src/components/ams/table.tokens.json +29 -10
  90. package/src/components/ams/tabs.tokens.json +39 -20
  91. package/src/components/ams/text-area.tokens.json +49 -23
  92. package/src/components/ams/text-input.tokens.json +47 -19
  93. package/src/components/ams/time-input.tokens.json +56 -21
  94. package/src/components/ams/unordered-list.tokens.json +37 -25
  95. package/style-dictionary/transforms/dtcg-font-family.js +32 -0
  96. package/src/brand/ams/color.deprecated.tokens.json +0 -13
  97. package/src/brand/ams/typography.deprecated.compact.tokens.json +0 -26
  98. package/src/brand/ams/typography.deprecated.tokens.json +0 -40
  99. package/src/components/ams/accordion.deprecated.tokens.json +0 -39
  100. package/src/components/ams/checkbox.deprecated.tokens.json +0 -59
  101. package/src/components/ams/date-input.deprecated.tokens.json +0 -38
  102. package/src/components/ams/field-set.deprecated.tokens.json +0 -16
  103. package/src/components/ams/field.deprecated.tokens.json +0 -14
  104. package/src/components/ams/icon.deprecated.tokens.json +0 -22
  105. package/src/components/ams/menu.deprecated.tokens.json +0 -36
  106. package/src/components/ams/page-heading.deprecated.tokens.json +0 -46
  107. package/src/components/ams/standalone-link.deprecated.tokens.json +0 -38
  108. package/src/components/ams/table-of-contents.deprecated.tokens.json +0 -24
  109. package/src/components/ams/time-input.deprecated.tokens.json +0 -38
@@ -14,11 +14,16 @@
14
14
  }
15
15
  },
16
16
  "cursor": {
17
- "$value": "{ams.cursor.interactive}"
17
+ "$value": "{ams.cursor.interactive}",
18
+ "$extensions": {
19
+ "nl.amsterdam.type": "cursor"
20
+ }
18
21
  },
19
22
  "font-family": {
20
23
  "$value": "{ams.typography.font-family}",
21
- "$type": "fontFamily"
24
+ "$extensions": {
25
+ "nl.amsterdam.type": "fontFamily"
26
+ }
22
27
  },
23
28
  "font-size": {
24
29
  "$value": "{ams.typography.body-text.font-size}",
@@ -28,101 +33,123 @@
28
33
  },
29
34
  "font-weight": {
30
35
  "$value": "{ams.typography.body-text.font-weight}",
31
- "$type": "fontWeight"
36
+ "$extensions": {
37
+ "nl.amsterdam.type": "fontWeight"
38
+ }
32
39
  },
33
40
  "line-height": {
34
41
  "$value": "{ams.inputs.line-height}",
35
42
  "$extensions": {
36
- "nl.amsterdam.type": "lineHeight"
43
+ "nl.amsterdam.subtype": "lineHeight",
44
+ "nl.amsterdam.type": "number"
37
45
  }
38
46
  },
39
47
  "gap": {
40
48
  "$value": "{ams.space.s}",
41
- "$type": "dimension",
42
49
  "$extensions": {
43
- "nl.amsterdam.subtype": "space"
50
+ "nl.amsterdam.subtype": "space",
51
+ "nl.amsterdam.type": "dimension"
44
52
  }
45
53
  },
46
54
  "outline-offset": {
47
55
  "$value": "{ams.focus.outline-offset}",
48
- "$type": "dimension",
49
56
  "$extensions": {
50
- "nl.amsterdam.subtype": "space"
57
+ "nl.amsterdam.subtype": "space",
58
+ "nl.amsterdam.type": "dimension"
51
59
  }
52
60
  },
53
61
  "padding-block": {
54
62
  "$value": "{ams.space.s}",
55
- "$type": "dimension",
56
63
  "$extensions": {
57
- "nl.amsterdam.subtype": "space"
64
+ "nl.amsterdam.subtype": "space",
65
+ "nl.amsterdam.type": "dimension"
58
66
  }
59
67
  },
60
68
  "padding-inline": {
61
69
  "$value": "{ams.space.m}",
62
- "$type": "dimension",
63
70
  "$extensions": {
64
- "nl.amsterdam.subtype": "space"
71
+ "nl.amsterdam.subtype": "space",
72
+ "nl.amsterdam.type": "dimension"
65
73
  }
66
74
  },
67
75
  "disabled": {
68
76
  "cursor": {
69
- "$value": "{ams.cursor.disabled}"
77
+ "$value": "{ams.cursor.disabled}",
78
+ "$extensions": {
79
+ "nl.amsterdam.type": "cursor"
80
+ }
70
81
  }
71
82
  },
72
83
  "icon-only": {
73
84
  "padding-block": {
74
85
  "$value": "{ams.space.s}",
75
- "$type": "dimension",
76
86
  "$extensions": {
77
- "nl.amsterdam.subtype": "space"
87
+ "nl.amsterdam.subtype": "space",
88
+ "nl.amsterdam.type": "dimension"
78
89
  }
79
90
  },
80
91
  "padding-inline": {
81
92
  "$value": "{ams.space.s}",
82
- "$type": "dimension",
83
93
  "$extensions": {
84
- "nl.amsterdam.subtype": "space"
94
+ "nl.amsterdam.subtype": "space",
95
+ "nl.amsterdam.type": "dimension"
85
96
  }
86
97
  }
87
98
  },
88
99
  "primary": {
89
100
  "background-color": {
90
101
  "$value": "{ams.color.interactive.default}",
91
- "$type": "color"
102
+ "$extensions": {
103
+ "nl.amsterdam.type": "color"
104
+ }
92
105
  },
93
106
  "border-color": {
94
107
  "$value": "{ams.color.interactive.default}",
95
- "$type": "color"
108
+ "$extensions": {
109
+ "nl.amsterdam.type": "color"
110
+ }
96
111
  },
97
112
  "color": {
98
113
  "$value": "{ams.color.text.inverse}",
99
- "$type": "color"
114
+ "$extensions": {
115
+ "nl.amsterdam.type": "color"
116
+ }
100
117
  },
101
118
  "disabled": {
102
119
  "background-color": {
103
120
  "$value": "{ams.color.interactive.disabled}",
104
- "$type": "color"
121
+ "$extensions": {
122
+ "nl.amsterdam.type": "color"
123
+ }
105
124
  },
106
125
  "border-color": {
107
126
  "$value": "{ams.color.interactive.disabled}",
108
- "$type": "color"
127
+ "$extensions": {
128
+ "nl.amsterdam.type": "color"
129
+ }
109
130
  }
110
131
  },
111
132
  "hover": {
112
133
  "background-color": {
113
134
  "$value": "{ams.color.interactive.hover}",
114
- "$type": "color"
135
+ "$extensions": {
136
+ "nl.amsterdam.type": "color"
137
+ }
115
138
  },
116
139
  "border-color": {
117
140
  "$value": "{ams.color.interactive.hover}",
118
- "$type": "color"
141
+ "$extensions": {
142
+ "nl.amsterdam.type": "color"
143
+ }
119
144
  }
120
145
  }
121
146
  },
122
147
  "secondary": {
123
148
  "background-color": {
124
- "$value": "{ams.color.background}",
125
- "$type": "color"
149
+ "$value": "{ams.color.background.default}",
150
+ "$extensions": {
151
+ "nl.amsterdam.type": "color"
152
+ }
126
153
  },
127
154
  "border-color": {
128
155
  "$value": "currentColor",
@@ -130,16 +157,22 @@
130
157
  },
131
158
  "color": {
132
159
  "$value": "{ams.color.interactive.default}",
133
- "$type": "color"
160
+ "$extensions": {
161
+ "nl.amsterdam.type": "color"
162
+ }
134
163
  },
135
164
  "disabled": {
136
165
  "border-color": {
137
166
  "$value": "{ams.color.interactive.disabled}",
138
- "$type": "color"
167
+ "$extensions": {
168
+ "nl.amsterdam.type": "color"
169
+ }
139
170
  },
140
171
  "color": {
141
172
  "$value": "{ams.color.interactive.disabled}",
142
- "$type": "color"
173
+ "$extensions": {
174
+ "nl.amsterdam.type": "color"
175
+ }
143
176
  }
144
177
  },
145
178
  "hover": {
@@ -165,7 +198,9 @@
165
198
  },
166
199
  "color": {
167
200
  "$value": "{ams.color.interactive.hover}",
168
- "$type": "color"
201
+ "$extensions": {
202
+ "nl.amsterdam.type": "color"
203
+ }
169
204
  }
170
205
  }
171
206
  },
@@ -180,12 +215,16 @@
180
215
  },
181
216
  "color": {
182
217
  "$value": "{ams.color.interactive.default}",
183
- "$type": "color"
218
+ "$extensions": {
219
+ "nl.amsterdam.type": "color"
220
+ }
184
221
  },
185
222
  "disabled": {
186
223
  "color": {
187
224
  "$value": "{ams.color.interactive.disabled}",
188
- "$type": "color"
225
+ "$extensions": {
226
+ "nl.amsterdam.type": "color"
227
+ }
189
228
  }
190
229
  },
191
230
  "hover": {
@@ -195,7 +234,9 @@
195
234
  },
196
235
  "color": {
197
236
  "$value": "{ams.color.interactive.hover}",
198
- "$type": "color"
237
+ "$extensions": {
238
+ "nl.amsterdam.type": "color"
239
+ }
199
240
  }
200
241
  }
201
242
  }
@@ -7,11 +7,15 @@
7
7
  },
8
8
  "color": {
9
9
  "$value": "{ams.color.text.inverse}",
10
- "$type": "color"
10
+ "$extensions": {
11
+ "nl.amsterdam.type": "color"
12
+ }
11
13
  },
12
14
  "font-family": {
13
15
  "$value": "{ams.typography.font-family}",
14
- "$type": "fontFamily"
16
+ "$extensions": {
17
+ "nl.amsterdam.type": "fontFamily"
18
+ }
15
19
  },
16
20
  "font-size": {
17
21
  "$value": "{ams.typography.body-text.font-size}",
@@ -21,44 +25,50 @@
21
25
  },
22
26
  "font-weight": {
23
27
  "$value": "{ams.typography.body-text.font-weight}",
24
- "$type": "fontWeight"
28
+ "$extensions": {
29
+ "nl.amsterdam.type": "fontWeight"
30
+ }
25
31
  },
26
32
  "line-height": {
27
33
  "$value": "{ams.typography.body-text.line-height}",
28
34
  "$extensions": {
29
- "nl.amsterdam.type": "lineHeight"
35
+ "nl.amsterdam.subtype": "lineHeight",
36
+ "nl.amsterdam.type": "number"
30
37
  }
31
38
  },
32
39
  "outline-offset": {
33
40
  "$value": "{ams.focus.outline-offset}",
34
- "$type": "dimension",
35
41
  "$extensions": {
36
- "nl.amsterdam.subtype": "space"
42
+ "nl.amsterdam.subtype": "space",
43
+ "nl.amsterdam.type": "dimension"
37
44
  }
38
45
  },
39
46
  "padding-block": {
40
47
  "$value": "{ams.space.xs}",
41
- "$type": "dimension",
42
48
  "$extensions": {
43
- "nl.amsterdam.subtype": "space"
49
+ "nl.amsterdam.subtype": "space",
50
+ "nl.amsterdam.type": "dimension"
44
51
  }
45
52
  },
46
53
  "padding-inline": {
47
54
  "$value": "{ams.space.m}",
48
- "$type": "dimension",
49
55
  "$extensions": {
50
- "nl.amsterdam.subtype": "space"
56
+ "nl.amsterdam.subtype": "space",
57
+ "nl.amsterdam.type": "dimension"
51
58
  }
52
59
  },
53
60
  "text-decoration-thickness": {
54
61
  "$value": "{ams.links.text-decoration-thickness}",
55
- "$type": "dimension"
62
+ "$extensions": {
63
+ "nl.amsterdam.subtype": "space",
64
+ "nl.amsterdam.type": "dimension"
65
+ }
56
66
  },
57
67
  "text-underline-offset": {
58
68
  "$value": "{ams.links.text-underline-offset}",
59
- "$type": "dimension",
60
69
  "$extensions": {
61
- "nl.amsterdam.subtype": "space"
70
+ "nl.amsterdam.subtype": "space",
71
+ "nl.amsterdam.type": "dimension"
62
72
  }
63
73
  },
64
74
  "hover": {
@@ -68,13 +78,16 @@
68
78
  },
69
79
  "text-decoration-thickness": {
70
80
  "$value": "{ams.links.hover.text-decoration-thickness}",
71
- "$type": "dimension"
81
+ "$extensions": {
82
+ "nl.amsterdam.subtype": "space",
83
+ "nl.amsterdam.type": "dimension"
84
+ }
72
85
  },
73
86
  "text-underline-offset": {
74
87
  "$value": "{ams.links.hover.text-underline-offset}",
75
- "$type": "dimension",
76
88
  "$extensions": {
77
- "nl.amsterdam.subtype": "space"
89
+ "nl.amsterdam.subtype": "space",
90
+ "nl.amsterdam.type": "dimension"
78
91
  }
79
92
  }
80
93
  }
@@ -4,71 +4,84 @@
4
4
  "heading": {
5
5
  "margin-block-end": {
6
6
  "$value": "{ams.space.xs}",
7
- "$type": "dimension",
8
7
  "$extensions": {
9
- "nl.amsterdam.subtype": "space"
8
+ "nl.amsterdam.subtype": "space",
9
+ "nl.amsterdam.type": "dimension"
10
10
  }
11
11
  }
12
12
  },
13
13
  "heading-group": {
14
14
  "gap": {
15
15
  "$value": "{ams.space.xs}",
16
- "$type": "dimension",
17
16
  "$extensions": {
18
- "nl.amsterdam.subtype": "space"
17
+ "nl.amsterdam.subtype": "space",
18
+ "nl.amsterdam.type": "dimension"
19
19
  }
20
20
  },
21
21
  "margin-block-end": {
22
22
  "$value": "{ams.space.xs}",
23
- "$type": "dimension",
24
23
  "$extensions": {
25
- "nl.amsterdam.subtype": "space"
24
+ "nl.amsterdam.subtype": "space",
25
+ "nl.amsterdam.type": "dimension"
26
26
  }
27
27
  }
28
28
  },
29
29
  "image": {
30
30
  "margin-block-end": {
31
31
  "$value": "{ams.space.s}",
32
- "$type": "dimension",
33
32
  "$extensions": {
34
- "nl.amsterdam.subtype": "space"
33
+ "nl.amsterdam.subtype": "space",
34
+ "nl.amsterdam.type": "dimension"
35
35
  }
36
36
  }
37
37
  },
38
38
  "link": {
39
39
  "color": {
40
40
  "$value": "{ams.links.color}",
41
- "$type": "color"
41
+ "$extensions": {
42
+ "nl.amsterdam.type": "color"
43
+ }
42
44
  },
43
45
  "text-decoration-line": {
44
- "$value": "{ams.links.subtle.text-decoration-line}"
46
+ "$value": "{ams.links.subtle.text-decoration-line}",
47
+ "$extensions": {
48
+ "nl.amsterdam.type": "textDecorationLine"
49
+ }
45
50
  },
46
51
  "text-decoration-thickness": {
47
52
  "$value": "{ams.links.text-decoration-thickness}",
48
- "$type": "dimension"
53
+ "$extensions": {
54
+ "nl.amsterdam.subtype": "space",
55
+ "nl.amsterdam.type": "dimension"
56
+ }
49
57
  },
50
58
  "text-underline-offset": {
51
59
  "$value": "{ams.links.text-underline-offset}",
52
- "$type": "dimension",
53
60
  "$extensions": {
54
- "nl.amsterdam.subtype": "space"
61
+ "nl.amsterdam.subtype": "space",
62
+ "nl.amsterdam.type": "dimension"
55
63
  }
56
64
  },
57
65
  "hover": {
58
66
  "color": {
59
67
  "$value": "{ams.links.hover.color}",
60
- "$type": "color"
68
+ "$extensions": {
69
+ "nl.amsterdam.type": "color"
70
+ }
61
71
  },
62
72
  "text-decoration-line": {
63
- "$value": "{ams.links.subtle.hover.text-decoration-line}"
73
+ "$value": "{ams.links.subtle.hover.text-decoration-line}",
74
+ "$extensions": {
75
+ "nl.amsterdam.type": "textDecorationLine"
76
+ }
64
77
  }
65
78
  }
66
79
  },
67
80
  "outline-offset": {
68
81
  "$value": "{ams.focus.outline-offset}",
69
- "$type": "dimension",
70
82
  "$extensions": {
71
- "nl.amsterdam.subtype": "space"
83
+ "nl.amsterdam.subtype": "space",
84
+ "nl.amsterdam.type": "dimension"
72
85
  }
73
86
  }
74
87
  }
@@ -3,11 +3,15 @@
3
3
  "character-count": {
4
4
  "color": {
5
5
  "$value": "{ams.color.text.default}",
6
- "$type": "color"
6
+ "$extensions": {
7
+ "nl.amsterdam.type": "color"
8
+ }
7
9
  },
8
10
  "font-family": {
9
11
  "$value": "{ams.typography.font-family}",
10
- "$type": "fontFamily"
12
+ "$extensions": {
13
+ "nl.amsterdam.type": "fontFamily"
14
+ }
11
15
  },
12
16
  "font-size": {
13
17
  "$value": "{ams.typography.body-text.small.font-size}",
@@ -17,18 +21,23 @@
17
21
  },
18
22
  "font-weight": {
19
23
  "$value": "{ams.typography.body-text.font-weight}",
20
- "$type": "fontWeight"
24
+ "$extensions": {
25
+ "nl.amsterdam.type": "fontWeight"
26
+ }
21
27
  },
22
28
  "line-height": {
23
29
  "$value": "{ams.typography.body-text.small.line-height}",
24
30
  "$extensions": {
25
- "nl.amsterdam.type": "lineHeight"
31
+ "nl.amsterdam.subtype": "lineHeight",
32
+ "nl.amsterdam.type": "number"
26
33
  }
27
34
  },
28
35
  "error": {
29
36
  "color": {
30
37
  "$value": "{ams.color.feedback.error}",
31
- "$type": "color"
38
+ "$extensions": {
39
+ "nl.amsterdam.type": "color"
40
+ }
32
41
  }
33
42
  }
34
43
  }