@amsterdam/design-system-tokens 0.9.0 → 0.11.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.
- package/CHANGELOG.md +34 -0
- package/build.js +15 -14
- package/dist/compact.css +13 -9
- package/dist/compact.d.ts +10 -12
- package/dist/compact.json +12 -7
- package/dist/compact.mjs +13 -9
- package/dist/compact.scss +13 -9
- package/dist/compact.theme.css +13 -9
- package/dist/index.css +145 -108
- package/dist/index.d.ts +96 -41
- package/dist/index.json +254 -192
- package/dist/index.mjs +223 -186
- package/dist/index.scss +145 -108
- package/dist/index.theme.css +145 -108
- package/package.json +3 -2
- package/src/brand/ams/proportion.tokens.json +3 -3
- package/src/brand/ams/space.compact.tokens.json +5 -0
- package/src/brand/ams/space.tokens.json +10 -19
- package/src/brand/ams/text.compact.tokens.json +7 -7
- package/src/brand/ams/text.tokens.json +7 -7
- package/src/components/ams/accordion.tokens.json +4 -4
- package/src/components/ams/alert.tokens.json +6 -3
- package/src/components/ams/avatar.tokens.json +26 -6
- package/src/components/ams/badge.tokens.json +1 -1
- package/src/components/ams/breadcrumb.tokens.json +4 -1
- package/src/components/ams/button.tokens.json +3 -3
- package/src/components/ams/card.tokens.json +4 -0
- package/src/components/ams/{form-field-character-counter.tokens.json → character-count.tokens.json} +1 -1
- package/src/components/ams/checkbox.tokens.json +1 -0
- package/src/components/ams/column.tokens.json +6 -5
- package/src/components/ams/date-input.tokens.json +2 -2
- package/src/components/ams/description-list.tokens.json +3 -3
- package/src/components/ams/dialog.tokens.json +8 -7
- package/src/components/ams/field-set.tokens.json +3 -7
- package/src/components/ams/field.tokens.json +3 -9
- package/src/components/ams/file-input.tokens.json +5 -5
- package/src/components/ams/form-error-list.tokens.json +7 -0
- package/src/components/ams/header.tokens.json +1 -1
- package/src/components/ams/link-list.tokens.json +2 -2
- package/src/components/ams/mega-menu.tokens.json +1 -1
- package/src/components/ams/ordered-list.tokens.json +1 -1
- package/src/components/ams/page-menu.tokens.json +1 -1
- package/src/components/ams/pagination.tokens.json +2 -1
- package/src/components/ams/radio.tokens.json +1 -0
- package/src/components/ams/row.tokens.json +6 -5
- package/src/components/ams/search-field.tokens.json +4 -4
- package/src/components/ams/select.tokens.json +3 -3
- package/src/components/ams/skip-link.tokens.json +2 -2
- package/src/components/ams/table-of-contents.tokens.json +34 -0
- package/src/components/ams/table.tokens.json +2 -2
- package/src/components/ams/tabs.tokens.json +3 -2
- package/src/components/ams/text-area.tokens.json +2 -2
- package/src/components/ams/text-input.tokens.json +2 -2
- package/src/components/ams/time-input.tokens.json +2 -2
- package/src/components/ams/top-task-link.tokens.json +1 -0
- package/src/components/ams/unordered-list.tokens.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"background-image": {
|
|
6
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
7
|
},
|
|
8
|
-
"background-position": { "value": "right {ams.space.
|
|
8
|
+
"background-position": { "value": "right {ams.space.md} center" },
|
|
9
9
|
"box-shadow": { "value": "inset 0 0 0 {ams.border.width.sm} {ams.color.primary-black}" },
|
|
10
10
|
"color": { "value": "{ams.color.primary-black}" },
|
|
11
11
|
"font-family": { "value": "{ams.text.font-family}" },
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
14
14
|
"line-height": { "value": "{ams.text.level.5.line-height}" },
|
|
15
15
|
"outline-offset": { "value": "{ams.focus.outline-offset}" },
|
|
16
|
-
"padding-block": { "value": "{ams.space.
|
|
17
|
-
"padding-inline": { "value": "{ams.space.
|
|
16
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
17
|
+
"padding-inline": { "value": "{ams.space.md} calc(2 * {ams.space.md} + 1em)" },
|
|
18
18
|
"disabled": {
|
|
19
19
|
"background-image": {
|
|
20
20
|
"value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23BEBEBE' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>\")"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
9
9
|
"line-height": { "value": "{ams.text.level.6.line-height}" },
|
|
10
10
|
"outline-offset": { "value": "{ams.focus.outline-offset}" },
|
|
11
|
-
"padding-block": { "value": "{ams.space.
|
|
12
|
-
"padding-inline": { "value": "{ams.space.
|
|
11
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
12
|
+
"padding-inline": { "value": "{ams.space.md}" },
|
|
13
13
|
"hover": {
|
|
14
14
|
"background-color": { "value": "{ams.color.dark-blue}" }
|
|
15
15
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ams": {
|
|
3
|
+
"table-of-contents": {
|
|
4
|
+
"font-family": { "value": "{ams.text.font-family}" },
|
|
5
|
+
"font-size": { "value": "{ams.text.level.5.font-size}" },
|
|
6
|
+
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
7
|
+
"gap": { "value": "{ams.space.md}" },
|
|
8
|
+
"line-height": { "value": "{ams.text.level.5.line-height}" },
|
|
9
|
+
"link": {
|
|
10
|
+
"color": { "value": "{ams.link-appearance.color}" },
|
|
11
|
+
"outline-offset": { "value": "{ams.focus.outline-offset}" },
|
|
12
|
+
"text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" },
|
|
13
|
+
"text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" },
|
|
14
|
+
"text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" },
|
|
15
|
+
"hover": {
|
|
16
|
+
"color": { "value": "{ams.link-appearance.hover.color}" },
|
|
17
|
+
"text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"list": {
|
|
21
|
+
"gap": { "value": "{ams.space.sm}" },
|
|
22
|
+
"list": {
|
|
23
|
+
"padding-block-start": { "value": "{ams.space.sm}" },
|
|
24
|
+
"padding-inline-start": { "value": "{ams.space.lg}" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"heading": {
|
|
28
|
+
"font-weight": { "value": "{ams.text.font-weight.bold}" },
|
|
29
|
+
"font-size": { "value": "{ams.text.level.4.font-size}" },
|
|
30
|
+
"line-height": { "value": "{ams.text.level.4.line-height}" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"cell": {
|
|
13
13
|
"border-block-end": { "value": "{ams.border.width.sm} solid {ams.color.neutral-grey1}" },
|
|
14
|
-
"padding-block": { "value": "{ams.space.
|
|
15
|
-
"padding-inline": { "value": "{ams.space.
|
|
14
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
15
|
+
"padding-inline": { "value": "{ams.space.md}" }
|
|
16
16
|
},
|
|
17
17
|
"header-cell": {
|
|
18
18
|
"font-weight": { "value": "{ams.text.font-weight.bold}" }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ams": {
|
|
3
3
|
"tabs": {
|
|
4
|
+
"gap": { "value": "{ams.space.md}" },
|
|
4
5
|
"list": {
|
|
5
6
|
"background-color": { "value": "{ams.color.primary-white}" },
|
|
6
7
|
"border-block-end": { "value": "{ams.border.width.md} solid {ams.color.primary-blue}" }
|
|
@@ -13,8 +14,8 @@
|
|
|
13
14
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
14
15
|
"line-height": { "value": "{ams.text.level.5.line-height}" },
|
|
15
16
|
"outline-offset": { "value": "-0.25rem" },
|
|
16
|
-
"padding-block": { "value": ".
|
|
17
|
-
"padding-inline": { "value": "
|
|
17
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
18
|
+
"padding-inline": { "value": "{ams.space.md}" },
|
|
18
19
|
"hover": {
|
|
19
20
|
"color": { "value": "{ams.color.dark-blue}" },
|
|
20
21
|
"box-shadow": { "value": "inset 0 -0.125rem 0 0 {ams.color.dark-blue}" }
|
|
@@ -12,8 +12,8 @@
|
|
|
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}" },
|
|
15
|
-
"padding-block": { "value": "
|
|
16
|
-
"padding-inline": { "value": "
|
|
15
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
16
|
+
"padding-inline": { "value": "{ams.space.md}" },
|
|
17
17
|
"disabled": {
|
|
18
18
|
"background-color": { "value": "{ams.color.primary-white}" },
|
|
19
19
|
"box-shadow": { "value": "inset 0 0 0 {ams.border.width.sm} {ams.color.neutral-grey2}" },
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
10
10
|
"line-height": { "value": "{ams.text.level.5.line-height}" },
|
|
11
11
|
"outline-offset": { "value": "{ams.focus.outline-offset}" },
|
|
12
|
-
"padding-block": { "value": "{ams.space.
|
|
13
|
-
"padding-inline": { "value": "{ams.space.
|
|
12
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
13
|
+
"padding-inline": { "value": "{ams.space.md}" },
|
|
14
14
|
"disabled": {
|
|
15
15
|
"background-color": { "value": "{ams.color.primary-white}" },
|
|
16
16
|
"box-shadow": { "value": "inset 0 0 0 {ams.border.width.sm} {ams.color.neutral-grey2}" },
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
10
10
|
"line-height": { "value": "{ams.text.level.5.line-height}" },
|
|
11
11
|
"outline-offset": { "value": "{ams.focus.outline-offset}" },
|
|
12
|
-
"padding-block": { "value": "{ams.space.
|
|
13
|
-
"padding-inline": { "value": "{ams.space.
|
|
12
|
+
"padding-block": { "value": "{ams.space.sm}" },
|
|
13
|
+
"padding-inline": { "value": "{ams.space.md}" },
|
|
14
14
|
"calender-picker-indicator": {
|
|
15
15
|
"background-image": {
|
|
16
16
|
"value": "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23004699'><path d='M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16A16 16 0 0 0 16 0zm.9 28v-2h-2v1.9A11.8 11.8 0 0 1 4.1 17H6v-2H4.1A11.8 11.8 0 0 1 15 4.1V6h2V4.1A11.8 11.8 0 0 1 27.9 15H26v2h1.9a11.9 11.9 0 0 1-11 11zm.1-13h4v2h-6V9h2v6z'/></svg>\")"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"font-family": { "value": "{ams.text.font-family}" },
|
|
6
6
|
"font-size": { "value": "{ams.text.level.5.font-size}" },
|
|
7
7
|
"font-weight": { "value": "{ams.text.font-weight.normal}" },
|
|
8
|
-
"gap": { "value": "
|
|
8
|
+
"gap": { "value": "{ams.space.sm}" },
|
|
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": "'\\2022'" },
|