@amsterdam/design-system-tokens 0.8.0 → 0.9.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 (32) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/compact.css +1 -1
  3. package/dist/compact.d.ts +1 -1
  4. package/dist/compact.mjs +1 -1
  5. package/dist/compact.scss +1 -1
  6. package/dist/compact.theme.css +1 -1
  7. package/dist/index.css +94 -38
  8. package/dist/index.d.ts +122 -30
  9. package/dist/index.json +157 -65
  10. package/dist/index.mjs +123 -67
  11. package/dist/index.scss +94 -38
  12. package/dist/index.theme.css +94 -38
  13. package/package.json +1 -1
  14. package/src/common/ams/focus.tokens.json +1 -1
  15. package/src/common/ams/link-appearance.tokens.json +2 -2
  16. package/src/components/ams/badge.tokens.json +28 -4
  17. package/src/components/ams/breadcrumb.tokens.json +1 -1
  18. package/src/components/ams/error-message.tokens.json +11 -0
  19. package/src/components/ams/{fieldset.tokens.json → field-set.tokens.json} +11 -2
  20. package/src/components/ams/field.tokens.json +17 -0
  21. package/src/components/ams/file-input.tokens.json +42 -0
  22. package/src/components/ams/link-list.tokens.json +2 -4
  23. package/src/components/ams/logo.tokens.json +1 -1
  24. package/src/components/ams/ordered-list.tokens.json +4 -0
  25. package/src/components/ams/paragraph.tokens.json +2 -4
  26. package/src/components/ams/screen.tokens.json +2 -2
  27. package/src/components/ams/search-field.tokens.json +11 -5
  28. package/src/components/ams/switch.tokens.json +6 -5
  29. package/src/components/ams/table.tokens.json +1 -1
  30. package/src/components/ams/tabs.tokens.json +1 -1
  31. package/src/components/ams/text-area.tokens.json +1 -1
  32. package/src/components/ams/unordered-list.tokens.json +4 -0
@@ -6,11 +6,11 @@
6
6
  "font-weight": { "value": "{ams.text.font-weight.bold}" },
7
7
  "line-height": { "value": "{ams.text.level.5.line-height}" },
8
8
  "padding-inline": { "value": "{ams.space.inside.xs}" },
9
- "blue": {
10
- "background-color": { "value": "{ams.color.blue}" },
11
- "color": { "value": "{ams.color.primary-black}" }
9
+ "black": {
10
+ "background-color": { "value": "{ams.color.primary-black}" },
11
+ "color": { "value": "{ams.color.primary-white}" }
12
12
  },
13
- "dark-blue": {
13
+ "blue": {
14
14
  "background-color": { "value": "{ams.color.primary-blue}" },
15
15
  "color": { "value": "{ams.color.primary-white}" }
16
16
  },
@@ -22,6 +22,22 @@
22
22
  "background-color": { "value": "{ams.color.green}" },
23
23
  "color": { "value": "{ams.color.primary-black}" }
24
24
  },
25
+ "grey-1": {
26
+ "background-color": { "value": "{ams.color.neutral-grey1}" },
27
+ "color": { "value": "{ams.color.primary-black}" }
28
+ },
29
+ "grey-2": {
30
+ "background-color": { "value": "{ams.color.neutral-grey2}" },
31
+ "color": { "value": "{ams.color.primary-black}" }
32
+ },
33
+ "grey-3": {
34
+ "background-color": { "value": "{ams.color.neutral-grey3}" },
35
+ "color": { "value": "{ams.color.primary-white}" }
36
+ },
37
+ "light-blue": {
38
+ "background-color": { "value": "{ams.color.blue}" },
39
+ "color": { "value": "{ams.color.primary-black}" }
40
+ },
25
41
  "magenta": {
26
42
  "background-color": { "value": "{ams.color.magenta}" },
27
43
  "color": { "value": "{ams.color.primary-white}" }
@@ -34,6 +50,14 @@
34
50
  "background-color": { "value": "{ams.color.purple}" },
35
51
  "color": { "value": "{ams.color.primary-white}" }
36
52
  },
53
+ "red": {
54
+ "background-color": { "value": "{ams.color.primary-red}" },
55
+ "color": { "value": "{ams.color.primary-white}" }
56
+ },
57
+ "white": {
58
+ "background-color": { "value": "{ams.color.primary-white}" },
59
+ "color": { "value": "{ams.color.primary-black}" }
60
+ },
37
61
  "yellow": {
38
62
  "background-color": { "value": "{ams.color.yellow}" },
39
63
  "color": { "value": "{ams.color.primary-black}" }
@@ -10,7 +10,7 @@
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
  },
13
- "item-link": {
13
+ "link": {
14
14
  "color": { "value": "{ams.link-appearance.color}" },
15
15
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
16
16
  "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" },
@@ -0,0 +1,11 @@
1
+ {
2
+ "ams": {
3
+ "error-message": {
4
+ "color": { "value": "{ams.color.primary-red}" },
5
+ "font-family": { "value": "{ams.text.font-family}" },
6
+ "font-size": { "value": "{ams.text.level.6.font-size}" },
7
+ "font-weight": { "value": "{ams.text.font-weight.normal}" },
8
+ "line-height": { "value": "{ams.text.level.6.line-height}" }
9
+ }
10
+ }
11
+ }
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "ams": {
3
- "fieldset": {
3
+ "field-set": {
4
+ "invalid": {
5
+ "border-inline-start": {
6
+ "value": "{ams.border.width.lg} solid {ams.color.primary-red}"
7
+ },
8
+ "padding-inline-start": {
9
+ "value": "{ams.space.inside.md}"
10
+ }
11
+ },
4
12
  "legend": {
5
13
  "color": { "value": "{ams.color.primary-black}" },
6
14
  "font-family": { "value": "{ams.text.font-family}" },
7
15
  "font-size": { "value": "{ams.text.level.4.font-size}" },
8
16
  "font-weight": { "value": "{ams.text.font-weight.bold}" },
9
- "line-height": { "value": "{ams.text.level.4.line-height}" }
17
+ "line-height": { "value": "{ams.text.level.4.line-height}" },
18
+ "margin-block-end": { "value": "{ams.space.inside.md}" }
10
19
  }
11
20
  }
12
21
  }
@@ -0,0 +1,17 @@
1
+ {
2
+ "ams": {
3
+ "field": {
4
+ "gap": {
5
+ "value": "{ams.space.stack.sm}"
6
+ },
7
+ "invalid": {
8
+ "border-inline-start": {
9
+ "value": "{ams.border.width.lg} solid {ams.color.primary-red}"
10
+ },
11
+ "padding-inline-start": {
12
+ "value": "{ams.space.inside.md}"
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "ams": {
3
+ "file-input": {
4
+ "background-color": { "value": "{ams.color.primary-white}" },
5
+ "border": { "value": "{ams.border.width.sm} dashed {ams.color.neutral-grey3}" },
6
+ "color": { "value": "{ams.color.primary-black}" },
7
+ "cursor": { "value": "{ams.action.activate.cursor}" },
8
+ "font-family": { "value": "{ams.text.font-family}" },
9
+ "font-size": { "value": "{ams.text.level.5.font-size}" },
10
+ "font-weight": { "value": "{ams.text.font-weight.normal}" },
11
+ "line-height": { "value": "{ams.text.level.5.line-height}" },
12
+ "outline-offset": { "value": "{ams.focus.outline-offset}" },
13
+ "padding-block": { "value": "{ams.space.inside.md}" },
14
+ "padding-inline": { "value": "{ams.space.inside.md}" },
15
+ "disabled": {
16
+ "color": { "value": "{ams.color.neutral-grey2}" },
17
+ "cursor": { "value": "{ams.action.disabled.cursor}" }
18
+ },
19
+ "file-selector-button": {
20
+ "background-color": { "value": "{ams.color.primary-white}" },
21
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.md} {ams.color.primary-blue}" },
22
+ "color": { "value": "{ams.color.primary-blue}" },
23
+ "cursor": { "value": "{ams.action.activate.cursor}" },
24
+ "margin-inline-end": { "value": "{ams.space.inside.md}" },
25
+ "padding-block": { "value": "{ams.space.inside.xs}" },
26
+ "padding-inline": { "value": "{ams.space.inside.md}" },
27
+ "hover": {
28
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.lg} {ams.color.dark-blue}" },
29
+ "color": { "value": "{ams.color.dark-blue}" }
30
+ },
31
+ "disabled": {
32
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.md} {ams.color.neutral-grey2}" },
33
+ "color": { "value": "{ams.color.neutral-grey2}" },
34
+ "cursor": { "value": "{ams.action.disabled.cursor}" }
35
+ },
36
+ "forced-color-mode": {
37
+ "border": { "value": "{ams.border.width.md} solid" }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -5,8 +5,10 @@
5
5
  "link": {
6
6
  "color": { "value": "{ams.link-appearance.color}" },
7
7
  "font-family": { "value": "{ams.text.font-family}" },
8
+ "font-size": { "value": "{ams.text.level.5.font-size}" },
8
9
  "font-weight": { "value": "{ams.text.font-weight.normal}" },
9
10
  "gap": { "value": "0.5em" },
11
+ "line-height": { "value": "{ams.text.level.5.line-height}" },
10
12
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
11
13
  "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" },
12
14
  "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" },
@@ -15,10 +17,6 @@
15
17
  "font-size": { "value": "{ams.text.level.6.font-size}" },
16
18
  "line-height": { "value": "{ams.text.level.6.line-height}" }
17
19
  },
18
- "medium": {
19
- "font-size": { "value": "{ams.text.level.5.font-size}" },
20
- "line-height": { "value": "{ams.text.level.5.line-height}" }
21
- },
22
20
  "large": {
23
21
  "font-size": { "value": "{ams.text.level.4.font-size}" },
24
22
  "line-height": { "value": "{ams.text.level.4.line-height}" }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "ams": {
3
3
  "logo": {
4
- "height": { "value": "2.5rem" },
4
+ "block-size": { "value": "2.5rem" },
5
5
  "emblem": { "color": { "value": "{ams.color.primary-red}" } },
6
6
  "title": { "color": { "value": "{ams.color.primary-red}" } },
7
7
  "subsite": { "color": { "value": "{ams.color.primary-black}" } }
@@ -9,6 +9,10 @@
9
9
  "inverse-color": { "value": "{ams.color.primary-white}" },
10
10
  "line-height": { "value": "{ams.text.level.5.line-height}" },
11
11
  "list-style-type": { "value": "decimal" },
12
+ "small": {
13
+ "font-size": { "value": "{ams.text.level.6.font-size}" },
14
+ "line-height": { "value": "{ams.text.level.6.line-height}" }
15
+ },
12
16
  "item": {
13
17
  "margin-inline-start": {
14
18
  "value": "2.25rem",
@@ -3,16 +3,14 @@
3
3
  "paragraph": {
4
4
  "color": { "value": "{ams.color.primary-black}" },
5
5
  "font-family": { "value": "{ams.text.font-family}" },
6
+ "font-size": { "value": "{ams.text.level.5.font-size}" },
6
7
  "font-weight": { "value": "{ams.text.font-weight.normal}" },
8
+ "line-height": { "value": "{ams.text.level.5.line-height}" },
7
9
  "inverse-color": { "value": "{ams.color.primary-white}" },
8
10
  "small": {
9
11
  "font-size": { "value": "{ams.text.level.6.font-size}" },
10
12
  "line-height": { "value": "{ams.text.level.6.line-height}" }
11
13
  },
12
- "medium": {
13
- "font-size": { "value": "{ams.text.level.5.font-size}" },
14
- "line-height": { "value": "{ams.text.level.5.line-height}" }
15
- },
16
14
  "large": {
17
15
  "font-size": { "value": "{ams.text.level.4.font-size}" },
18
16
  "line-height": { "value": "{ams.text.level.4.line-height}" }
@@ -3,10 +3,10 @@
3
3
  "screen": {
4
4
  "background-color": { "value": "{ams.color.primary-white}" },
5
5
  "wide": {
6
- "max-width": { "value": "100rem" }
6
+ "max-inline-size": { "value": "100rem" }
7
7
  },
8
8
  "x-wide": {
9
- "max-width": { "value": "132rem" }
9
+ "max-inline-size": { "value": "132rem" }
10
10
  }
11
11
  }
12
12
  }
@@ -5,11 +5,11 @@
5
5
  "background-color": { "value": "{ams.color.primary-blue}" },
6
6
  "color": { "value": "{ams.color.primary-white}" },
7
7
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
8
+ "padding-block": { "value": "{ams.space.inside.xs}" },
9
+ "padding-inline": { "value": "{ams.space.inside.xs}" },
8
10
  "hover": {
9
11
  "background-color": { "value": "{ams.color.dark-blue}" }
10
- },
11
- "padding-block": { "value": "{ams.space.inside.xs}" },
12
- "padding-inline": { "value": "{ams.space.inside.xs}" }
12
+ }
13
13
  },
14
14
  "input": {
15
15
  "background-color": { "value": "{ams.color.primary-white}" },
@@ -28,15 +28,21 @@
28
28
  "background-image": {
29
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>\")"
30
30
  },
31
+ "block-size": { "value": "{ams.text.level.5.font-size}" },
31
32
  "color": { "value": "{ams.color.primary-blue}" },
32
- "height": { "value": "{ams.text.level.5.font-size}" },
33
- "width": { "value": "{ams.text.level.5.font-size}" }
33
+ "inline-size": { "value": "{ams.text.level.5.font-size}" }
34
34
  },
35
35
  "hover": {
36
36
  "box-shadow": {
37
37
  "value": "inset 0 0 0 {ams.border.width.md} {ams.color.primary-black}"
38
38
  }
39
39
  },
40
+ "invalid": {
41
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.sm} {ams.color.primary-red}" },
42
+ "hover": {
43
+ "box-shadow": { "value": "inset 0 0 0 {ams.border.width.md} {ams.color.primary-red}" }
44
+ }
45
+ },
40
46
  "placeholder": {
41
47
  "color": { "value": "{ams.color.neutral-grey3}" }
42
48
  }
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "ams": {
3
3
  "switch": {
4
- "font-family": { "value": "{ams.text.font-family}" },
5
4
  "background-color": { "value": "{ams.color.neutral-grey3}" },
6
- "width": { "value": "3.5rem" },
5
+ "font-family": { "value": "{ams.text.font-family}" },
6
+ "outline-offset": { "value": "{ams.focus.outline-offset}" },
7
+ "inline-size": { "value": "3.5rem" },
7
8
  "thumb": {
8
9
  "background-color": { "value": "{ams.color.primary-white}" },
9
- "width": { "value": "1.75rem" },
10
- "height": { "value": "1.75rem" },
10
+ "inline-size": { "value": "1.75rem" },
11
+ "block-size": { "value": "1.75rem" },
11
12
  "hover": {
13
+ "box-shadow": { "value": "0 0 0 0.125rem {ams.switch.thumb.hover.color}" },
12
14
  "color": { "value": "{ams.color.dark-blue}" }
13
15
  }
14
16
  },
15
17
  "checked": {
16
18
  "background-color": { "value": "{ams.color.primary-blue}" }
17
19
  },
18
- "outline-offset": { "value": "{ams.focus.outline-offset}" },
19
20
  "disabled": {
20
21
  "background-color": { "value": "{ams.color.neutral-grey2}" }
21
22
  }
@@ -10,7 +10,7 @@
10
10
  "font-weight": { "value": "{ams.text.font-weight.bold}" }
11
11
  },
12
12
  "cell": {
13
- "border-bottom": { "value": "{ams.border.width.sm} solid {ams.color.neutral-grey1}" },
13
+ "border-block-end": { "value": "{ams.border.width.sm} solid {ams.color.neutral-grey1}" },
14
14
  "padding-block": { "value": "{ams.space.inside.md}" },
15
15
  "padding-inline": { "value": "{ams.space.inside.md}" }
16
16
  },
@@ -3,7 +3,7 @@
3
3
  "tabs": {
4
4
  "list": {
5
5
  "background-color": { "value": "{ams.color.primary-white}" },
6
- "border-bottom": { "value": "{ams.border.width.md} solid {ams.color.primary-blue}" }
6
+ "border-block-end": { "value": "{ams.border.width.md} solid {ams.color.primary-blue}" }
7
7
  },
8
8
  "button": {
9
9
  "color": { "value": "{ams.color.primary-blue}" },
@@ -8,7 +8,7 @@
8
8
  "font-size": { "value": "{ams.text.level.5.font-size}" },
9
9
  "font-weight": { "value": "{ams.text.font-weight.normal}" },
10
10
  "line-height": { "value": "{ams.text.level.5.line-height}" },
11
- "min-height": {
11
+ "min-block-size": {
12
12
  "value": "calc({ams.text.level.5.line-height} * 1em + 2 * {ams.text-area.padding-block})"
13
13
  },
14
14
  "outline-offset": { "value": "{ams.focus.outline-offset}" },
@@ -31,6 +31,10 @@
31
31
  "comment": "The total level >=2 indentation for Amsterdam is 28 pixels, or 1.75rem."
32
32
  }
33
33
  }
34
+ },
35
+ "small": {
36
+ "font-size": { "value": "{ams.text.level.6.font-size}" },
37
+ "line-height": { "value": "{ams.text.level.6.line-height}" }
34
38
  }
35
39
  }
36
40
  }