@amsterdam/design-system-tokens 1.0.0 → 2.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +14 -3
  3. package/dist/compact.css +30 -18
  4. package/dist/compact.d.ts +16 -0
  5. package/dist/compact.json +36 -20
  6. package/dist/compact.mjs +33 -23
  7. package/dist/compact.scss +30 -18
  8. package/dist/compact.theme.css +30 -18
  9. package/dist/index.css +335 -269
  10. package/dist/index.d.ts +229 -125
  11. package/dist/index.json +525 -421
  12. package/dist/index.mjs +459 -404
  13. package/dist/index.scss +335 -269
  14. package/dist/index.theme.css +335 -269
  15. package/package.json +2 -2
  16. package/src/brand/ams/border.compact.tokens.json +12 -0
  17. package/src/brand/ams/color.deprecated.tokens.json +12 -0
  18. package/src/brand/ams/color.tokens.json +2 -3
  19. package/src/brand/ams/space.compact.tokens.json +6 -6
  20. package/src/brand/ams/space.tokens.json +6 -6
  21. package/src/brand/ams/typography.compact.tokens.json +17 -15
  22. package/src/brand/ams/typography.deprecated.compact.tokens.json +20 -0
  23. package/src/brand/ams/typography.deprecated.tokens.json +28 -0
  24. package/src/brand/ams/typography.tokens.json +17 -25
  25. package/src/common/ams/inputs.tokens.json +34 -0
  26. package/src/common/ams/links.tokens.json +4 -4
  27. package/src/components/ams/accordion.deprecated.tokens.json +17 -0
  28. package/src/components/ams/accordion.tokens.json +1 -10
  29. package/src/components/ams/breadcrumb.tokens.json +3 -3
  30. package/src/components/ams/button.tokens.json +13 -11
  31. package/src/components/ams/call-to-action-link.tokens.json +24 -0
  32. package/src/components/ams/checkbox.deprecated.tokens.json +43 -0
  33. package/src/components/ams/checkbox.tokens.json +22 -35
  34. package/src/components/ams/date-input.tokens.json +23 -23
  35. package/src/components/ams/error-message.tokens.json +2 -2
  36. package/src/components/ams/field-set.tokens.json +3 -3
  37. package/src/components/ams/file-input.tokens.json +25 -24
  38. package/src/components/ams/icon.deprecated.tokens.json +16 -0
  39. package/src/components/ams/icon.tokens.json +8 -0
  40. package/src/components/ams/label.tokens.json +2 -2
  41. package/src/components/ams/menu.tokens.json +39 -0
  42. package/src/components/ams/ordered-list.tokens.json +2 -2
  43. package/src/components/ams/page-footer.tokens.json +2 -2
  44. package/src/components/ams/page-header.tokens.json +2 -2
  45. package/src/components/ams/{page-heading.tokens.json → page-heading.deprecated.tokens.json} +1 -0
  46. package/src/components/ams/page.tokens.json +1 -1
  47. package/src/components/ams/password-input.tokens.json +18 -18
  48. package/src/components/ams/radio.tokens.json +1 -1
  49. package/src/components/ams/search-field.tokens.json +23 -23
  50. package/src/components/ams/select.tokens.json +17 -17
  51. package/src/components/ams/skip-link.tokens.json +2 -2
  52. package/src/components/ams/standalone-link.deprecated.tokens.json +32 -0
  53. package/src/components/ams/standalone-link.tokens.json +5 -13
  54. package/src/components/ams/table-of-contents.deprecated.tokens.json +11 -0
  55. package/src/components/ams/table-of-contents.tokens.json +1 -6
  56. package/src/components/ams/text-area.tokens.json +18 -18
  57. package/src/components/ams/text-input.tokens.json +18 -18
  58. package/src/components/ams/time-input.tokens.json +23 -23
  59. package/src/components/ams/unordered-list.tokens.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,63 @@
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
+ ## [2.0.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v1.0.1...design-system-tokens-v2.0.0) (2025-09-17)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * Decreased font sizes and line heights of Headings. You should not need the `size` prop very often anymore. Try removing instances, but verify the visual result. See the [example pages in Storybook](https://designsystem.amsterdam/?path=/docs/pages-introduction--docs) for the approach we recommend. ([#2173](https://github.com/Amsterdam/design-system/issues/2173))
12
+
13
+ ### Deprecations
14
+
15
+ The following tokens will be removed in the next major release. If you use them in your code, please delete them.
16
+
17
+ * `ams.accordion.panel.*` and some tokens in `ams.accordion.button`
18
+ * `ams.checkbox.hover.text-decoration-thickness` and `ams.checkbox.rectangle.*`
19
+ * `ams.color.interactive.secondary`
20
+ * `ams.icon.heading-0.*`
21
+ * `ams.page-heading.*`
22
+ * `ams.standalone-link.with-icon.*`, `ams.standalone-link.hover.text-decoration-thickness` and `ams.standalone-link.hover.text-underline-offset`
23
+ * `ams.table-of-contents.*`
24
+ * `ams.typography.heading.0.*` and `ams.typography.heading.6.*`
25
+
26
+ ### Features
27
+
28
+ * **Accordion:** Display Headings in the size that matches their levels ([#2193](https://github.com/Amsterdam/design-system/issues/2193)) ([a3e373f](https://github.com/Amsterdam/design-system/commit/a3e373f5351fcd3a45227506a438d3a4d9ba2d54))
29
+ * Add Call to Action Link component ([#2132](https://github.com/Amsterdam/design-system/issues/2132)) ([908fc5d](https://github.com/Amsterdam/design-system/commit/908fc5d107ded55c344d9d8c40feeb8c2071a1c7))
30
+ * Add Menu component for applications ([#2129](https://github.com/Amsterdam/design-system/issues/2129)) ([886c052](https://github.com/Amsterdam/design-system/commit/886c052164be28a6cea9ed029465a81604841aec))
31
+ * Allow pairing an Icon with Headings 0–2 ([#2131](https://github.com/Amsterdam/design-system/issues/2131)) ([922ded9](https://github.com/Amsterdam/design-system/commit/922ded95c5e18ffeff4cee48e1d27b9bde4b1bf1))
32
+ * **Breadcrumb:** Use regular text size instead of small ([#2121](https://github.com/Amsterdam/design-system/issues/2121)) ([e25a5ea](https://github.com/Amsterdam/design-system/commit/e25a5ea76d4d7a88097dfeb95e1aa51caa550e4e))
33
+ * **Checkbox, Radio:** Make the size of controls fluid like text ([#2128](https://github.com/Amsterdam/design-system/issues/2128)) ([8f176a9](https://github.com/Amsterdam/design-system/commit/8f176a9f1b7310c4955ad7f2f5cfde82593a168a))
34
+ * Decrease font sizes and grid width in Spacious Mode, and increase Heading sizes in Compact Mode ([#2119](https://github.com/Amsterdam/design-system/issues/2119)) ([d60f487](https://github.com/Amsterdam/design-system/commit/d60f4873e7b2e198a8abae14c67fbc13cc98f7a0))
35
+ * Decrease font sizes and line heights of Headings ([#2173](https://github.com/Amsterdam/design-system/issues/2173)) ([a70e945](https://github.com/Amsterdam/design-system/commit/a70e94503a524e97493ecffd4d3b005308307d3e))
36
+ * Decrease offset between link underlines and text baseline ([#2134](https://github.com/Amsterdam/design-system/issues/2134)) ([bf5a69c](https://github.com/Amsterdam/design-system/commit/bf5a69cd9f6a8fe01c651edab73029a43f37999c))
37
+ * **Error Message:** Use regular text size instead of small ([#2163](https://github.com/Amsterdam/design-system/issues/2163)) ([c5045a0](https://github.com/Amsterdam/design-system/commit/c5045a068980a1e4614ba5bc627b05e1fa4e7813))
38
+ * **Field Set:** Make space below legend smaller ([#2171](https://github.com/Amsterdam/design-system/issues/2171)) ([9287e4c](https://github.com/Amsterdam/design-system/commit/9287e4c9c6f5a07d5a3f4853537ab1735c742330))
39
+ * **Heading:** Make sizing consistent in various components and examples ([#2160](https://github.com/Amsterdam/design-system/issues/2160)) ([82184bf](https://github.com/Amsterdam/design-system/commit/82184bfc4b317cb2f219ba5975250b23c7dc8fa9))
40
+ * **Inputs, Text Area, Select, Button:** Improve line height of entered text ([#2161](https://github.com/Amsterdam/design-system/issues/2161)) ([18d9a7d](https://github.com/Amsterdam/design-system/commit/18d9a7d5010a54a6e08893dfbf72f1e7b9434e69))
41
+ * **Ordered List, Unordered List:** Use small gap between items instead of medium ([#2123](https://github.com/Amsterdam/design-system/issues/2123)) ([b11f77b](https://github.com/Amsterdam/design-system/commit/b11f77b20c6c03c3c0be999d70a03debcac01519))
42
+ * **Ordered List, Unordered List:** Visually group nested list with parent item ([#2133](https://github.com/Amsterdam/design-system/issues/2133)) ([cf6a28f](https://github.com/Amsterdam/design-system/commit/cf6a28f1e9a340e4cf3b3e9a442d470c7f9e4f61))
43
+ * **Page Footer:** Use regular text size instead of small ([#2122](https://github.com/Amsterdam/design-system/issues/2122)) ([4130f5a](https://github.com/Amsterdam/design-system/commit/4130f5a1ecce406b2230e8cc67900e06df03a601))
44
+ * **Skip Link:** Use regular text size instead of small ([#2164](https://github.com/Amsterdam/design-system/issues/2164)) ([5580571](https://github.com/Amsterdam/design-system/commit/5580571090a64550b379ed8bbfa1a04b01953a5f))
45
+ * **Standalone Link:** Deprecate the variation with only an underline ([#2136](https://github.com/Amsterdam/design-system/issues/2136)) ([d5059da](https://github.com/Amsterdam/design-system/commit/d5059da21009d608346e68526d7b468e693fbc60))
46
+ * Use thinner borders in Compact Mode ([#2170](https://github.com/Amsterdam/design-system/issues/2170)) ([d6d30e0](https://github.com/Amsterdam/design-system/commit/d6d30e0892e1f19fa1d72db59ae34b882158e92f))
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * **Checkbox:** Refactor CSS, reorder tokens, add input state documentation ([#2058](https://github.com/Amsterdam/design-system/issues/2058)) ([a13ea6d](https://github.com/Amsterdam/design-system/commit/a13ea6d65a54b06120ce4d43ea4b1dd67d562496))
52
+ * Correct shade of black for interactive contrast colour ([#2130](https://github.com/Amsterdam/design-system/issues/2130)) ([c87214d](https://github.com/Amsterdam/design-system/commit/c87214d650c77bc9f841be82c556e32fc716434c))
53
+ * **Table of Contents:** Deprecate unused tokens and class name ([#2190](https://github.com/Amsterdam/design-system/issues/2190)) ([4bb9977](https://github.com/Amsterdam/design-system/commit/4bb997779112f48ca88b6bb9c501f4913a49c501))
54
+ * Use correct underline width for Standalone Link with icon ([#2096](https://github.com/Amsterdam/design-system/issues/2096)) ([a87b5a8](https://github.com/Amsterdam/design-system/commit/a87b5a82636bed3c4e20fa0a7113f7cfca20efe0))
55
+
56
+ ## [1.0.1](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v1.0.0...design-system-tokens-v1.0.1) (2025-06-06)
57
+
58
+
59
+ ### Bug Fixes
60
+
61
+ * **Button:** Restore missing border for secondary button ([#2087](https://github.com/Amsterdam/design-system/issues/2087)) ([18b7a70](https://github.com/Amsterdam/design-system/commit/18b7a70bebe368bba83ce492862ffca70cff11a0))
62
+
6
63
  ## [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
64
 
8
65
 
package/README.md CHANGED
@@ -6,6 +6,10 @@ This package provides all design tokens from the [Amsterdam Design System](https
6
6
  Use it to apply its visual design to your website or application.
7
7
  The tokens are exported in multiple formats, including CSS custom properties and JSON, making them compatible with most, if not all, technology stacks.
8
8
 
9
+ **Note** that the values of the tokens in this package implement the branding of the City of Amsterdam.
10
+ If your project is not affiliated with the City of Amsterdam, you should not use this package.
11
+ You are allowed to copy the token files if you change the values to your own branding.
12
+
9
13
  ## Introduction
10
14
 
11
15
  Every design token is a variable representing a single visual design choice.
@@ -27,7 +31,7 @@ npm install @amsterdam/design-system-tokens
27
31
  ## Usage in CSS
28
32
 
29
33
  Tokens are typically used as custom properties in CSS.
30
- Their name starts with a prefix of `--ams-`; that of a component token (see below) with the property that uses it, e.g. `-font-size`.
34
+ Their names start with a prefix of `--ams-`.
31
35
 
32
36
  ### Main stylesheet
33
37
 
@@ -76,13 +80,15 @@ The tokens are organised in three layers: brand, common and component.
76
80
 
77
81
  These express the corporate identity of the City of Amsterdam.
78
82
  They are our fundamental selection from all possible colours, text characteristics, spacing lengths, border widths, etc.
83
+ Their names begin with our prefix, followed by a design category such as ‘color’, ‘typography’, or ‘space’.
84
+
79
85
  Examples:
80
86
 
81
87
  ```css
82
88
  :root {
83
89
  --ams-color-feedback-error: #ec0000;
84
90
  --ams-space-m: 1rem;
85
- --ams-aspect-ratio-wide: 4/3;
91
+ --ams-aspect-ratio-4-3: 4 / 3;
86
92
  --ams-border-width-l: 0.1875rem;
87
93
  }
88
94
  ```
@@ -101,6 +107,8 @@ For instance, `--ams-color-interactive` and `--ams-color-interactive-disabled`.
101
107
  Related components share visual design characteristics.
102
108
  For example, all links have the same colour, and the borders of various form inputs are equally thick.
103
109
  Common tokens express these relations and streamline future changes.
110
+ Their names begin with our prefix, followed by the name of the group that uses them.
111
+ This group name is plural to indicate that several components apply these tokens.
104
112
 
105
113
  Design system components use common tokens where possible.
106
114
  The same goes for custom components that you may create in your application.
@@ -125,6 +133,9 @@ Every design system component defines a token for every property that expresses
125
133
  Use these tokens when recreating an existing component to receive the correct values for them – now and in the future.
126
134
  Do not apply these tokens to other components – components must be independent.
127
135
 
136
+ The name of a component token ends with the CSS property that uses it, e.g. `-font-size`.
137
+ We follow [the NL Design System token naming guidelines](https://nldesignsystem.nl/handboek/design-tokens/#naamgeving) here.
138
+
128
139
  ```html
129
140
  <button class="my-button" type="button">Button label</button>
130
141
  ```
@@ -181,7 +192,7 @@ Use ‘dot notation’ or square brackets to access the tokens.
181
192
  ```tsx
182
193
  import tokens from "@amsterdam/design-system-tokens/dist/index.json"
183
194
 
184
- const buttonBackgroundColor = tokens.ams.color["primary-blue"]
195
+ const buttonBackgroundColor = tokens.ams.color.interactive.default
185
196
  const rowGap = tokens.ams.space.m
186
197
  ```
187
198
 
package/dist/compact.css CHANGED
@@ -3,25 +3,37 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --ams-space-xs: clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem);
7
- --ams-space-s: clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem);
8
- --ams-space-m: clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem);
9
- --ams-space-l: clamp(1rem, 0.875rem + 0.625vw, 1.5rem);
10
- --ams-space-xl: clamp(1.25rem, 1rem + 1.25vw, 2.25rem);
11
- --ams-space-2xl: clamp(1.5rem, 1.125rem + 1.875vw, 3rem);
6
+ --ams-border-width-s: 0.0625rem;
7
+ --ams-border-width-m: 0.0625rem;
8
+ --ams-border-width-l: 0.125rem;
9
+ --ams-border-width-xl: 0.1875rem;
10
+ --ams-space-xs: 0.25rem;
11
+ --ams-space-s: 0.5rem;
12
+ --ams-space-m: clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem);
13
+ --ams-space-l: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
14
+ --ams-space-xl: clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem);
15
+ --ams-space-2xl: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
12
16
  --ams-typography-body-text-font-size: 1rem;
13
- --ams-typography-body-text-small-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
14
- --ams-typography-body-text-large-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
15
- --ams-typography-body-text-x-large-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
16
- --ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
17
- --ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
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;
20
- --ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
21
- --ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
22
- --ams-typography-heading-5-font-size: 1rem;
23
- --ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
17
+ --ams-typography-body-text-line-height: 1.5;
18
+ --ams-typography-body-text-small-font-size: 0.875rem;
19
+ --ams-typography-body-text-small-line-height: 1.4;
20
+ --ams-typography-body-text-large-font-size: clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem);
21
+ --ams-typography-body-text-large-line-height: 1.4;
22
+ --ams-typography-body-text-x-large-font-size: clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem);
23
+ --ams-typography-body-text-x-large-line-height: 1.3;
24
+ --ams-typography-heading-0-font-size: clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem); /** Use Heading size 1 instead. */
25
+ --ams-typography-heading-1-font-size: clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem);
26
+ --ams-typography-heading-1-line-height: 1.2;
27
+ --ams-typography-heading-2-line-height: 1.3;
28
+ --ams-typography-heading-3-line-height: 1.3;
29
+ --ams-typography-heading-4-line-height: 1.4;
30
+ --ams-typography-heading-5-line-height: 1.4;
31
+ --ams-typography-heading-2-font-size: var(--ams-typography-body-text-x-large-font-size);
32
+ --ams-typography-heading-3-font-size: var(--ams-typography-body-text-large-font-size);
33
+ --ams-typography-heading-4-font-size: var(--ams-typography-body-text-font-size);
34
+ --ams-typography-heading-5-font-size: var(--ams-typography-body-text-small-font-size);
35
+ --ams-typography-heading-6-font-size: var(--ams-typography-body-text-small-font-size); /** Use Heading size 5 instead. */
24
36
  --ams-grid-padding-inline: var(--ams-space-xl);
25
- --ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
26
37
  --ams-page-header-brand-name-line-height: var(--ams-typography-heading-2-line-height);
38
+ --ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
27
39
  }
package/dist/compact.d.ts CHANGED
@@ -16,6 +16,14 @@ declare interface DesignToken {
16
16
 
17
17
  declare const tokens: {
18
18
  ams: {
19
+ border: {
20
+ width: {
21
+ s: DesignToken;
22
+ m: DesignToken;
23
+ l: DesignToken;
24
+ xl: DesignToken;
25
+ };
26
+ };
19
27
  space: {
20
28
  xs: DesignToken;
21
29
  s: DesignToken;
@@ -27,14 +35,18 @@ declare const tokens: {
27
35
  typography: {
28
36
  "body-text": {
29
37
  "font-size": DesignToken;
38
+ "line-height": DesignToken;
30
39
  small: {
31
40
  "font-size": DesignToken;
41
+ "line-height": DesignToken;
32
42
  };
33
43
  large: {
34
44
  "font-size": DesignToken;
45
+ "line-height": DesignToken;
35
46
  };
36
47
  "x-large": {
37
48
  "font-size": DesignToken;
49
+ "line-height": DesignToken;
38
50
  };
39
51
  };
40
52
  heading: {
@@ -43,6 +55,7 @@ declare const tokens: {
43
55
  };
44
56
  "1": {
45
57
  "font-size": DesignToken;
58
+ "line-height": DesignToken;
46
59
  };
47
60
  "2": {
48
61
  "font-size": DesignToken;
@@ -50,12 +63,15 @@ declare const tokens: {
50
63
  };
51
64
  "3": {
52
65
  "font-size": DesignToken;
66
+ "line-height": DesignToken;
53
67
  };
54
68
  "4": {
55
69
  "font-size": DesignToken;
70
+ "line-height": DesignToken;
56
71
  };
57
72
  "5": {
58
73
  "font-size": DesignToken;
74
+ "line-height": DesignToken;
59
75
  };
60
76
  "6": {
61
77
  "font-size": DesignToken;
package/dist/compact.json CHANGED
@@ -1,58 +1,74 @@
1
1
  {
2
2
  "ams": {
3
+ "border": {
4
+ "width": {
5
+ "s": "0.0625rem",
6
+ "m": "0.0625rem",
7
+ "l": "0.125rem",
8
+ "xl": "0.1875rem"
9
+ }
10
+ },
3
11
  "space": {
4
- "xs": "clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem)",
5
- "s": "clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem)",
6
- "m": "clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem)",
7
- "l": "clamp(1rem, 0.875rem + 0.625vw, 1.5rem)",
8
- "xl": "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)",
9
- "2xl": "clamp(1.5rem, 1.125rem + 1.875vw, 3rem)"
12
+ "xs": "0.25rem",
13
+ "s": "0.5rem",
14
+ "m": "clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem)",
15
+ "l": "clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem)",
16
+ "xl": "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)",
17
+ "2xl": "clamp(2rem, 1.7143rem + 1.4286vw, 3rem)"
10
18
  },
11
19
  "typography": {
12
20
  "body-text": {
13
21
  "font-size": "1rem",
22
+ "line-height": "1.5",
14
23
  "small": {
15
- "font-size": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)"
24
+ "font-size": "0.875rem",
25
+ "line-height": "1.4"
16
26
  },
17
27
  "large": {
18
- "font-size": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)"
28
+ "font-size": "clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem)",
29
+ "line-height": "1.4"
19
30
  },
20
31
  "x-large": {
21
- "font-size": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)"
32
+ "font-size": "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)",
33
+ "line-height": "1.3"
22
34
  }
23
35
  },
24
36
  "heading": {
25
37
  "0": {
26
- "font-size": "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)"
38
+ "font-size": "clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem)"
27
39
  },
28
40
  "1": {
29
- "font-size": "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)"
41
+ "font-size": "clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem)",
42
+ "line-height": "1.2"
30
43
  },
31
44
  "2": {
32
- "font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)",
33
- "line-height": "1.2133"
45
+ "font-size": "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)",
46
+ "line-height": "1.3"
34
47
  },
35
48
  "3": {
36
- "font-size": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)"
49
+ "font-size": "clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem)",
50
+ "line-height": "1.3"
37
51
  },
38
52
  "4": {
39
- "font-size": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)"
53
+ "font-size": "1rem",
54
+ "line-height": "1.4"
40
55
  },
41
56
  "5": {
42
- "font-size": "1rem"
57
+ "font-size": "0.875rem",
58
+ "line-height": "1.4"
43
59
  },
44
60
  "6": {
45
- "font-size": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)"
61
+ "font-size": "0.875rem"
46
62
  }
47
63
  }
48
64
  },
49
65
  "grid": {
50
- "padding-inline": "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)"
66
+ "padding-inline": "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)"
51
67
  },
52
68
  "page-header": {
53
69
  "brand-name": {
54
- "font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)",
55
- "line-height": "1.2133"
70
+ "font-size": "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)",
71
+ "line-height": "1.3"
56
72
  }
57
73
  }
58
74
  }
package/dist/compact.mjs CHANGED
@@ -2,34 +2,44 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- export const amsSpaceXs = "clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem)";
6
- export const amsSpaceS = "clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem)";
7
- export const amsSpaceM = "clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem)";
8
- export const amsSpaceL = "clamp(1rem, 0.875rem + 0.625vw, 1.5rem)";
9
- export const amsSpaceXl = "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)";
10
- export const amsSpace_2xl = "clamp(1.5rem, 1.125rem + 1.875vw, 3rem)";
5
+ export const amsBorderWidthS = "0.0625rem";
6
+ export const amsBorderWidthM = "0.0625rem";
7
+ export const amsBorderWidthL = "0.125rem";
8
+ export const amsBorderWidthXl = "0.1875rem";
9
+ export const amsSpaceXs = "0.25rem";
10
+ export const amsSpaceS = "0.5rem";
11
+ export const amsSpaceM = "clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem)";
12
+ export const amsSpaceL = "clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem)";
13
+ export const amsSpaceXl = "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)";
14
+ export const amsSpace_2xl = "clamp(2rem, 1.7143rem + 1.4286vw, 3rem)";
11
15
  export const amsTypographyBodyTextFontSize = "1rem";
12
- export const amsTypographyBodyTextSmallFontSize =
13
- "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
16
+ export const amsTypographyBodyTextLineHeight = "1.5";
17
+ export const amsTypographyBodyTextSmallFontSize = "0.875rem";
18
+ export const amsTypographyBodyTextSmallLineHeight = "1.4";
14
19
  export const amsTypographyBodyTextLargeFontSize =
15
- "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)";
20
+ "clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem)";
21
+ export const amsTypographyBodyTextLargeLineHeight = "1.4";
16
22
  export const amsTypographyBodyTextXLargeFontSize =
17
- "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
23
+ "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)";
24
+ export const amsTypographyBodyTextXLargeLineHeight = "1.3";
18
25
  export const amsTypographyHeading_0FontSize =
19
- "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)";
26
+ "clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem)"; // Use Heading size 1 instead.
20
27
  export const amsTypographyHeading_1FontSize =
21
- "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)";
28
+ "clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem)";
29
+ export const amsTypographyHeading_1LineHeight = "1.2";
22
30
  export const amsTypographyHeading_2FontSize =
23
- "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
24
- export const amsTypographyHeading_2LineHeight = "1.2133";
31
+ "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)";
32
+ export const amsTypographyHeading_2LineHeight = "1.3";
25
33
  export const amsTypographyHeading_3FontSize =
26
- "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
27
- export const amsTypographyHeading_4FontSize =
28
- "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)";
29
- export const amsTypographyHeading_5FontSize = "1rem";
30
- export const amsTypographyHeading_6FontSize =
31
- "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
32
- export const amsGridPaddingInline = "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)";
34
+ "clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem)";
35
+ export const amsTypographyHeading_3LineHeight = "1.3";
36
+ export const amsTypographyHeading_4FontSize = "1rem";
37
+ export const amsTypographyHeading_4LineHeight = "1.4";
38
+ export const amsTypographyHeading_5FontSize = "0.875rem";
39
+ export const amsTypographyHeading_5LineHeight = "1.4";
40
+ export const amsTypographyHeading_6FontSize = "0.875rem"; // Use Heading size 5 instead.
41
+ export const amsGridPaddingInline =
42
+ "clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem)";
33
43
  export const amsPageHeaderBrandNameFontSize =
34
- "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
35
- export const amsPageHeaderBrandNameLineHeight = "1.2133";
44
+ "clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem)";
45
+ export const amsPageHeaderBrandNameLineHeight = "1.3";
package/dist/compact.scss CHANGED
@@ -1,24 +1,36 @@
1
1
 
2
2
  // Do not edit directly, this file was auto-generated.
3
3
 
4
- $ams-space-xs: clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem);
5
- $ams-space-s: clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem);
6
- $ams-space-m: clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem);
7
- $ams-space-l: clamp(1rem, 0.875rem + 0.625vw, 1.5rem);
8
- $ams-space-xl: clamp(1.25rem, 1rem + 1.25vw, 2.25rem);
9
- $ams-space-2xl: clamp(1.5rem, 1.125rem + 1.875vw, 3rem);
4
+ $ams-border-width-s: 0.0625rem;
5
+ $ams-border-width-m: 0.0625rem;
6
+ $ams-border-width-l: 0.125rem;
7
+ $ams-border-width-xl: 0.1875rem;
8
+ $ams-space-xs: 0.25rem;
9
+ $ams-space-s: 0.5rem;
10
+ $ams-space-m: clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem);
11
+ $ams-space-l: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
12
+ $ams-space-xl: clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem);
13
+ $ams-space-2xl: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
10
14
  $ams-typography-body-text-font-size: 1rem;
11
- $ams-typography-body-text-small-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
12
- $ams-typography-body-text-large-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
13
- $ams-typography-body-text-x-large-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
14
- $ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
15
- $ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
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;
18
- $ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
19
- $ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
20
- $ams-typography-heading-5-font-size: 1rem;
21
- $ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
15
+ $ams-typography-body-text-line-height: 1.5;
16
+ $ams-typography-body-text-small-font-size: 0.875rem;
17
+ $ams-typography-body-text-small-line-height: 1.4;
18
+ $ams-typography-body-text-large-font-size: clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem);
19
+ $ams-typography-body-text-large-line-height: 1.4;
20
+ $ams-typography-body-text-x-large-font-size: clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem);
21
+ $ams-typography-body-text-x-large-line-height: 1.3;
22
+ $ams-typography-heading-0-font-size: clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem); // Use Heading size 1 instead.
23
+ $ams-typography-heading-1-font-size: clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem);
24
+ $ams-typography-heading-1-line-height: 1.2;
25
+ $ams-typography-heading-2-line-height: 1.3;
26
+ $ams-typography-heading-3-line-height: 1.3;
27
+ $ams-typography-heading-4-line-height: 1.4;
28
+ $ams-typography-heading-5-line-height: 1.4;
29
+ $ams-typography-heading-2-font-size: $ams-typography-body-text-x-large-font-size;
30
+ $ams-typography-heading-3-font-size: $ams-typography-body-text-large-font-size;
31
+ $ams-typography-heading-4-font-size: $ams-typography-body-text-font-size;
32
+ $ams-typography-heading-5-font-size: $ams-typography-body-text-small-font-size;
33
+ $ams-typography-heading-6-font-size: $ams-typography-body-text-small-font-size; // Use Heading size 5 instead.
22
34
  $ams-grid-padding-inline: $ams-space-xl;
23
- $ams-page-header-brand-name-font-size: $ams-typography-heading-2-font-size;
24
35
  $ams-page-header-brand-name-line-height: $ams-typography-heading-2-line-height;
36
+ $ams-page-header-brand-name-font-size: $ams-typography-heading-2-font-size;
@@ -3,25 +3,37 @@
3
3
  */
4
4
 
5
5
  .ams-theme--compact {
6
- --ams-space-xs: clamp(0.1875rem, 0.1719rem + 0.0781vw, 0.25rem);
7
- --ams-space-s: clamp(0.375rem, 0.3438rem + 0.1563vw, 0.5rem);
8
- --ams-space-m: clamp(0.75rem, 0.6875rem + 0.3125vw, 1rem);
9
- --ams-space-l: clamp(1rem, 0.875rem + 0.625vw, 1.5rem);
10
- --ams-space-xl: clamp(1.25rem, 1rem + 1.25vw, 2.25rem);
11
- --ams-space-2xl: clamp(1.5rem, 1.125rem + 1.875vw, 3rem);
6
+ --ams-border-width-s: 0.0625rem;
7
+ --ams-border-width-m: 0.0625rem;
8
+ --ams-border-width-l: 0.125rem;
9
+ --ams-border-width-xl: 0.1875rem;
10
+ --ams-space-xs: 0.25rem;
11
+ --ams-space-s: 0.5rem;
12
+ --ams-space-m: clamp(0.75rem, 0.6786rem + 0.3571vw, 1rem);
13
+ --ams-space-l: clamp(1rem, 0.8571rem + 0.7143vw, 1.5rem);
14
+ --ams-space-xl: clamp(1.5rem, 1.2857rem + 1.0714vw, 2.25rem);
15
+ --ams-space-2xl: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
12
16
  --ams-typography-body-text-font-size: 1rem;
13
- --ams-typography-body-text-small-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
14
- --ams-typography-body-text-large-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
15
- --ams-typography-body-text-x-large-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
16
- --ams-typography-heading-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
17
- --ams-typography-heading-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
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;
20
- --ams-typography-heading-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
21
- --ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
22
- --ams-typography-heading-5-font-size: 1rem;
23
- --ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
17
+ --ams-typography-body-text-line-height: 1.5;
18
+ --ams-typography-body-text-small-font-size: 0.875rem;
19
+ --ams-typography-body-text-small-line-height: 1.4;
20
+ --ams-typography-body-text-large-font-size: clamp(1.125rem, 1.1071rem + 0.0893vw, 1.1875rem);
21
+ --ams-typography-body-text-large-line-height: 1.4;
22
+ --ams-typography-body-text-x-large-font-size: clamp(1.25rem, 1.1964rem + 0.2679vw, 1.4375rem);
23
+ --ams-typography-body-text-x-large-line-height: 1.3;
24
+ --ams-typography-heading-0-font-size: clamp(2.1645rem, 2.072rem + 0.4626vw, 2.4883rem); /** Use Heading size 1 instead. */
25
+ --ams-typography-heading-1-font-size: clamp(1.5rem, 1.4286rem + 0.3571vw, 1.75rem);
26
+ --ams-typography-heading-1-line-height: 1.2;
27
+ --ams-typography-heading-2-line-height: 1.3;
28
+ --ams-typography-heading-3-line-height: 1.3;
29
+ --ams-typography-heading-4-line-height: 1.4;
30
+ --ams-typography-heading-5-line-height: 1.4;
31
+ --ams-typography-heading-2-font-size: var(--ams-typography-body-text-x-large-font-size);
32
+ --ams-typography-heading-3-font-size: var(--ams-typography-body-text-large-font-size);
33
+ --ams-typography-heading-4-font-size: var(--ams-typography-body-text-font-size);
34
+ --ams-typography-heading-5-font-size: var(--ams-typography-body-text-small-font-size);
35
+ --ams-typography-heading-6-font-size: var(--ams-typography-body-text-small-font-size); /** Use Heading size 5 instead. */
24
36
  --ams-grid-padding-inline: var(--ams-space-xl);
25
- --ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
26
37
  --ams-page-header-brand-name-line-height: var(--ams-typography-heading-2-line-height);
38
+ --ams-page-header-brand-name-font-size: var(--ams-typography-heading-2-font-size);
27
39
  }