@amsterdam/design-system-tokens 1.0.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 (59) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +14 -3
  3. package/dist/compact.css +30 -18
  4. package/dist/compact.d.ts +16 -0
  5. package/dist/compact.json +36 -20
  6. package/dist/compact.mjs +33 -23
  7. package/dist/compact.scss +30 -18
  8. package/dist/compact.theme.css +30 -18
  9. package/dist/index.css +335 -269
  10. package/dist/index.d.ts +229 -125
  11. package/dist/index.json +525 -421
  12. package/dist/index.mjs +459 -404
  13. package/dist/index.scss +335 -269
  14. package/dist/index.theme.css +335 -269
  15. package/package.json +2 -2
  16. package/src/brand/ams/border.compact.tokens.json +12 -0
  17. package/src/brand/ams/color.deprecated.tokens.json +12 -0
  18. package/src/brand/ams/color.tokens.json +2 -3
  19. package/src/brand/ams/space.compact.tokens.json +6 -6
  20. package/src/brand/ams/space.tokens.json +6 -6
  21. package/src/brand/ams/typography.compact.tokens.json +17 -15
  22. package/src/brand/ams/typography.deprecated.compact.tokens.json +20 -0
  23. package/src/brand/ams/typography.deprecated.tokens.json +28 -0
  24. package/src/brand/ams/typography.tokens.json +17 -25
  25. package/src/common/ams/inputs.tokens.json +34 -0
  26. package/src/common/ams/links.tokens.json +4 -4
  27. package/src/components/ams/accordion.deprecated.tokens.json +17 -0
  28. package/src/components/ams/accordion.tokens.json +1 -10
  29. package/src/components/ams/breadcrumb.tokens.json +3 -3
  30. package/src/components/ams/button.tokens.json +13 -11
  31. package/src/components/ams/call-to-action-link.tokens.json +24 -0
  32. package/src/components/ams/checkbox.deprecated.tokens.json +43 -0
  33. package/src/components/ams/checkbox.tokens.json +22 -35
  34. package/src/components/ams/date-input.tokens.json +23 -23
  35. package/src/components/ams/error-message.tokens.json +2 -2
  36. package/src/components/ams/field-set.tokens.json +3 -3
  37. package/src/components/ams/file-input.tokens.json +25 -24
  38. package/src/components/ams/icon.deprecated.tokens.json +16 -0
  39. package/src/components/ams/icon.tokens.json +8 -0
  40. package/src/components/ams/label.tokens.json +2 -2
  41. package/src/components/ams/menu.tokens.json +39 -0
  42. package/src/components/ams/ordered-list.tokens.json +2 -2
  43. package/src/components/ams/page-footer.tokens.json +2 -2
  44. package/src/components/ams/page-header.tokens.json +2 -2
  45. package/src/components/ams/{page-heading.tokens.json → page-heading.deprecated.tokens.json} +1 -0
  46. package/src/components/ams/page.tokens.json +1 -1
  47. package/src/components/ams/password-input.tokens.json +18 -18
  48. package/src/components/ams/radio.tokens.json +1 -1
  49. package/src/components/ams/search-field.tokens.json +23 -23
  50. package/src/components/ams/select.tokens.json +17 -17
  51. package/src/components/ams/skip-link.tokens.json +2 -2
  52. package/src/components/ams/standalone-link.deprecated.tokens.json +32 -0
  53. package/src/components/ams/standalone-link.tokens.json +5 -13
  54. package/src/components/ams/table-of-contents.deprecated.tokens.json +11 -0
  55. package/src/components/ams/table-of-contents.tokens.json +1 -6
  56. package/src/components/ams/text-area.tokens.json +18 -18
  57. package/src/components/ams/text-input.tokens.json +18 -18
  58. package/src/components/ams/time-input.tokens.json +23 -23
  59. package/src/components/ams/unordered-list.tokens.json +2 -2
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "2.0.0",
3
3
  "author": "Design System Team, City of Amsterdam <designsystem@amsterdam.nl>",
4
4
  "description": "All design tokens from the Amsterdam Design System. Use it to apply its visual design to your website or application.",
5
5
  "homepage": "https://designsystem.amsterdam",
@@ -26,7 +26,7 @@
26
26
  "change-case": "5.4.4",
27
27
  "chokidar-cli": "3.0.0",
28
28
  "npm-run-all": "4.1.5",
29
- "style-dictionary": "4.4.0"
29
+ "style-dictionary": "5.0.4"
30
30
  },
31
31
  "scripts": {
32
32
  "clean": "rimraf dist/",
@@ -0,0 +1,12 @@
1
+ {
2
+ "ams": {
3
+ "border": {
4
+ "width": {
5
+ "s": { "value": "0.0625rem" },
6
+ "m": { "value": "0.0625rem" },
7
+ "l": { "value": "0.125rem" },
8
+ "xl": { "value": "0.1875rem" }
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "ams": {
3
+ "color": {
4
+ "interactive": {
5
+ "secondary": {
6
+ "comment": "Use `currentColor` instead",
7
+ "value": "#181818"
8
+ }
9
+ }
10
+ }
11
+ }
12
+ }
@@ -18,7 +18,7 @@
18
18
  "yellow": { "value": "#ffe600" }
19
19
  },
20
20
  "interactive": {
21
- "contrast": { "value": "#000000" },
21
+ "contrast": { "value": "#181818" },
22
22
  "default": { "value": "#004699" },
23
23
  "disabled": { "value": "#767676" },
24
24
  "hover": { "value": "#003677" },
@@ -26,8 +26,7 @@
26
26
  "default": { "value": "#ec0000" },
27
27
  "hover": { "value": "#b70000" }
28
28
  },
29
- "inverse": { "value": "#ffffff" },
30
- "secondary": { "value": "#181818" }
29
+ "inverse": { "value": "#ffffff" }
31
30
  },
32
31
  "separator": { "value": "#d1d1d1" },
33
32
  "text": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "ams": {
3
3
  "space": {
4
- "xs": { "value": "clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem)" },
5
- "s": { "value": "clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem)" },
6
- "m": { "value": "clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem)" },
7
- "l": { "value": "clamp(1rem, 0.875rem + 0.625vw, 1.5rem)" },
8
- "xl": { "value": "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)" },
9
- "2xl": { "value": "clamp(1.5rem, 1.125rem + 1.875vw, 3rem)" }
4
+ "xs": { "value": "0.25rem" },
5
+ "s": { "value": "0.5rem" },
6
+ "m": { "value": "clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem)" },
7
+ "l": { "value": "clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem)" },
8
+ "xl": { "value": "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)" },
9
+ "2xl": { "value": "clamp(2rem, 1.7143rem + 1.4286vw, 3rem)" }
10
10
  }
11
11
  }
12
12
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "ams": {
3
3
  "space": {
4
- "xs": { "value": "clamp(0.2813rem, 0.2578rem + 0.1172vw, 0.375rem)" },
5
- "s": { "value": "clamp(0.5625rem, 0.5156rem + 0.2344vw, 0.75rem)" },
6
- "m": { "value": "clamp(1.125rem, 1.0313rem + 0.4688vw, 1.5rem)" },
7
- "l": { "value": "clamp(1.6875rem, 1.5469rem + 0.7031vw, 2.25rem)" },
8
- "xl": { "value": "clamp(2.25rem, 1.9375rem + 1.5625vw, 3.5rem)" },
9
- "2xl": { "value": "clamp(2.8125rem, 2.2031rem + 3.0469vw, 5.25rem)" }
4
+ "xs": { "value": "clamp(0.25rem, 0.2143rem + 0.1786vw, 0.375rem)" },
5
+ "s": { "value": "clamp(0.5rem, 0.4286rem + 0.3571vw, 0.75rem)" },
6
+ "m": { "value": "clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem)" },
7
+ "l": { "value": "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)" },
8
+ "xl": { "value": "clamp(2.25rem, 1.8214rem + 2.1429vw, 3.75rem)" },
9
+ "2xl": { "value": "clamp(3rem, 2.25rem + 3.75vw, 5.625rem)" }
10
10
  }
11
11
  }
12
12
  }
@@ -3,38 +3,40 @@
3
3
  "typography": {
4
4
  "body-text": {
5
5
  "font-size": { "value": "1rem" },
6
+ "line-height": { "value": "1.5" },
6
7
  "small": {
7
- "font-size": { "value": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)" }
8
+ "font-size": { "value": "0.875rem" },
9
+ "line-height": { "value": "1.4" }
8
10
  },
9
11
  "large": {
10
- "font-size": { "value": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)" }
12
+ "font-size": { "value": "clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem)" },
13
+ "line-height": { "value": "1.4" }
11
14
  },
12
15
  "x-large": {
13
- "font-size": { "value": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)" }
16
+ "font-size": { "value": "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)" },
17
+ "line-height": { "value": "1.3" }
14
18
  }
15
19
  },
16
20
  "heading": {
17
- "0": {
18
- "font-size": { "value": "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)" }
19
- },
20
21
  "1": {
21
- "font-size": { "value": "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)" }
22
+ "font-size": { "value": "clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem)" },
23
+ "line-height": { "value": "1.2" }
22
24
  },
23
25
  "2": {
24
- "font-size": { "value": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)" },
25
- "line-height": { "value": "1.2133" }
26
+ "font-size": { "value": "{ams.typography.body-text.x-large.font-size}" },
27
+ "line-height": { "value": "1.3" }
26
28
  },
27
29
  "3": {
28
- "font-size": { "value": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)" }
30
+ "font-size": { "value": "{ams.typography.body-text.large.font-size}" },
31
+ "line-height": { "value": "1.3" }
29
32
  },
30
33
  "4": {
31
- "font-size": { "value": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)" }
34
+ "font-size": { "value": "{ams.typography.body-text.font-size}" },
35
+ "line-height": { "value": "1.4" }
32
36
  },
33
37
  "5": {
34
- "font-size": { "value": "1rem" }
35
- },
36
- "6": {
37
- "font-size": { "value": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)" }
38
+ "font-size": { "value": "{ams.typography.body-text.small.font-size}" },
39
+ "line-height": { "value": "1.4" }
38
40
  }
39
41
  }
40
42
  }
@@ -0,0 +1,20 @@
1
+ {
2
+ "ams": {
3
+ "typography": {
4
+ "heading": {
5
+ "0": {
6
+ "font-size": {
7
+ "comment": "Use Heading size 1 instead.",
8
+ "value": "clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem)"
9
+ }
10
+ },
11
+ "6": {
12
+ "font-size": {
13
+ "comment": "Use Heading size 5 instead.",
14
+ "value": "{ams.typography.body-text.small.font-size}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "ams": {
3
+ "typography": {
4
+ "heading": {
5
+ "0": {
6
+ "font-size": {
7
+ "comment": "Use Heading size 1 instead.",
8
+ "value": "clamp(2.435rem, 2.0409rem + 1.9709vw, 3.8147rem)"
9
+ },
10
+ "line-height": {
11
+ "comment": "Use Heading size 1 instead.",
12
+ "value": "1.1"
13
+ }
14
+ },
15
+ "6": {
16
+ "font-size": {
17
+ "comment": "Use Heading size 5 instead.",
18
+ "value": "{ams.typography.body-text.small.font-size}"
19
+ },
20
+ "line-height": {
21
+ "comment": "Use Heading size 5 instead.",
22
+ "value": "1.4"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
@@ -4,55 +4,47 @@
4
4
  "font-family": { "value": "'Amsterdam Sans', Arial, sans-serif" },
5
5
  "hyphenate-limit-chars": { "value": "12 8 4" },
6
6
  "body-text": {
7
- "font-size": { "value": "clamp(1.125rem, calc(1.0313rem + 0.4688vw), 1.5rem)" },
7
+ "font-size": { "value": "clamp(1.125rem, 1.0893rem + 0.1786vw, 1.25rem)" },
8
8
  "font-weight": { "value": "400" },
9
- "line-height": { "value": "1.6667" },
9
+ "line-height": { "value": "1.8" },
10
10
  "bold": {
11
11
  "font-weight": { "value": "800" }
12
12
  },
13
13
  "small": {
14
- "font-size": { "value": "clamp(0.9643rem, calc(0.9054rem + 0.2946vw), 1.2rem)" },
15
- "line-height": { "value": "1.5152" }
14
+ "font-size": { "value": "1rem" },
15
+ "line-height": { "value": "1.6" }
16
16
  },
17
17
  "large": {
18
- "font-size": { "value": "clamp(1.3125rem, calc(1.1719rem + 0.7031vw), 1.875rem)" },
19
- "line-height": { "value": "1.5152" }
18
+ "font-size": { "value": "clamp(1.3125rem, 1.2411rem + 0.3571vw, 1.5625rem)" },
19
+ "line-height": { "value": "1.6" }
20
20
  },
21
21
  "x-large": {
22
- "font-size": { "value": "clamp(1.5313rem, calc(1.3281rem + 1.0156vw), 2.3438rem)" },
23
- "line-height": { "value": "1.3776" }
22
+ "font-size": { "value": "clamp(1.5rem, 1.3571rem + 0.7143vw, 2rem)" },
23
+ "line-height": { "value": "1.4" }
24
24
  }
25
25
  },
26
26
  "heading": {
27
27
  "font-weight": { "value": "800" },
28
28
  "text-wrap": { "value": "balance" },
29
- "0": {
30
- "font-size": { "value": "clamp(2.4316rem, calc(1.8951rem + 2.6826vw), 4.5776rem)" },
31
- "line-height": { "value": "1.1386" }
32
- },
33
29
  "1": {
34
- "font-size": { "value": "clamp(2.0842rem, calc(1.6897rem + 1.9724vw), 3.6621rem)" },
35
- "line-height": { "value": "1.1754" }
30
+ "font-size": { "value": "clamp(2rem, 1.7143rem + 1.4286vw, 3rem)" },
31
+ "line-height": { "value": "1.2" }
36
32
  },
37
33
  "2": {
38
- "font-size": { "value": "clamp(1.7865rem, calc(1.5007rem + 1.429vw), 2.9297rem)" },
39
- "line-height": { "value": "1.2133" }
40
- },
41
- "3": {
42
34
  "font-size": { "value": "{ams.typography.body-text.x-large.font-size}" },
43
- "line-height": { "value": "1.2524" }
35
+ "line-height": { "value": "1.3" }
44
36
  },
45
- "4": {
37
+ "3": {
46
38
  "font-size": { "value": "{ams.typography.body-text.large.font-size}" },
47
- "line-height": { "value": "1.2928" }
39
+ "line-height": { "value": "1.3" }
48
40
  },
49
- "5": {
41
+ "4": {
50
42
  "font-size": { "value": "{ams.typography.body-text.font-size}" },
51
- "line-height": { "value": "1.3345" }
43
+ "line-height": { "value": "1.4" }
52
44
  },
53
- "6": {
45
+ "5": {
54
46
  "font-size": { "value": "{ams.typography.body-text.small.font-size}" },
55
- "line-height": { "value": "1.3776" }
47
+ "line-height": { "value": "1.4" }
56
48
  }
57
49
  }
58
50
  }
@@ -0,0 +1,34 @@
1
+ {
2
+ "ams": {
3
+ "inputs": {
4
+ "background-color": { "value": "{ams.color.background}" },
5
+ "border-color": { "value": "currentColor" },
6
+ "border-style": { "value": "solid" },
7
+ "border-width": { "value": "{ams.border.width.m}" },
8
+ "color": { "value": "{ams.color.text.default}" },
9
+ "font-family": { "value": "{ams.typography.font-family}" },
10
+ "font-size": { "value": "{ams.typography.body-text.font-size}" },
11
+ "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
12
+ "line-height": { "value": "1.4" },
13
+ "outline-offset": { "value": "{ams.focus.outline-offset}" },
14
+ "padding-block": { "value": "{ams.space.s}" },
15
+ "padding-inline": { "value": "{ams.space.m}" },
16
+ "disabled": {
17
+ "color": { "value": "{ams.color.interactive.disabled}" }
18
+ },
19
+ "hover": {
20
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.s}" }
21
+ },
22
+ "invalid": {
23
+ "border-color": { "value": "{ams.color.interactive.invalid.default}" },
24
+ "hover": {
25
+ "border-color": { "value": "{ams.color.interactive.invalid.hover}" },
26
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.s} {ams.color.interactive.invalid.hover}" }
27
+ }
28
+ },
29
+ "placeholder": {
30
+ "color": { "value": "{ams.color.text.secondary}" }
31
+ }
32
+ }
33
+ }
34
+ }
@@ -2,12 +2,12 @@
2
2
  "ams": {
3
3
  "links": {
4
4
  "color": { "value": "{ams.color.interactive.default}" },
5
- "text-decoration-thickness": { "value": "{ams.border.width.m}" },
6
- "text-underline-offset": { "value": "0.3333em" },
5
+ "text-decoration-thickness": { "comment": "2px", "value": "0.125rem" },
6
+ "text-underline-offset": { "comment": "2.5px", "value": "0.15625rem" },
7
7
  "hover": {
8
8
  "color": { "value": "{ams.color.interactive.hover}" },
9
- "text-decoration-thickness": { "value": "{ams.border.width.l}" },
10
- "text-underline-offset": { "value": "0.2778em" }
9
+ "text-decoration-thickness": { "comment": "3px", "value": "0.1875rem" },
10
+ "text-underline-offset": { "comment": "1.5px", "value": "0.09375rem" }
11
11
  },
12
12
  "subtle": {
13
13
  "text-decoration-line": { "value": "none" },
@@ -0,0 +1,17 @@
1
+ {
2
+ "ams": {
3
+ "accordion": {
4
+ "button": {
5
+ "font-family": { "value": "{ams.typography.font-family}" },
6
+ "font-size": { "value": "{ams.typography.heading.3.font-size}" },
7
+ "font-weight": { "value": "{ams.typography.heading.font-weight}" },
8
+ "line-height": { "value": "{ams.typography.heading.3.line-height}" },
9
+ "text-wrap": { "value": "{ams.typography.heading.text-wrap}" }
10
+ },
11
+ "panel": {
12
+ "padding-block": { "value": "0" },
13
+ "padding-inline": { "value": "0" }
14
+ }
15
+ }
16
+ }
17
+ }
@@ -1,26 +1,17 @@
1
1
  {
2
2
  "ams": {
3
3
  "accordion": {
4
- "gap": { "value": "{ams.space.m}" },
4
+ "gap": { "value": "{ams.space.s}" },
5
5
  "button": {
6
6
  "color": { "value": "{ams.color.interactive.default}" },
7
7
  "cursor": { "value": "{ams.cursor.interactive}" },
8
- "font-family": { "value": "{ams.typography.font-family}" },
9
- "font-size": { "value": "{ams.typography.heading.4.font-size}" },
10
- "font-weight": { "value": "{ams.typography.heading.font-weight}" },
11
8
  "gap": { "value": "{ams.space.s}" },
12
- "line-height": { "value": "{ams.typography.heading.4.line-height}" },
13
9
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
14
10
  "padding-block": { "value": "{ams.space.s}" },
15
11
  "padding-inline": { "value": "0" },
16
- "text-wrap": { "value": "{ams.typography.heading.text-wrap}" },
17
12
  "hover": {
18
13
  "color": { "value": "{ams.color.interactive.hover}" }
19
14
  }
20
- },
21
- "panel": {
22
- "padding-block": { "value": "0" },
23
- "padding-inline": { "value": "0" }
24
15
  }
25
16
  }
26
17
  }
@@ -2,16 +2,16 @@
2
2
  "ams": {
3
3
  "breadcrumb": {
4
4
  "font-family": { "value": "{ams.typography.font-family}" },
5
- "font-size": { "value": "{ams.typography.body-text.small.font-size}" },
5
+ "font-size": { "value": "{ams.typography.body-text.font-size}" },
6
6
  "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
7
- "line-height": { "value": "{ams.typography.body-text.small.line-height}" },
7
+ "line-height": { "value": "{ams.typography.body-text.line-height}" },
8
8
  "separator": {
9
9
  "background-image": {
10
10
  "value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23000000' fill-rule='evenodd' d='m9.757 32-2.9-2.91L19.937 16 6.857 2.91 9.757 0l16 16z'/></svg>\")"
11
11
  },
12
12
  "block-size": { "value": "1ex" },
13
13
  "inline-size": { "value": "1ex" },
14
- "margin-inline": { "value": "{ams.space.xs}" }
14
+ "margin-inline": { "value": "{ams.space.s}" }
15
15
  },
16
16
  "link": {
17
17
  "color": { "value": "{ams.links.color}" },
@@ -7,7 +7,7 @@
7
7
  "font-family": { "value": "{ams.typography.font-family}" },
8
8
  "font-size": { "value": "{ams.typography.body-text.font-size}" },
9
9
  "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
10
- "line-height": { "value": "{ams.typography.body-text.line-height}" },
10
+ "line-height": { "value": "{ams.inputs.line-height}" },
11
11
  "gap": { "value": "{ams.space.s}" },
12
12
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
13
13
  "padding-block": { "value": "{ams.space.s}" },
@@ -15,6 +15,10 @@
15
15
  "disabled": {
16
16
  "cursor": { "value": "{ams.cursor.disabled}" }
17
17
  },
18
+ "icon-only": {
19
+ "padding-block": { "value": "{ams.space.s}" },
20
+ "padding-inline": { "value": "{ams.space.s}" }
21
+ },
18
22
  "primary": {
19
23
  "background-color": { "value": "{ams.color.interactive.default}" },
20
24
  "border-color": { "value": "{ams.color.interactive.default}" },
@@ -30,30 +34,28 @@
30
34
  },
31
35
  "secondary": {
32
36
  "background-color": { "value": "{ams.color.background}" },
37
+ "border-color": { "value": "currentColor" },
33
38
  "color": { "value": "{ams.color.interactive.default}" },
39
+ "disabled": {
40
+ "border-color": { "value": "{ams.color.interactive.disabled}" },
41
+ "color": { "value": "{ams.color.interactive.disabled}" }
42
+ },
34
43
  "hover": {
35
44
  "box-shadow": { "value": "inset 0 0 0 {ams.border.width.s}" },
36
45
  "color": { "value": "{ams.color.interactive.hover}" }
37
- },
38
- "disabled": {
39
- "color": { "value": "{ams.color.interactive.disabled}" }
40
46
  }
41
47
  },
42
48
  "tertiary": {
43
49
  "background-color": { "value": "transparent" },
44
50
  "border-color": { "value": "transparent" },
45
51
  "color": { "value": "{ams.color.interactive.default}" },
52
+ "disabled": {
53
+ "color": { "value": "{ams.color.interactive.disabled}" }
54
+ },
46
55
  "hover": {
47
56
  "border-color": { "value": "currentColor" },
48
57
  "color": { "value": "{ams.color.interactive.hover}" }
49
- },
50
- "disabled": {
51
- "color": { "value": "{ams.color.interactive.disabled}" }
52
58
  }
53
- },
54
- "icon-only": {
55
- "padding-block": { "value": "{ams.space.s}" },
56
- "padding-inline": { "value": "{ams.space.s}" }
57
59
  }
58
60
  }
59
61
  }
@@ -0,0 +1,24 @@
1
+ {
2
+ "ams": {
3
+ "call-to-action-link": {
4
+ "background-color": { "value": "#00a03c" },
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.xs}" },
12
+ "padding-inline": { "value": "{ams.space.m}" },
13
+ "text-decoration-thickness": { "value": "{ams.links.text-decoration-thickness}" },
14
+ "text-underline-offset": { "value": "{ams.links.text-underline-offset}" },
15
+ "hover": {
16
+ "background-color": { "value": "#007c2e" },
17
+ "text-decoration-thickness": {
18
+ "value": "{ams.links.hover.text-decoration-thickness}"
19
+ },
20
+ "text-underline-offset": { "value": "{ams.links.hover.text-underline-offset}" }
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "ams": {
3
+ "checkbox": {
4
+ "hover": {
5
+ "text-decoration-thickness": {
6
+ "comment": "Use `ams.checkbox.text-decoration-thickness` instead",
7
+ "value": "{ams.border.width.m}"
8
+ }
9
+ },
10
+ "rectangle": {
11
+ "checked": {
12
+ "disabled": {
13
+ "hover": {
14
+ "fill": { "value": "{ams.color.interactive.disabled}" }
15
+ }
16
+ },
17
+ "hover": {
18
+ "disabled-invalid": {
19
+ "fill": { "value": "{ams.color.interactive.disabled}" }
20
+ }
21
+ }
22
+ },
23
+ "hover": {
24
+ "disabled-invalid": {
25
+ "stroke": { "value": "{ams.color.interactive.disabled}" }
26
+ }
27
+ },
28
+ "indeterminate": {
29
+ "disabled": {
30
+ "hover": {
31
+ "fill": { "value": "{ams.color.interactive.disabled}" }
32
+ }
33
+ },
34
+ "hover": {
35
+ "disabled-invalid": {
36
+ "fill": { "value": "{ams.color.interactive.disabled}" }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
@@ -9,10 +9,17 @@
9
9
  "gap": { "value": "{ams.space.s}" },
10
10
  "line-height": { "value": "{ams.typography.body-text.line-height}" },
11
11
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
12
- "checked-indicator": {
13
- "stroke": { "value": "{ams.color.interactive.inverse}" }
12
+ "text-decoration-thickness": { "value": "{ams.links.text-decoration-thickness}" },
13
+ "text-underline-offset": { "value": "{ams.links.text-underline-offset}" },
14
+ "disabled": {
15
+ "cursor": { "value": "{ams.cursor.disabled}" },
16
+ "color": { "value": "{ams.color.interactive.disabled}" }
14
17
  },
15
- "indeterminate-indicator": {
18
+ "hover": {
19
+ "color": { "value": "{ams.color.interactive.hover}" },
20
+ "text-decoration-line": { "value": "{ams.links.subtle.hover.text-decoration-line}" }
21
+ },
22
+ "checked-indicator": {
16
23
  "stroke": { "value": "{ams.color.interactive.inverse}" }
17
24
  },
18
25
  "hover-indicator": {
@@ -25,22 +32,23 @@
25
32
  }
26
33
  }
27
34
  },
35
+ "icon-container": {
36
+ "block-size": { "value": "calc({ams.checkbox.font-size} * {ams.checkbox.line-height})" },
37
+ "inline-size": { "value": "{ams.checkbox.font-size}" }
38
+ },
39
+ "indeterminate-indicator": {
40
+ "stroke": { "value": "{ams.color.interactive.inverse}" }
41
+ },
28
42
  "rectangle": {
29
43
  "fill": { "value": "{ams.color.background}" },
30
44
  "stroke": { "value": "{ams.color.interactive.default}" },
31
45
  "checked": {
32
46
  "fill": { "value": "{ams.color.interactive.default}" },
33
47
  "disabled": {
34
- "fill": { "value": "{ams.color.interactive.disabled}" },
35
- "hover": {
36
- "fill": { "value": "{ams.color.interactive.disabled}" }
37
- }
48
+ "fill": { "value": "{ams.color.interactive.disabled}" }
38
49
  },
39
50
  "hover": {
40
- "fill": { "value": "{ams.color.interactive.hover}" },
41
- "disabled-invalid": {
42
- "fill": { "value": "{ams.color.interactive.disabled}" }
43
- }
51
+ "fill": { "value": "{ams.color.interactive.hover}" }
44
52
  },
45
53
  "invalid": {
46
54
  "fill": { "value": "{ams.color.interactive.invalid.default}" },
@@ -53,24 +61,15 @@
53
61
  "stroke": { "value": "{ams.color.interactive.disabled}" }
54
62
  },
55
63
  "hover": {
56
- "stroke": { "value": "{ams.color.interactive.hover}" },
57
- "disabled-invalid": {
58
- "stroke": { "value": "{ams.color.interactive.disabled}" }
59
- }
64
+ "stroke": { "value": "{ams.color.interactive.hover}" }
60
65
  },
61
66
  "indeterminate": {
62
67
  "fill": { "value": "{ams.color.interactive.default}" },
63
68
  "disabled": {
64
- "fill": { "value": "{ams.color.interactive.disabled}" },
65
- "hover": {
66
- "fill": { "value": "{ams.color.interactive.disabled}" }
67
- }
69
+ "fill": { "value": "{ams.color.interactive.disabled}" }
68
70
  },
69
71
  "hover": {
70
- "fill": { "value": "{ams.color.interactive.hover}" },
71
- "disabled-invalid": {
72
- "fill": { "value": "{ams.color.interactive.disabled}" }
73
- }
72
+ "fill": { "value": "{ams.color.interactive.hover}" }
74
73
  },
75
74
  "invalid": {
76
75
  "fill": { "value": "{ams.color.interactive.invalid.default}" },
@@ -85,18 +84,6 @@
85
84
  "stroke": { "value": "{ams.color.interactive.invalid.hover}" }
86
85
  }
87
86
  }
88
- },
89
- "icon-container": {
90
- "block-size": { "value": "calc({ams.checkbox.font-size} * {ams.checkbox.line-height})" },
91
- "inline-size": { "value": "1.5rem" }
92
- },
93
- "disabled": {
94
- "cursor": { "value": "{ams.cursor.disabled}" },
95
- "color": { "value": "{ams.color.interactive.disabled}" }
96
- },
97
- "hover": {
98
- "color": { "value": "{ams.color.interactive.hover}" },
99
- "text-decoration-thickness": { "value": "{ams.border.width.m}" }
100
87
  }
101
88
  }
102
89
  }