@amsterdam/design-system-tokens 0.6.0 → 0.7.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 +19 -0
- package/build.js +1 -1
- package/dist/compact.css +14 -14
- package/dist/compact.d.ts +4 -4
- package/dist/compact.json +3 -3
- package/dist/compact.mjs +14 -14
- package/dist/compact.scss +14 -14
- package/dist/compact.theme.css +15 -15
- package/dist/index.css +581 -582
- package/dist/index.d.ts +29 -30
- package/dist/index.json +43 -44
- package/dist/index.mjs +581 -582
- package/dist/index.scss +581 -582
- package/dist/index.theme.css +582 -583
- package/package.json +1 -1
- package/src/brand/{amsterdam → ams}/color.tokens.json +1 -1
- package/src/brand/{amsterdam → ams}/proportion.tokens.json +1 -1
- package/src/brand/{amsterdam → ams}/space.compact.tokens.json +1 -1
- package/src/brand/{amsterdam → ams}/space.tokens.json +5 -5
- package/src/brand/{amsterdam/typography.compact.tokens.json → ams/text.compact.tokens.json} +3 -3
- package/src/brand/{amsterdam/typography.tokens.json → ams/text.tokens.json} +3 -3
- package/src/common/{amsterdam → ams}/action.tokens.json +1 -1
- package/src/common/{amsterdam → ams}/border.tokens.json +1 -1
- package/src/common/{amsterdam → ams}/focus.tokens.json +1 -1
- package/src/common/{amsterdam → ams}/hyphenation.tokens.json +1 -1
- package/src/common/{amsterdam → ams}/link-appearance.tokens.json +5 -5
- package/src/components/ams/accordion.tokens.json +25 -0
- package/src/components/ams/alert.tokens.json +29 -0
- package/src/components/ams/aspect-ratio.tokens.json +12 -0
- package/src/components/ams/badge.tokens.json +43 -0
- package/src/components/ams/blockquote.tokens.json +12 -0
- package/src/components/ams/breadcrumb.tokens.json +26 -0
- package/src/components/ams/button.tokens.json +59 -0
- package/src/components/ams/card.tokens.json +17 -0
- package/src/components/ams/checkbox.tokens.json +75 -0
- package/src/components/ams/column.tokens.json +13 -0
- package/src/components/{amsterdam → ams}/dialog.tokens.json +7 -7
- package/src/components/ams/fieldset.tokens.json +13 -0
- package/src/components/ams/form-label.tokens.json +11 -0
- package/src/components/ams/gap.tokens.json +11 -0
- package/src/components/ams/grid.compact.tokens.json +7 -0
- package/src/components/ams/grid.tokens.json +25 -0
- package/src/components/ams/header.tokens.json +14 -0
- package/src/components/ams/heading.tokens.json +36 -0
- package/src/components/ams/icon-button.tokens.json +37 -0
- package/src/components/ams/icon.tokens.json +22 -0
- package/src/components/ams/link-list.tokens.json +45 -0
- package/src/components/ams/link.tokens.json +61 -0
- package/src/components/ams/logo.tokens.json +10 -0
- package/src/components/ams/margin.tokens.json +11 -0
- package/src/components/ams/mark.tokens.json +7 -0
- package/src/components/ams/mega-menu.tokens.json +18 -0
- package/src/components/{amsterdam → ams}/ordered-list.tokens.json +7 -7
- package/src/components/ams/page-heading.tokens.json +12 -0
- package/src/components/ams/page-menu.tokens.json +24 -0
- package/src/components/ams/pagination.tokens.json +25 -0
- package/src/components/ams/paragraph.tokens.json +22 -0
- package/src/components/{amsterdam → ams}/radio.tokens.json +14 -14
- package/src/components/ams/row.tokens.json +13 -0
- package/src/components/{amsterdam → ams}/screen.tokens.json +1 -1
- package/src/components/ams/search-field.tokens.json +45 -0
- package/src/components/ams/skip-link.tokens.json +18 -0
- package/src/components/ams/spotlight.tokens.json +30 -0
- package/src/components/ams/switch.tokens.json +24 -0
- package/src/components/ams/table.tokens.json +22 -0
- package/src/components/ams/tabs.tokens.json +34 -0
- package/src/components/ams/text-area.tokens.json +36 -0
- package/src/components/ams/text-input.tokens.json +32 -0
- package/src/components/ams/top-task-link.tokens.json +28 -0
- package/src/components/{amsterdam → ams}/unordered-list.tokens.json +7 -7
- package/src/components/amsterdam/accordion.tokens.json +0 -25
- package/src/components/amsterdam/alert.tokens.json +0 -29
- package/src/components/amsterdam/aspect-ratio.tokens.json +0 -12
- package/src/components/amsterdam/badge.tokens.json +0 -43
- package/src/components/amsterdam/blockquote.tokens.json +0 -12
- package/src/components/amsterdam/breadcrumb.tokens.json +0 -26
- package/src/components/amsterdam/button.tokens.json +0 -62
- package/src/components/amsterdam/card.tokens.json +0 -17
- package/src/components/amsterdam/checkbox.tokens.json +0 -75
- package/src/components/amsterdam/column.tokens.json +0 -13
- package/src/components/amsterdam/fieldset.tokens.json +0 -13
- package/src/components/amsterdam/form-label.tokens.json +0 -11
- package/src/components/amsterdam/gap.tokens.json +0 -11
- package/src/components/amsterdam/grid.compact.tokens.json +0 -7
- package/src/components/amsterdam/grid.tokens.json +0 -25
- package/src/components/amsterdam/header.tokens.json +0 -14
- package/src/components/amsterdam/heading.tokens.json +0 -34
- package/src/components/amsterdam/icon-button.tokens.json +0 -37
- package/src/components/amsterdam/icon.tokens.json +0 -22
- package/src/components/amsterdam/link-list.tokens.json +0 -45
- package/src/components/amsterdam/link.tokens.json +0 -61
- package/src/components/amsterdam/logo.tokens.json +0 -10
- package/src/components/amsterdam/margin.tokens.json +0 -11
- package/src/components/amsterdam/mark.tokens.json +0 -7
- package/src/components/amsterdam/mega-menu.tokens.json +0 -18
- package/src/components/amsterdam/page-heading.tokens.json +0 -12
- package/src/components/amsterdam/page-menu.tokens.json +0 -24
- package/src/components/amsterdam/pagination.tokens.json +0 -25
- package/src/components/amsterdam/paragraph.tokens.json +0 -22
- package/src/components/amsterdam/row.tokens.json +0 -13
- package/src/components/amsterdam/search-field.tokens.json +0 -45
- package/src/components/amsterdam/skip-link.tokens.json +0 -18
- package/src/components/amsterdam/spotlight.tokens.json +0 -30
- package/src/components/amsterdam/switch.tokens.json +0 -24
- package/src/components/amsterdam/table.tokens.json +0 -22
- package/src/components/amsterdam/tabs.tokens.json +0 -34
- package/src/components/amsterdam/text-area.tokens.json +0 -36
- package/src/components/amsterdam/text-input.tokens.json +0 -32
- package/src/components/amsterdam/top-task-link.tokens.json +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.6.1...design-system-tokens-v0.7.0) (2024-03-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Shorten namespaces in theme and tokens ([#1125](https://github.com/Amsterdam/design-system/issues/1125))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Shorten namespaces in theme and tokens ([#1125](https://github.com/Amsterdam/design-system/issues/1125)) ([1c81f3b](https://github.com/Amsterdam/design-system/commit/1c81f3bd14c1f202eec2341aec1888fb74d956d5))
|
|
16
|
+
|
|
17
|
+
## [0.6.1](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.6.0...design-system-tokens-v0.6.1) (2024-03-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Button fixes ([#1122](https://github.com/Amsterdam/design-system/issues/1122)) ([b5a9504](https://github.com/Amsterdam/design-system/commit/b5a950491f46710d92526ce6012f7d76992a569f))
|
|
23
|
+
* Fix small space token lengths ([#1126](https://github.com/Amsterdam/design-system/issues/1126)) ([d9111dc](https://github.com/Amsterdam/design-system/commit/d9111dc99a41f399e892a9da994b74efdad53d97))
|
|
24
|
+
|
|
6
25
|
## [0.6.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.5.1...design-system-tokens-v0.6.0) (2024-03-08)
|
|
7
26
|
|
|
8
27
|
|
package/build.js
CHANGED
|
@@ -28,7 +28,7 @@ function generateSharedConfig(mode) {
|
|
|
28
28
|
destination: `${name}.theme.css`,
|
|
29
29
|
format: 'css/variables',
|
|
30
30
|
options: {
|
|
31
|
-
selector: `.
|
|
31
|
+
selector: `.ams-theme${name === 'index' ? '' : `--${name}`}`,
|
|
32
32
|
outputReferences: true,
|
|
33
33
|
},
|
|
34
34
|
},
|
package/dist/compact.css
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 12 Mar 2024 14:50:53 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
7
|
+
--ams-text-level-6-font-size: clamp(0.75rem, calc(0.188vw + 0.713rem), 0.9rem);
|
|
8
|
+
--ams-text-level-5-font-size: clamp(0.875rem, calc(0.313vw + 0.813rem), 1.125rem);
|
|
9
|
+
--ams-text-level-4-font-size: clamp(1.021rem, calc(0.481vw + 0.925rem), 1.406rem);
|
|
10
|
+
--ams-text-level-3-font-size: clamp(1.191rem, calc(0.709vw + 1.049rem), 1.758rem);
|
|
11
|
+
--ams-text-level-2-font-size: clamp(1.389rem, calc(1.01vw + 1.187rem), 2.197rem);
|
|
12
|
+
--ams-text-level-1-font-size: clamp(1.621rem, calc(1.408vw + 1.34rem), 2.747rem);
|
|
13
|
+
--ams-text-level-0-font-size: clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem);
|
|
14
|
+
--ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
15
|
+
--ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
16
|
+
--ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
|
|
17
|
+
--ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
18
|
+
--ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
19
|
+
--ams-grid-padding-inline: var(--ams-space-grid-md);
|
|
20
20
|
}
|
package/dist/compact.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 12 Mar 2024 14:50:53 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export default tokens;
|
|
@@ -22,7 +22,7 @@ declare interface DesignToken {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
declare const tokens: {
|
|
25
|
-
"
|
|
25
|
+
"ams": {
|
|
26
26
|
"space": {
|
|
27
27
|
"grid": {
|
|
28
28
|
"xs": DesignToken,
|
|
@@ -32,8 +32,8 @@ declare const tokens: {
|
|
|
32
32
|
"xl": DesignToken
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"text": {
|
|
36
|
+
"level": {
|
|
37
37
|
"0": {
|
|
38
38
|
"font-size": DesignToken
|
|
39
39
|
},
|
package/dist/compact.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"ams": {
|
|
3
3
|
"space": {
|
|
4
4
|
"grid": {
|
|
5
5
|
"xs": "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"xl": "clamp(2rem, calc(3.125vw - 0.125rem), 5rem)"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"text": {
|
|
13
|
+
"level": {
|
|
14
14
|
"0": {
|
|
15
15
|
"font-size": "clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem)"
|
|
16
16
|
},
|
package/dist/compact.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 12 Mar 2024 14:50:53 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
6
|
+
export const amsSpaceGridXs = "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)";
|
|
7
|
+
export const amsSpaceGridSm = "clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem)";
|
|
8
|
+
export const amsSpaceGridMd = "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)"; // Grows from 16px at 1088px wide to 40px at 2624px wide.
|
|
9
|
+
export const amsSpaceGridLg = "clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem)";
|
|
10
|
+
export const amsSpaceGridXl = "clamp(2rem, calc(3.125vw - 0.125rem), 5rem)";
|
|
11
|
+
export const amsTextLevel0FontSize = "clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem)";
|
|
12
|
+
export const amsTextLevel1FontSize = "clamp(1.621rem, calc(1.408vw + 1.34rem), 2.747rem)";
|
|
13
|
+
export const amsTextLevel2FontSize = "clamp(1.389rem, calc(1.01vw + 1.187rem), 2.197rem)";
|
|
14
|
+
export const amsTextLevel3FontSize = "clamp(1.191rem, calc(0.709vw + 1.049rem), 1.758rem)";
|
|
15
|
+
export const amsTextLevel4FontSize = "clamp(1.021rem, calc(0.481vw + 0.925rem), 1.406rem)";
|
|
16
|
+
export const amsTextLevel5FontSize = "clamp(0.875rem, calc(0.313vw + 0.813rem), 1.125rem)";
|
|
17
|
+
export const amsTextLevel6FontSize = "clamp(0.75rem, calc(0.188vw + 0.713rem), 0.9rem)";
|
|
18
|
+
export const amsGridPaddingInline = "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)";
|
package/dist/compact.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
// Do not edit directly
|
|
3
|
-
// Generated on
|
|
3
|
+
// Generated on Tue, 12 Mar 2024 14:50:53 GMT
|
|
4
4
|
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
5
|
+
$ams-text-level-6-font-size: clamp(0.75rem, calc(0.188vw + 0.713rem), 0.9rem);
|
|
6
|
+
$ams-text-level-5-font-size: clamp(0.875rem, calc(0.313vw + 0.813rem), 1.125rem);
|
|
7
|
+
$ams-text-level-4-font-size: clamp(1.021rem, calc(0.481vw + 0.925rem), 1.406rem);
|
|
8
|
+
$ams-text-level-3-font-size: clamp(1.191rem, calc(0.709vw + 1.049rem), 1.758rem);
|
|
9
|
+
$ams-text-level-2-font-size: clamp(1.389rem, calc(1.01vw + 1.187rem), 2.197rem);
|
|
10
|
+
$ams-text-level-1-font-size: clamp(1.621rem, calc(1.408vw + 1.34rem), 2.747rem);
|
|
11
|
+
$ams-text-level-0-font-size: clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem);
|
|
12
|
+
$ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
13
|
+
$ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
14
|
+
$ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); // Grows from 16px at 1088px wide to 40px at 2624px wide.
|
|
15
|
+
$ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
16
|
+
$ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
17
|
+
$ams-grid-padding-inline: $ams-space-grid-md;
|
package/dist/compact.theme.css
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 12 Mar 2024 14:50:53 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
6
|
+
.ams-theme--compact {
|
|
7
|
+
--ams-text-level-6-font-size: clamp(0.75rem, calc(0.188vw + 0.713rem), 0.9rem);
|
|
8
|
+
--ams-text-level-5-font-size: clamp(0.875rem, calc(0.313vw + 0.813rem), 1.125rem);
|
|
9
|
+
--ams-text-level-4-font-size: clamp(1.021rem, calc(0.481vw + 0.925rem), 1.406rem);
|
|
10
|
+
--ams-text-level-3-font-size: clamp(1.191rem, calc(0.709vw + 1.049rem), 1.758rem);
|
|
11
|
+
--ams-text-level-2-font-size: clamp(1.389rem, calc(1.01vw + 1.187rem), 2.197rem);
|
|
12
|
+
--ams-text-level-1-font-size: clamp(1.621rem, calc(1.408vw + 1.34rem), 2.747rem);
|
|
13
|
+
--ams-text-level-0-font-size: clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem);
|
|
14
|
+
--ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
15
|
+
--ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
16
|
+
--ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
|
|
17
|
+
--ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
18
|
+
--ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
19
|
+
--ams-grid-padding-inline: var(--ams-space-grid-md);
|
|
20
20
|
}
|