@amsterdam/design-system-tokens 0.8.0 → 0.10.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 +45 -0
- package/dist/compact.css +1 -1
- package/dist/compact.d.ts +1 -1
- package/dist/compact.mjs +1 -1
- package/dist/compact.scss +1 -1
- package/dist/compact.theme.css +1 -1
- package/dist/index.css +129 -45
- package/dist/index.d.ts +174 -32
- package/dist/index.json +217 -75
- package/dist/index.mjs +161 -77
- package/dist/index.scss +129 -45
- package/dist/index.theme.css +129 -45
- package/package.json +1 -1
- package/src/brand/ams/proportion.tokens.json +3 -3
- package/src/common/ams/focus.tokens.json +1 -1
- package/src/common/ams/link-appearance.tokens.json +2 -2
- package/src/components/ams/avatar.tokens.json +24 -4
- package/src/components/ams/badge.tokens.json +28 -4
- package/src/components/ams/breadcrumb.tokens.json +1 -1
- package/src/components/ams/error-message.tokens.json +11 -0
- package/src/components/ams/{fieldset.tokens.json → field-set.tokens.json} +11 -2
- package/src/components/ams/field.tokens.json +17 -0
- package/src/components/ams/file-input.tokens.json +42 -0
- package/src/components/ams/link-list.tokens.json +2 -4
- package/src/components/ams/logo.tokens.json +1 -1
- package/src/components/ams/ordered-list.tokens.json +4 -0
- package/src/components/ams/paragraph.tokens.json +2 -4
- package/src/components/ams/screen.tokens.json +2 -2
- package/src/components/ams/search-field.tokens.json +11 -5
- package/src/components/ams/switch.tokens.json +6 -5
- package/src/components/ams/table-of-contents.tokens.json +34 -0
- package/src/components/ams/table.tokens.json +1 -1
- package/src/components/ams/tabs.tokens.json +1 -1
- package/src/components/ams/text-area.tokens.json +1 -1
- package/src/components/ams/unordered-list.tokens.json +4 -0
|
@@ -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
|
-
"
|
|
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-
|
|
6
|
+
"max-inline-size": { "value": "100rem" }
|
|
7
7
|
},
|
|
8
8
|
"x-wide": {
|
|
9
|
-
"max-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
10
|
-
"
|
|
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
|
}
|
|
@@ -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.inside.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.inside.md}" },
|
|
22
|
+
"list": {
|
|
23
|
+
"padding-block-start": { "value": "{ams.space.inside.md}" },
|
|
24
|
+
"padding-inline-start": { "value": "{ams.space.inside.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
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"font-weight": { "value": "{ams.text.font-weight.bold}" }
|
|
11
11
|
},
|
|
12
12
|
"cell": {
|
|
13
|
-
"border-
|
|
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-
|
|
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-
|
|
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
|
}
|