@amsterdam/design-system-tokens 0.15.0 → 1.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.
- package/CHANGELOG.md +61 -0
- package/LICENSE.md +2 -2
- package/README.md +4 -4
- package/dist/compact.css +3 -0
- package/dist/compact.d.ts +7 -0
- package/dist/compact.json +8 -1
- package/dist/compact.mjs +4 -0
- package/dist/compact.scss +3 -0
- package/dist/compact.theme.css +3 -0
- package/dist/index.css +239 -217
- package/dist/index.d.ts +292 -250
- package/dist/index.json +361 -319
- package/dist/index.mjs +293 -273
- package/dist/index.scss +231 -209
- package/dist/index.theme.css +239 -217
- package/package.json +3 -3
- package/src/brand/ams/focus.tokens.json +1 -1
- package/src/brand/ams/typography.compact.tokens.json +2 -1
- package/src/brand/ams/typography.tokens.json +1 -0
- package/src/components/ams/accordion.tokens.json +1 -0
- package/src/components/ams/alert.tokens.json +7 -8
- package/src/components/ams/avatar.tokens.json +10 -1
- package/src/components/ams/badge.tokens.json +1 -1
- package/src/components/ams/button.tokens.json +8 -12
- package/src/components/ams/card.tokens.json +8 -2
- package/src/components/ams/checkbox.tokens.json +57 -36
- package/src/components/ams/date-input.tokens.json +9 -8
- package/src/components/ams/dialog.tokens.json +25 -8
- package/src/components/ams/field-set.tokens.json +2 -1
- package/src/components/ams/file-input.tokens.json +8 -11
- package/src/components/ams/grid.tokens.json +6 -6
- package/src/components/ams/heading.tokens.json +1 -0
- package/src/components/ams/hint.tokens.json +1 -1
- package/src/components/ams/label.tokens.json +2 -1
- package/src/components/ams/link.tokens.json +8 -27
- package/src/components/ams/{footer.tokens.json → page-footer.tokens.json} +7 -1
- package/src/components/ams/page-header.compact.tokens.json +10 -0
- package/src/components/ams/{header.tokens.json → page-header.tokens.json} +10 -2
- package/src/components/ams/page-heading.tokens.json +1 -0
- package/src/components/ams/page.tokens.json +8 -0
- package/src/components/ams/password-input.tokens.json +7 -6
- package/src/components/ams/radio.tokens.json +0 -2
- package/src/components/ams/search-field.tokens.json +7 -4
- package/src/components/ams/select.tokens.json +11 -6
- package/src/components/ams/standalone-link.tokens.json +40 -0
- package/src/components/ams/switch.tokens.json +2 -2
- package/src/components/ams/tabs.tokens.json +3 -3
- package/src/components/ams/text-area.tokens.json +7 -6
- package/src/components/ams/text-input.tokens.json +7 -6
- package/src/components/ams/time-input.tokens.json +9 -8
- package/src/components/ams/mega-menu.tokens.json +0 -18
- package/src/components/ams/page-menu.tokens.json +0 -24
- package/src/components/ams/screen.tokens.json +0 -13
- package/src/components/ams/top-task-link.tokens.json +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,67 @@
|
|
|
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
|
+
## [1.0.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.16.0...design-system-tokens-v1.0.0) (2025-05-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **Checkbox:** Use SVG for icon ([#2039](https://github.com/Amsterdam/design-system/issues/2039))
|
|
12
|
+
* Use border property for borders and box shadows only for hovers ([#1998](https://github.com/Amsterdam/design-system/issues/1998))
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **Checkbox:** Use SVG for icon ([#2039](https://github.com/Amsterdam/design-system/issues/2039)) ([713ec04](https://github.com/Amsterdam/design-system/commit/713ec04575e9bbcc59aedad1f93e2ea25c2996ed))
|
|
17
|
+
* **Label:** Change design for (optional) hint ([#2048](https://github.com/Amsterdam/design-system/issues/2048)) ([971757c](https://github.com/Amsterdam/design-system/commit/971757c1ba3f5aef401c0f589ea40815907ab7ac))
|
|
18
|
+
* **Page Header:** Use heading level 2 for brandname in compact theme ([#2044](https://github.com/Amsterdam/design-system/issues/2044)) ([c5530df](https://github.com/Amsterdam/design-system/commit/c5530df647c84578aba9b8f258f84cd36d1b81e6))
|
|
19
|
+
* Use border property for borders and box shadows only for hovers ([#1998](https://github.com/Amsterdam/design-system/issues/1998)) ([f91c2e3](https://github.com/Amsterdam/design-system/commit/f91c2e39294c4b1e48f443ccbba5605c5d2dcfa2))
|
|
20
|
+
* Use medium border width for Inputs, Select and Switch thumb ([#2054](https://github.com/Amsterdam/design-system/issues/2054)) ([8cedce5](https://github.com/Amsterdam/design-system/commit/8cedce5728cbfc47df01d000f7a349ad946cee17))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **Date Input, Select, Time Input:** Use correct colors for icons ([#2020](https://github.com/Amsterdam/design-system/issues/2020)) ([a49c3d2](https://github.com/Amsterdam/design-system/commit/a49c3d2b5d4337fab812a274dceff1ce926b34ea))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Miscellaneous Chores
|
|
29
|
+
|
|
30
|
+
* Release 1.0.0 ([247375d](https://github.com/Amsterdam/design-system/commit/247375df3a0dfd5109726aaf2bb71b56ef62fdd1))
|
|
31
|
+
|
|
32
|
+
## [0.16.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.15.0...design-system-tokens-v0.16.0) (2025-04-25)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### ⚠ BREAKING CHANGES
|
|
36
|
+
|
|
37
|
+
* **Screen:** Delete component (use Page instead) ([#2018](https://github.com/Amsterdam/design-system/issues/2018))
|
|
38
|
+
* **Grid:** Match values for padding and gap with Space sizes ([#1993](https://github.com/Amsterdam/design-system/issues/1993))
|
|
39
|
+
* **Link:** Remove ‘variant’ prop, make inline the default ([#1994](https://github.com/Amsterdam/design-system/issues/1994))
|
|
40
|
+
* **Card:** Replace gap with margins and introduce subcomponents ([#1972](https://github.com/Amsterdam/design-system/issues/1972))
|
|
41
|
+
* **Top Task Link:** Remove component ([#1988](https://github.com/Amsterdam/design-system/issues/1988))
|
|
42
|
+
* **Footer:** Rename component to Page Footer ([#1971](https://github.com/Amsterdam/design-system/issues/1971))
|
|
43
|
+
* **Header:** Rename component to Page Header ([#1970](https://github.com/Amsterdam/design-system/issues/1970))
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* Add Standalone Link ([#1979](https://github.com/Amsterdam/design-system/issues/1979)) ([b5d57bb](https://github.com/Amsterdam/design-system/commit/b5d57bbd34c7817e436f7b28d5dc675213394bfb))
|
|
48
|
+
* **Alert:** Increase horizontal spacing around icon ([#1974](https://github.com/Amsterdam/design-system/issues/1974)) ([a71e1ba](https://github.com/Amsterdam/design-system/commit/a71e1ba779590fb7d7c8bd6c60e69309f268824c))
|
|
49
|
+
* **Avatar, Badge, Spotlight:** Use inverse text on azure background, add guidelines to pair colours ([#1965](https://github.com/Amsterdam/design-system/issues/1965)) ([772b0dd](https://github.com/Amsterdam/design-system/commit/772b0dd0828fc492108bd19ab9726da1d42b67d9))
|
|
50
|
+
* Balance text wrapping in all kinds of Headings ([#1968](https://github.com/Amsterdam/design-system/issues/1968)) ([ecc87a0](https://github.com/Amsterdam/design-system/commit/ecc87a091b356aaffaa8d0a11f1e7014c4f48f41))
|
|
51
|
+
* **Card:** Replace gap with margins and introduce subcomponents ([#1972](https://github.com/Amsterdam/design-system/issues/1972)) ([85e34d4](https://github.com/Amsterdam/design-system/commit/85e34d4ec3da1589c95925a677e5800fb071dc32))
|
|
52
|
+
* **Dialog:** Decrease amounts of inner and outer whitespace ([#1975](https://github.com/Amsterdam/design-system/issues/1975)) ([b47526f](https://github.com/Amsterdam/design-system/commit/b47526f24e5c6c9ce94f8280f93e6273d16a8640))
|
|
53
|
+
* **Footer:** Rename component to Page Footer ([#1971](https://github.com/Amsterdam/design-system/issues/1971)) ([d0f7edc](https://github.com/Amsterdam/design-system/commit/d0f7edc1bd3dcbba0973d4494fd6c9e90a158cd2))
|
|
54
|
+
* **Grid:** Match values for padding and gap with Space sizes ([#1993](https://github.com/Amsterdam/design-system/issues/1993)) ([f161152](https://github.com/Amsterdam/design-system/commit/f161152292f86770ffda0d60c3448f8d20b7b775))
|
|
55
|
+
* **Header:** Rename component to Page Header ([#1970](https://github.com/Amsterdam/design-system/issues/1970)) ([17172e4](https://github.com/Amsterdam/design-system/commit/17172e4fd89c630be6eb604d12058214a075a82b))
|
|
56
|
+
* **Link:** Remove ‘variant’ prop, make inline the default ([#1994](https://github.com/Amsterdam/design-system/issues/1994)) ([75b07b8](https://github.com/Amsterdam/design-system/commit/75b07b8bbdc758da26ce0319e2b989d079744065))
|
|
57
|
+
* **Page:** Add Page component ([#1982](https://github.com/Amsterdam/design-system/issues/1982)) ([813033c](https://github.com/Amsterdam/design-system/commit/813033c93be66dabccae3ff5f32484487dffc1aa))
|
|
58
|
+
* **Screen:** Delete component (use Page instead) ([#2018](https://github.com/Amsterdam/design-system/issues/2018)) ([0c59f6d](https://github.com/Amsterdam/design-system/commit/0c59f6dccffa7eda745a3b34554c86b646d514ba))
|
|
59
|
+
* **Top Task Link:** Remove component ([#1988](https://github.com/Amsterdam/design-system/issues/1988)) ([6da8a9b](https://github.com/Amsterdam/design-system/commit/6da8a9bdf47648a3ff0e18f89ed722092d0dad18))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Bug Fixes
|
|
63
|
+
|
|
64
|
+
* **Page Footer:** Set correct inline padding ([#2004](https://github.com/Amsterdam/design-system/issues/2004)) ([cb2e70c](https://github.com/Amsterdam/design-system/commit/cb2e70ce04e05aed64299e1df8c40b9d8873ca83))
|
|
65
|
+
* **Page Header:** Restore alignment with edges of Grid ([#1976](https://github.com/Amsterdam/design-system/issues/1976)) ([723a757](https://github.com/Amsterdam/design-system/commit/723a757511c921e8e5a4181c348ebd2077527a44))
|
|
66
|
+
|
|
6
67
|
## [0.15.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.14.0...design-system-tokens-v0.15.0) (2025-03-28)
|
|
7
68
|
|
|
8
69
|
|
package/LICENSE.md
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# License
|
|
4
4
|
|
|
5
|
-
The open
|
|
5
|
+
The open-source licence does NOT apply to files in this directory.
|
|
6
6
|
|
|
7
|
-
These are
|
|
7
|
+
These are proprietary assets to the City of Amsterdam.
|
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ Examples:
|
|
|
87
87
|
}
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
Find the [list of brand tokens](https://github.com/Amsterdam/design-system/tree/main/proprietary/tokens/src/brand/ams) on GitHub.
|
|
90
|
+
Find the [list of brand tokens](https://github.com/Amsterdam/design-system/tree/main/packages-proprietary/tokens/src/brand/ams) on GitHub.
|
|
91
91
|
|
|
92
92
|
##### Removing ‘default’ keys
|
|
93
93
|
|
|
@@ -116,7 +116,7 @@ The same goes for custom components that you may create in your application.
|
|
|
116
116
|
}
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
Find the [list of common tokens](https://github.com/Amsterdam/design-system/tree/main/proprietary/tokens/src/common/ams) on GitHub.
|
|
119
|
+
Find the [list of common tokens](https://github.com/Amsterdam/design-system/tree/main/packages-proprietary/tokens/src/common/ams) on GitHub.
|
|
120
120
|
|
|
121
121
|
#### Component tokens
|
|
122
122
|
|
|
@@ -136,7 +136,7 @@ Do not apply these tokens to other components – components must be independent
|
|
|
136
136
|
}
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Find the [list of component tokens](https://github.com/Amsterdam/design-system/tree/main/proprietary/tokens/src/component/ams) on GitHub.
|
|
139
|
+
Find the [list of component tokens](https://github.com/Amsterdam/design-system/tree/main/packages-proprietary/tokens/src/component/ams) on GitHub.
|
|
140
140
|
|
|
141
141
|
### Overriding tokens
|
|
142
142
|
|
|
@@ -202,7 +202,7 @@ The tokens are used in our [Figma Library](https://www.figma.com/file/9IGm6IdPUY
|
|
|
202
202
|
|
|
203
203
|
## Updating
|
|
204
204
|
|
|
205
|
-
We follow semantic versioning and publish a [change log](https://github.com/Amsterdam/design-system/blob/main/proprietary/tokens/CHANGELOG.md) to guide you through updates.
|
|
205
|
+
We follow semantic versioning and publish a [change log](https://github.com/Amsterdam/design-system/blob/main/packages-proprietary/tokens/CHANGELOG.md) to guide you through updates.
|
|
206
206
|
The tokens are a public API of the design system.
|
|
207
207
|
Note that detecting changed or deleted tokens is still a manual process.
|
|
208
208
|
|
package/dist/compact.css
CHANGED
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
--ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
17
17
|
--ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
18
18
|
--ams-typography-heading-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
19
|
+
--ams-typography-heading-2-line-height: 1.2133;
|
|
19
20
|
--ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
20
21
|
--ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
21
22
|
--ams-typography-heading-5-font-size: 1rem;
|
|
22
23
|
--ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
23
24
|
--ams-grid-padding-inline: var(--ams-space-xl);
|
|
25
|
+
--ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
|
|
26
|
+
--ams-page-header-brand-name-line-height: var(--ams-typography-heading-2-line-height);
|
|
24
27
|
}
|
package/dist/compact.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ declare const tokens: {
|
|
|
46
46
|
};
|
|
47
47
|
"2": {
|
|
48
48
|
"font-size": DesignToken;
|
|
49
|
+
"line-height": DesignToken;
|
|
49
50
|
};
|
|
50
51
|
"3": {
|
|
51
52
|
"font-size": DesignToken;
|
|
@@ -64,5 +65,11 @@ declare const tokens: {
|
|
|
64
65
|
grid: {
|
|
65
66
|
"padding-inline": DesignToken;
|
|
66
67
|
};
|
|
68
|
+
"page-header": {
|
|
69
|
+
"brand-name": {
|
|
70
|
+
"font-size": DesignToken;
|
|
71
|
+
"line-height": DesignToken;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
67
74
|
};
|
|
68
75
|
};
|
package/dist/compact.json
CHANGED
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"font-size": "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)"
|
|
30
30
|
},
|
|
31
31
|
"2": {
|
|
32
|
-
"font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)"
|
|
32
|
+
"font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)",
|
|
33
|
+
"line-height": "1.2133"
|
|
33
34
|
},
|
|
34
35
|
"3": {
|
|
35
36
|
"font-size": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)"
|
|
@@ -47,6 +48,12 @@
|
|
|
47
48
|
},
|
|
48
49
|
"grid": {
|
|
49
50
|
"padding-inline": "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)"
|
|
51
|
+
},
|
|
52
|
+
"page-header": {
|
|
53
|
+
"brand-name": {
|
|
54
|
+
"font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)",
|
|
55
|
+
"line-height": "1.2133"
|
|
56
|
+
}
|
|
50
57
|
}
|
|
51
58
|
}
|
|
52
59
|
}
|
package/dist/compact.mjs
CHANGED
|
@@ -21,6 +21,7 @@ export const amsTypographyHeading_1FontSize =
|
|
|
21
21
|
"clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)";
|
|
22
22
|
export const amsTypographyHeading_2FontSize =
|
|
23
23
|
"clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
|
|
24
|
+
export const amsTypographyHeading_2LineHeight = "1.2133";
|
|
24
25
|
export const amsTypographyHeading_3FontSize =
|
|
25
26
|
"clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
|
|
26
27
|
export const amsTypographyHeading_4FontSize =
|
|
@@ -29,3 +30,6 @@ export const amsTypographyHeading_5FontSize = "1rem";
|
|
|
29
30
|
export const amsTypographyHeading_6FontSize =
|
|
30
31
|
"clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
|
|
31
32
|
export const amsGridPaddingInline = "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)";
|
|
33
|
+
export const amsPageHeaderBrandNameFontSize =
|
|
34
|
+
"clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
|
|
35
|
+
export const amsPageHeaderBrandNameLineHeight = "1.2133";
|
package/dist/compact.scss
CHANGED
|
@@ -14,8 +14,11 @@ $ams-typography-body-text-x-large-font-size: clamp(1.21rem, calc(1.1961rem + 0.0
|
|
|
14
14
|
$ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
15
15
|
$ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
16
16
|
$ams-typography-heading-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
17
|
+
$ams-typography-heading-2-line-height: 1.2133;
|
|
17
18
|
$ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
18
19
|
$ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
19
20
|
$ams-typography-heading-5-font-size: 1rem;
|
|
20
21
|
$ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
21
22
|
$ams-grid-padding-inline: $ams-space-xl;
|
|
23
|
+
$ams-page-header-brand-name-font-size: $ams-typography-heading-2-font-size;
|
|
24
|
+
$ams-page-header-brand-name-line-height: $ams-typography-heading-2-line-height;
|
package/dist/compact.theme.css
CHANGED
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
--ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
17
17
|
--ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
18
18
|
--ams-typography-heading-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
19
|
+
--ams-typography-heading-2-line-height: 1.2133;
|
|
19
20
|
--ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
20
21
|
--ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
21
22
|
--ams-typography-heading-5-font-size: 1rem;
|
|
22
23
|
--ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
23
24
|
--ams-grid-padding-inline: var(--ams-space-xl);
|
|
25
|
+
--ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
|
|
26
|
+
--ams-page-header-brand-name-line-height: var(--ams-typography-heading-2-line-height);
|
|
24
27
|
}
|