@amsterdam/design-system-tokens 3.0.0 → 3.2.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 (107) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +45 -1
  3. package/build.js +25 -35
  4. package/dist/compact.css +2 -2
  5. package/dist/compact.d.ts +3 -3
  6. package/dist/compact.mjs +2 -2
  7. package/dist/compact.scss +2 -2
  8. package/dist/compact.theme.css +2 -2
  9. package/dist/index.css +118 -47
  10. package/dist/index.d.ts +174 -9
  11. package/dist/index.json +197 -32
  12. package/dist/index.mjs +176 -70
  13. package/dist/index.scss +118 -47
  14. package/dist/index.theme.css +118 -47
  15. package/package.json +2 -2
  16. package/src/brand/ams/aspect-ratio.tokens.json +18 -6
  17. package/src/brand/ams/border.compact.tokens.json +36 -4
  18. package/src/brand/ams/border.tokens.json +36 -4
  19. package/src/brand/ams/color.deprecated.tokens.json +3 -2
  20. package/src/brand/ams/color.tokens.json +106 -23
  21. package/src/brand/ams/cursor.tokens.json +6 -2
  22. package/src/brand/ams/focus.tokens.json +10 -1
  23. package/src/brand/ams/space.compact.tokens.json +30 -6
  24. package/src/brand/ams/space.tokens.json +24 -6
  25. package/src/brand/ams/typography.compact.tokens.json +110 -18
  26. package/src/brand/ams/typography.deprecated.compact.tokens.json +10 -4
  27. package/src/brand/ams/typography.deprecated.tokens.json +20 -8
  28. package/src/brand/ams/typography.tokens.json +131 -24
  29. package/src/common/ams/inputs.tokens.json +121 -18
  30. package/src/common/ams/links.tokens.json +72 -12
  31. package/src/components/ams/accordion.deprecated.tokens.json +29 -7
  32. package/src/components/ams/accordion.tokens.json +46 -8
  33. package/src/components/ams/action-group.tokens.json +7 -1
  34. package/src/components/ams/alert.tokens.json +83 -16
  35. package/src/components/ams/avatar.tokens.json +139 -31
  36. package/src/components/ams/badge.tokens.json +98 -21
  37. package/src/components/ams/blockquote.tokens.json +28 -6
  38. package/src/components/ams/breadcrumb.tokens.json +68 -15
  39. package/src/components/ams/button.tokens.json +176 -34
  40. package/src/components/ams/call-to-action-link.tokens.json +73 -14
  41. package/src/components/ams/card.tokens.json +60 -11
  42. package/src/components/ams/character-count.tokens.json +28 -6
  43. package/src/components/ams/checkbox.deprecated.tokens.json +23 -7
  44. package/src/components/ams/checkbox.tokens.json +154 -36
  45. package/src/components/ams/column.tokens.json +35 -5
  46. package/src/components/ams/date-input.deprecated.tokens.json +14 -8
  47. package/src/components/ams/date-input.tokens.json +92 -25
  48. package/src/components/ams/description-list.tokens.json +86 -13
  49. package/src/components/ams/dialog.tokens.json +144 -23
  50. package/src/components/ams/error-message.tokens.json +31 -6
  51. package/src/components/ams/field-set.deprecated.tokens.json +8 -1
  52. package/src/components/ams/field-set.tokens.json +69 -13
  53. package/src/components/ams/field.deprecated.tokens.json +8 -1
  54. package/src/components/ams/field.tokens.json +24 -4
  55. package/src/components/ams/figure.tokens.json +35 -7
  56. package/src/components/ams/file-input.tokens.json +143 -29
  57. package/src/components/ams/file-list.tokens.json +49 -9
  58. package/src/components/ams/grid.compact.tokens.json +7 -1
  59. package/src/components/ams/grid.tokens.json +79 -13
  60. package/src/components/ams/heading.tokens.json +91 -17
  61. package/src/components/ams/hint.tokens.json +8 -2
  62. package/src/components/ams/icon-button.tokens.json +69 -17
  63. package/src/components/ams/icon.deprecated.tokens.json +10 -4
  64. package/src/components/ams/icon.tokens.json +112 -19
  65. package/src/components/ams/image-slider.tokens.json +60 -10
  66. package/src/components/ams/image.tokens.json +3 -1
  67. package/src/components/ams/invalid-form-alert.tokens.json +7 -1
  68. package/src/components/ams/label.tokens.json +31 -7
  69. package/src/components/ams/link-list.tokens.json +106 -21
  70. package/src/components/ams/link.tokens.json +73 -15
  71. package/src/components/ams/logo.tokens.json +23 -5
  72. package/src/components/ams/mark.tokens.json +4 -1
  73. package/src/components/ams/menu.deprecated.tokens.json +12 -8
  74. package/src/components/ams/menu.tokens.json +119 -21
  75. package/src/components/ams/ordered-list.tokens.json +110 -22
  76. package/src/components/ams/page-footer.tokens.json +98 -18
  77. package/src/components/ams/page-header.compact.tokens.json +19 -3
  78. package/src/components/ams/page-header.tokens.json +214 -34
  79. package/src/components/ams/page-heading.deprecated.tokens.json +38 -8
  80. package/src/components/ams/page.tokens.json +24 -5
  81. package/src/components/ams/pagination.tokens.json +70 -14
  82. package/src/components/ams/paragraph.tokens.json +55 -11
  83. package/src/components/ams/password-input.tokens.json +92 -19
  84. package/src/components/ams/progress-list.tokens.json +372 -0
  85. package/src/components/ams/radio.tokens.json +142 -33
  86. package/src/components/ams/row.tokens.json +35 -5
  87. package/src/components/ams/search-field.tokens.json +101 -22
  88. package/src/components/ams/select.tokens.json +97 -24
  89. package/src/components/ams/skip-link.tokens.json +53 -10
  90. package/src/components/ams/spotlight.tokens.json +28 -7
  91. package/src/components/ams/standalone-link.deprecated.tokens.json +16 -10
  92. package/src/components/ams/standalone-link.tokens.json +75 -16
  93. package/src/components/ams/switch.tokens.json +57 -12
  94. package/src/components/ams/table-of-contents.deprecated.tokens.json +16 -3
  95. package/src/components/ams/table-of-contents.tokens.json +80 -15
  96. package/src/components/ams/table.tokens.json +49 -10
  97. package/src/components/ams/tabs.tokens.json +130 -17
  98. package/src/components/ams/text-area.tokens.json +97 -20
  99. package/src/components/ams/text-input.tokens.json +90 -19
  100. package/src/components/ams/time-input.deprecated.tokens.json +14 -8
  101. package/src/components/ams/time-input.tokens.json +90 -25
  102. package/src/components/ams/unordered-list.tokens.json +112 -22
  103. package/style-dictionary/dimensionToString.js +25 -0
  104. package/style-dictionary/transforms/dtcg-dimension.js +30 -0
  105. package/style-dictionary/transforms/name-custom-camel.js +27 -0
  106. package/style-dictionary/transforms/name-custom-kebab.js +27 -0
  107. package/style-dictionary/transforms/shadow-dtcg-dimension-normalize.js +50 -0
@@ -2,39 +2,118 @@
2
2
  "ams": {
3
3
  "search-field": {
4
4
  "input": {
5
- "background-color": { "value": "{ams.inputs.background-color}" },
6
- "border-color": { "value": "{ams.inputs.border-color}" },
7
- "border-style": { "value": "{ams.inputs.border-style}" },
8
- "border-width": { "value": "{ams.inputs.border-width}" },
9
- "color": { "value": "{ams.inputs.color}" },
10
- "font-family": { "value": "{ams.inputs.font-family}" },
11
- "font-size": { "value": "{ams.inputs.font-size}" },
12
- "font-weight": { "value": "{ams.inputs.font-weight}" },
13
- "line-height": { "value": "{ams.inputs.line-height}" },
14
- "outline-offset": { "value": "{ams.inputs.outline-offset}" },
15
- "padding-block": { "value": "{ams.inputs.padding-block}" },
16
- "padding-inline": { "value": "{ams.inputs.padding-inline}" },
5
+ "background-color": {
6
+ "$value": "{ams.inputs.background-color}",
7
+ "$type": "color"
8
+ },
9
+ "border-color": {
10
+ "$value": "{ams.inputs.border-color}",
11
+ "$type": "color"
12
+ },
13
+ "border-style": {
14
+ "$value": "{ams.inputs.border-style}",
15
+ "$extensions": {
16
+ "nl.amsterdam.type": "borderStyle"
17
+ }
18
+ },
19
+ "border-width": {
20
+ "$value": "{ams.inputs.border-width}",
21
+ "$extensions": {
22
+ "nl.amsterdam.type": "borderWidth"
23
+ }
24
+ },
25
+ "color": {
26
+ "$value": "{ams.inputs.color}",
27
+ "$type": "color"
28
+ },
29
+ "font-family": {
30
+ "$value": "{ams.inputs.font-family}",
31
+ "$type": "fontFamily"
32
+ },
33
+ "font-size": {
34
+ "$value": "{ams.inputs.font-size}",
35
+ "$extensions": {
36
+ "nl.amsterdam.type": "fontSize"
37
+ }
38
+ },
39
+ "font-weight": {
40
+ "$value": "{ams.inputs.font-weight}",
41
+ "$type": "fontWeight"
42
+ },
43
+ "line-height": {
44
+ "$value": "{ams.inputs.line-height}",
45
+ "$extensions": {
46
+ "nl.amsterdam.type": "lineHeight"
47
+ }
48
+ },
49
+ "outline-offset": {
50
+ "$value": "{ams.inputs.outline-offset}",
51
+ "$type": "dimension",
52
+ "$extensions": {
53
+ "nl.amsterdam.subtype": "space"
54
+ }
55
+ },
56
+ "padding-block": {
57
+ "$value": "{ams.inputs.padding-block}",
58
+ "$type": "dimension",
59
+ "$extensions": {
60
+ "nl.amsterdam.subtype": "space"
61
+ }
62
+ },
63
+ "padding-inline": {
64
+ "$value": "{ams.inputs.padding-inline}",
65
+ "$type": "dimension",
66
+ "$extensions": {
67
+ "nl.amsterdam.subtype": "space"
68
+ }
69
+ },
17
70
  "hover": {
18
- "box-shadow": { "value": "{ams.inputs.hover.box-shadow}" }
71
+ "box-shadow": {
72
+ "$type": "shadow",
73
+ "$value": "{ams.inputs.hover.box-shadow}"
74
+ }
19
75
  },
20
76
  "invalid": {
21
- "border-color": { "value": "{ams.inputs.invalid.border-color}" },
77
+ "border-color": {
78
+ "$value": "{ams.inputs.invalid.border-color}",
79
+ "$type": "color"
80
+ },
22
81
  "hover": {
23
- "border-color": { "value": "{ams.inputs.invalid.hover.border-color}" },
24
- "box-shadow": { "value": "{ams.inputs.invalid.hover.box-shadow}" }
82
+ "border-color": {
83
+ "$value": "{ams.inputs.invalid.hover.border-color}",
84
+ "$type": "color"
85
+ },
86
+ "box-shadow": {
87
+ "$type": "shadow",
88
+ "$value": "{ams.inputs.invalid.hover.box-shadow}"
89
+ }
25
90
  }
26
91
  },
27
92
  "cancel-button": {
28
93
  "background-image": {
29
- "value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z'/></svg>\")"
94
+ "$value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z'/></svg>\")"
95
+ },
96
+ "block-size": {
97
+ "$value": "{ams.typography.body-text.font-size}",
98
+ "$type": "dimension"
99
+ },
100
+ "color": {
101
+ "$value": "{ams.color.interactive.default}",
102
+ "$type": "color"
30
103
  },
31
- "block-size": { "value": "{ams.typography.body-text.font-size}" },
32
- "color": { "value": "{ams.color.interactive.default}" },
33
- "cursor": { "value": "{ams.cursor.interactive}" },
34
- "inline-size": { "value": "{ams.typography.body-text.font-size}" }
104
+ "cursor": {
105
+ "$value": "{ams.cursor.interactive}"
106
+ },
107
+ "inline-size": {
108
+ "$value": "{ams.typography.body-text.font-size}",
109
+ "$type": "dimension"
110
+ }
35
111
  },
36
112
  "placeholder": {
37
- "color": { "value": "{ams.inputs.placeholder.color}" }
113
+ "color": {
114
+ "$value": "{ams.inputs.placeholder.color}",
115
+ "$type": "color"
116
+ }
38
117
  }
39
118
  }
40
119
  }
@@ -1,45 +1,118 @@
1
1
  {
2
2
  "ams": {
3
3
  "select": {
4
- "background-color": { "value": "{ams.inputs.background-color}" },
4
+ "background-color": {
5
+ "$value": "{ams.inputs.background-color}",
6
+ "$type": "color"
7
+ },
5
8
  "background-image": {
6
- "value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
7
- },
8
- "background-position": { "value": "right {ams.space.m} center" },
9
- "border-color": { "value": "{ams.inputs.border-color}" },
10
- "border-style": { "value": "{ams.inputs.border-style}" },
11
- "border-width": { "value": "{ams.inputs.border-width}" },
12
- "color": { "value": "{ams.inputs.color}" },
13
- "font-family": { "value": "{ams.inputs.font-family}" },
14
- "font-size": { "value": "{ams.inputs.font-size}" },
15
- "font-weight": { "value": "{ams.inputs.font-weight}" },
16
- "line-height": { "value": "{ams.inputs.line-height}" },
17
- "outline-offset": { "value": "{ams.inputs.outline-offset}" },
18
- "padding-block": { "value": "{ams.inputs.padding-block}" },
19
- "padding-inline": { "value": "{ams.inputs.padding-inline} calc(2 * {ams.inputs.padding-inline} + 1em)" },
9
+ "$value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
10
+ },
11
+ "background-position": {
12
+ "$value": "right {ams.space.m} center"
13
+ },
14
+ "border-color": {
15
+ "$value": "{ams.inputs.border-color}",
16
+ "$type": "color"
17
+ },
18
+ "border-style": {
19
+ "$value": "{ams.inputs.border-style}",
20
+ "$extensions": {
21
+ "nl.amsterdam.type": "borderStyle"
22
+ }
23
+ },
24
+ "border-width": {
25
+ "$value": "{ams.inputs.border-width}",
26
+ "$extensions": {
27
+ "nl.amsterdam.type": "borderWidth"
28
+ }
29
+ },
30
+ "color": {
31
+ "$value": "{ams.inputs.color}",
32
+ "$type": "color"
33
+ },
34
+ "font-family": {
35
+ "$value": "{ams.inputs.font-family}",
36
+ "$type": "fontFamily"
37
+ },
38
+ "font-size": {
39
+ "$value": "{ams.inputs.font-size}",
40
+ "$extensions": {
41
+ "nl.amsterdam.type": "fontSize"
42
+ }
43
+ },
44
+ "font-weight": {
45
+ "$value": "{ams.inputs.font-weight}",
46
+ "$type": "fontWeight"
47
+ },
48
+ "line-height": {
49
+ "$value": "{ams.inputs.line-height}",
50
+ "$extensions": {
51
+ "nl.amsterdam.type": "lineHeight"
52
+ }
53
+ },
54
+ "outline-offset": {
55
+ "$value": "{ams.inputs.outline-offset}",
56
+ "$type": "dimension",
57
+ "$extensions": {
58
+ "nl.amsterdam.subtype": "space"
59
+ }
60
+ },
61
+ "padding-block": {
62
+ "$value": "{ams.inputs.padding-block}",
63
+ "$type": "dimension",
64
+ "$extensions": {
65
+ "nl.amsterdam.subtype": "space"
66
+ }
67
+ },
68
+ "padding-inline": {
69
+ "$value": "{ams.inputs.padding-inline} calc(2 * {ams.inputs.padding-inline} + 1em)",
70
+ "$type": "dimension",
71
+ "$extensions": {
72
+ "nl.amsterdam.subtype": "space"
73
+ }
74
+ },
20
75
  "disabled": {
21
76
  "background-image": {
22
- "value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23767676' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
77
+ "$value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23767676' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
78
+ },
79
+ "color": {
80
+ "$value": "{ams.inputs.disabled.color}",
81
+ "$type": "color"
23
82
  },
24
- "color": { "value": "{ams.inputs.disabled.color}" },
25
- "cursor": { "value": "{ams.cursor.disabled}" }
83
+ "cursor": {
84
+ "$value": "{ams.cursor.disabled}"
85
+ }
26
86
  },
27
87
  "hover": {
28
- "box-shadow": { "value": "{ams.inputs.hover.box-shadow}" },
88
+ "box-shadow": {
89
+ "$value": "{ams.inputs.hover.box-shadow}"
90
+ },
29
91
  "background-image": {
30
- "value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23003677' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
92
+ "$value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23003677' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
31
93
  }
32
94
  },
33
95
  "invalid": {
34
- "border-color": { "value": "{ams.inputs.invalid.border-color}" },
96
+ "border-color": {
97
+ "$value": "{ams.inputs.invalid.border-color}",
98
+ "$type": "color"
99
+ },
35
100
  "hover": {
36
- "border-color": { "value": "{ams.inputs.invalid.hover.border-color}" },
37
- "box-shadow": { "value": "{ams.inputs.invalid.hover.box-shadow}" }
101
+ "border-color": {
102
+ "$value": "{ams.inputs.invalid.hover.border-color}",
103
+ "$type": "color"
104
+ },
105
+ "box-shadow": {
106
+ "$value": "{ams.inputs.invalid.hover.box-shadow}"
107
+ }
38
108
  }
39
109
  },
40
110
  "option": {
41
111
  "disabled": {
42
- "color": { "value": "{ams.color.interactive.disabled}" }
112
+ "color": {
113
+ "$value": "{ams.color.interactive.disabled}",
114
+ "$type": "color"
115
+ }
43
116
  }
44
117
  }
45
118
  }
@@ -1,17 +1,60 @@
1
1
  {
2
2
  "ams": {
3
3
  "skip-link": {
4
- "background-color": { "value": "{ams.color.interactive.default}" },
5
- "color": { "value": "{ams.color.text.inverse}" },
6
- "font-family": { "value": "{ams.typography.font-family}" },
7
- "font-size": { "value": "{ams.typography.body-text.font-size}" },
8
- "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
9
- "line-height": { "value": "{ams.typography.body-text.line-height}" },
10
- "outline-offset": { "value": "{ams.focus.outline-offset}" },
11
- "padding-block": { "value": "{ams.space.s}" },
12
- "padding-inline": { "value": "{ams.space.m}" },
4
+ "background-color": {
5
+ "$value": "{ams.color.interactive.default}",
6
+ "$type": "color"
7
+ },
8
+ "color": {
9
+ "$value": "{ams.color.text.inverse}",
10
+ "$type": "color"
11
+ },
12
+ "font-family": {
13
+ "$value": "{ams.typography.font-family}",
14
+ "$type": "fontFamily"
15
+ },
16
+ "font-size": {
17
+ "$value": "{ams.typography.body-text.font-size}",
18
+ "$extensions": {
19
+ "nl.amsterdam.type": "fontSize"
20
+ }
21
+ },
22
+ "font-weight": {
23
+ "$value": "{ams.typography.body-text.font-weight}",
24
+ "$type": "fontWeight"
25
+ },
26
+ "line-height": {
27
+ "$value": "{ams.typography.body-text.line-height}",
28
+ "$extensions": {
29
+ "nl.amsterdam.type": "lineHeight"
30
+ }
31
+ },
32
+ "outline-offset": {
33
+ "$value": "{ams.focus.outline-offset}",
34
+ "$type": "dimension",
35
+ "$extensions": {
36
+ "nl.amsterdam.subtype": "space"
37
+ }
38
+ },
39
+ "padding-block": {
40
+ "$value": "{ams.space.s}",
41
+ "$type": "dimension",
42
+ "$extensions": {
43
+ "nl.amsterdam.subtype": "space"
44
+ }
45
+ },
46
+ "padding-inline": {
47
+ "$value": "{ams.space.m}",
48
+ "$type": "dimension",
49
+ "$extensions": {
50
+ "nl.amsterdam.subtype": "space"
51
+ }
52
+ },
13
53
  "hover": {
14
- "background-color": { "value": "{ams.color.interactive.hover}" }
54
+ "background-color": {
55
+ "$value": "{ams.color.interactive.hover}",
56
+ "$type": "color"
57
+ }
15
58
  }
16
59
  }
17
60
  }
@@ -1,24 +1,45 @@
1
1
  {
2
2
  "ams": {
3
3
  "spotlight": {
4
- "background-color": { "value": "{ams.color.highlight.purple}" },
4
+ "background-color": {
5
+ "$value": "{ams.color.highlight.purple}",
6
+ "$type": "color"
7
+ },
5
8
  "azure": {
6
- "background-color": { "value": "{ams.color.highlight.azure}" }
9
+ "background-color": {
10
+ "$value": "{ams.color.highlight.azure}",
11
+ "$type": "color"
12
+ }
7
13
  },
8
14
  "green": {
9
- "background-color": { "value": "{ams.color.highlight.green}" }
15
+ "background-color": {
16
+ "$value": "{ams.color.highlight.green}",
17
+ "$type": "color"
18
+ }
10
19
  },
11
20
  "lime": {
12
- "background-color": { "value": "{ams.color.highlight.lime}" }
21
+ "background-color": {
22
+ "$value": "{ams.color.highlight.lime}",
23
+ "$type": "color"
24
+ }
13
25
  },
14
26
  "magenta": {
15
- "background-color": { "value": "{ams.color.highlight.magenta}" }
27
+ "background-color": {
28
+ "$value": "{ams.color.highlight.magenta}",
29
+ "$type": "color"
30
+ }
16
31
  },
17
32
  "orange": {
18
- "background-color": { "value": "{ams.color.highlight.orange}" }
33
+ "background-color": {
34
+ "$value": "{ams.color.highlight.orange}",
35
+ "$type": "color"
36
+ }
19
37
  },
20
38
  "yellow": {
21
- "background-color": { "value": "{ams.color.highlight.yellow}" }
39
+ "background-color": {
40
+ "$value": "{ams.color.highlight.yellow}",
41
+ "$type": "color"
42
+ }
22
43
  }
23
44
  }
24
45
  }
@@ -3,27 +3,33 @@
3
3
  "standalone-link": {
4
4
  "hover": {
5
5
  "text-decoration-thickness": {
6
- "comment": "Use `ams.standalone-link.text-decoration-thickness` instead",
7
- "value": "{ams.links.hover.text-decoration-thickness}"
6
+ "$deprecated": "Use `ams.standalone-link.text-decoration-thickness` instead",
7
+ "$value": "{ams.links.hover.text-decoration-thickness}",
8
+ "$type": "dimension"
8
9
  },
9
10
  "text-underline-offset": {
10
- "comment": "Use `ams.standalone-link.text-underline-offset` instead",
11
- "value": "{ams.links.hover.text-underline-offset}"
11
+ "$deprecated": "Use `ams.standalone-link.text-underline-offset` instead",
12
+ "$value": "{ams.links.hover.text-underline-offset}",
13
+ "$type": "dimension",
14
+ "$extensions": {
15
+ "nl.amsterdam.subtype": "space"
16
+ }
12
17
  }
13
18
  },
14
19
  "with-icon": {
15
20
  "text-decoration-line": {
16
- "comment": "Use `ams.standalone-link.text-decoration-line` instead",
17
- "value": "{ams.links.subtle.text-decoration-line}"
21
+ "$deprecated": "Use `ams.standalone-link.text-decoration-line` instead",
22
+ "$value": "{ams.links.subtle.text-decoration-line}"
18
23
  },
19
24
  "text-decoration-thickness": {
20
- "comment": "Use `ams.standalone-link.text-decoration-thickness` instead",
21
- "value": "{ams.links.text-decoration-thickness}"
25
+ "$deprecated": "Use `ams.standalone-link.text-decoration-thickness` instead",
26
+ "$value": "{ams.links.text-decoration-thickness}",
27
+ "$type": "dimension"
22
28
  },
23
29
  "hover": {
24
30
  "text-decoration-line": {
25
- "comment": "Use `ams.standalone-link.hover.text-decoration-line` instead",
26
- "value": "{ams.links.subtle.hover.text-decoration-line}"
31
+ "$deprecated": "Use `ams.standalone-link.hover.text-decoration-line` instead",
32
+ "$value": "{ams.links.subtle.hover.text-decoration-line}"
27
33
  }
28
34
  }
29
35
  }
@@ -1,30 +1,89 @@
1
1
  {
2
2
  "ams": {
3
3
  "standalone-link": {
4
- "color": { "value": "{ams.links.color}" },
5
- "column-gap": { "value": "{ams.space.s}" },
6
- "font-family": { "value": "{ams.typography.font-family}" },
7
- "font-size": { "value": "{ams.typography.body-text.font-size}" },
8
- "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
9
- "line-height": { "value": "{ams.typography.body-text.line-height}" },
10
- "outline-offset": { "value": "{ams.focus.outline-offset}" },
11
- "text-decoration-line": { "value": "{ams.links.subtle.text-decoration-line}" },
12
- "text-decoration-thickness": { "value": "{ams.links.text-decoration-thickness}" },
13
- "text-underline-offset": { "value": "{ams.links.text-underline-offset}" },
4
+ "color": {
5
+ "$value": "{ams.links.color}",
6
+ "$type": "color"
7
+ },
8
+ "column-gap": {
9
+ "$value": "{ams.space.s}",
10
+ "$type": "dimension",
11
+ "$extensions": {
12
+ "nl.amsterdam.subtype": "space"
13
+ }
14
+ },
15
+ "font-family": {
16
+ "$value": "{ams.typography.font-family}",
17
+ "$type": "fontFamily"
18
+ },
19
+ "font-size": {
20
+ "$value": "{ams.typography.body-text.font-size}",
21
+ "$extensions": {
22
+ "nl.amsterdam.type": "fontSize"
23
+ }
24
+ },
25
+ "font-weight": {
26
+ "$value": "{ams.typography.body-text.font-weight}",
27
+ "$type": "fontWeight"
28
+ },
29
+ "line-height": {
30
+ "$value": "{ams.typography.body-text.line-height}",
31
+ "$extensions": {
32
+ "nl.amsterdam.type": "lineHeight"
33
+ }
34
+ },
35
+ "outline-offset": {
36
+ "$value": "{ams.focus.outline-offset}",
37
+ "$type": "dimension",
38
+ "$extensions": {
39
+ "nl.amsterdam.subtype": "space"
40
+ }
41
+ },
42
+ "text-decoration-line": {
43
+ "$value": "{ams.links.subtle.text-decoration-line}"
44
+ },
45
+ "text-decoration-thickness": {
46
+ "$value": "{ams.links.text-decoration-thickness}",
47
+ "$type": "dimension"
48
+ },
49
+ "text-underline-offset": {
50
+ "$value": "{ams.links.text-underline-offset}",
51
+ "$type": "dimension",
52
+ "$extensions": {
53
+ "nl.amsterdam.subtype": "space"
54
+ }
55
+ },
14
56
  "hover": {
15
- "color": { "value": "{ams.links.hover.color}" },
16
- "text-decoration-line": { "value": "{ams.links.subtle.hover.text-decoration-line}" }
57
+ "color": {
58
+ "$value": "{ams.links.hover.color}",
59
+ "$type": "color"
60
+ },
61
+ "text-decoration-line": {
62
+ "$value": "{ams.links.subtle.hover.text-decoration-line}"
63
+ }
17
64
  },
18
65
  "contrast": {
19
- "color": { "value": "{ams.links.contrast.color}" },
66
+ "color": {
67
+ "$value": "{ams.links.contrast.color}",
68
+ "$type": "color"
69
+ },
20
70
  "hover": {
21
- "color": { "value": "{ams.links.contrast.hover.color}" }
71
+ "color": {
72
+ "$value": "{ams.links.contrast.hover.color}",
73
+ "$type": "color"
74
+ }
22
75
  }
23
76
  },
24
77
  "inverse": {
25
- "color": { "value": "{ams.links.inverse.color}" },
78
+ "color": {
79
+ "$value": "{ams.links.inverse.color}",
80
+ "$type": "color"
81
+ },
26
82
  "hover": {
27
- "color": { "value": "{ams.links.inverse.hover.color}" }
83
+ "color": {
84
+ "$value": "{ams.links.inverse.hover.color}",
85
+ "$type": "color"
86
+ }
28
87
  }
29
88
  }
30
89
  }
@@ -1,25 +1,70 @@
1
1
  {
2
2
  "ams": {
3
3
  "switch": {
4
- "background-color": { "value": "#767676" },
5
- "cursor": { "value": "{ams.cursor.interactive}" },
6
- "outline-offset": { "value": "{ams.focus.outline-offset}" },
7
- "inline-size": { "value": "3.5rem" },
4
+ "background-color": {
5
+ "$value": "#767676",
6
+ "$type": "color"
7
+ },
8
+ "cursor": {
9
+ "$value": "{ams.cursor.interactive}"
10
+ },
11
+ "outline-offset": {
12
+ "$value": "{ams.focus.outline-offset}",
13
+ "$type": "dimension",
14
+ "$extensions": {
15
+ "nl.amsterdam.subtype": "space"
16
+ }
17
+ },
18
+ "inline-size": {
19
+ "$value": {
20
+ "value": 3.5,
21
+ "unit": "rem"
22
+ },
23
+ "$type": "dimension"
24
+ },
8
25
  "thumb": {
9
- "background-color": { "value": "{ams.color.background}" },
10
- "block-size": { "value": "1.75rem" },
11
- "inline-size": { "value": "1.75rem" },
26
+ "background-color": {
27
+ "$value": "{ams.color.background}",
28
+ "$type": "color"
29
+ },
30
+ "block-size": {
31
+ "$value": {
32
+ "value": 1.75,
33
+ "unit": "rem"
34
+ },
35
+ "$type": "dimension"
36
+ },
37
+ "inline-size": {
38
+ "$value": {
39
+ "value": 1.75,
40
+ "unit": "rem"
41
+ },
42
+ "$type": "dimension"
43
+ },
12
44
  "hover": {
13
- "box-shadow": { "value": "0 0 0 {ams.border.width.m} {ams.switch.thumb.hover.color}" },
14
- "color": { "value": "{ams.color.interactive.hover}" }
45
+ "box-shadow": {
46
+ "$value": "0 0 0 {ams.border.width.m} {ams.switch.thumb.hover.color}"
47
+ },
48
+ "color": {
49
+ "$value": "{ams.color.interactive.hover}",
50
+ "$type": "color"
51
+ }
15
52
  }
16
53
  },
17
54
  "checked": {
18
- "background-color": { "value": "{ams.color.interactive.default}" }
55
+ "background-color": {
56
+ "$value": "{ams.color.interactive.default}",
57
+ "$type": "color"
58
+ }
19
59
  },
20
60
  "disabled": {
21
- "background-color": { "value": "{ams.color.interactive.disabled}" },
22
- "cursor": { "value": "{ams.cursor.disabled}" }
61
+ "background-color": {
62
+ "$value": "{ams.color.interactive.disabled}",
63
+ "$type": "color"
64
+ },
65
+ "cursor": {
66
+ "$value": "{ams.cursor.disabled}"
67
+ }
23
68
  }
24
69
  }
25
70
  }