@amsterdam/design-system-tokens 0.14.0 → 0.16.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 (98) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/LICENSE.md +2 -2
  3. package/README.md +18 -11
  4. package/build.js +39 -16
  5. package/dist/compact.css +18 -18
  6. package/dist/compact.d.ts +18 -12
  7. package/dist/compact.json +21 -15
  8. package/dist/compact.mjs +21 -22
  9. package/dist/compact.scss +18 -18
  10. package/dist/compact.theme.css +18 -18
  11. package/dist/index.css +788 -780
  12. package/dist/index.d.ts +414 -410
  13. package/dist/index.json +700 -696
  14. package/dist/index.mjs +609 -585
  15. package/dist/index.scss +788 -780
  16. package/dist/index.theme.css +788 -780
  17. package/package.json +5 -4
  18. package/src/brand/ams/aspect-ratio.tokens.json +6 -6
  19. package/src/brand/ams/border.tokens.json +3 -3
  20. package/src/brand/ams/color.tokens.json +34 -15
  21. package/src/brand/ams/cursor.tokens.json +8 -0
  22. package/src/brand/ams/space.compact.tokens.json +6 -15
  23. package/src/brand/ams/space.tokens.json +5 -14
  24. package/src/brand/ams/{text.compact.tokens.json → typography.compact.tokens.json} +14 -2
  25. package/src/brand/ams/typography.tokens.json +60 -0
  26. package/src/common/ams/links.tokens.json +32 -0
  27. package/src/components/ams/accordion.tokens.json +12 -12
  28. package/src/components/ams/action-group.tokens.json +1 -1
  29. package/src/components/ams/alert.tokens.json +27 -15
  30. package/src/components/ams/avatar.tokens.json +23 -53
  31. package/src/components/ams/badge.tokens.json +22 -48
  32. package/src/components/ams/blockquote.tokens.json +8 -6
  33. package/src/components/ams/breadcrumb.tokens.json +10 -10
  34. package/src/components/ams/button.tokens.json +31 -33
  35. package/src/components/ams/card.tokens.json +14 -8
  36. package/src/components/ams/character-count.tokens.json +6 -6
  37. package/src/components/ams/checkbox.tokens.json +31 -29
  38. package/src/components/ams/column.tokens.json +5 -6
  39. package/src/components/ams/date-input.tokens.json +18 -16
  40. package/src/components/ams/description-list.tokens.json +21 -10
  41. package/src/components/ams/dialog.tokens.json +34 -8
  42. package/src/components/ams/error-message.tokens.json +5 -5
  43. package/src/components/ams/field-set.tokens.json +9 -8
  44. package/src/components/ams/field.tokens.json +3 -3
  45. package/src/components/ams/figure.tokens.json +9 -7
  46. package/src/components/ams/file-input.tokens.json +29 -26
  47. package/src/components/ams/file-list.tokens.json +8 -8
  48. package/src/components/ams/grid.compact.tokens.json +1 -1
  49. package/src/components/ams/grid.tokens.json +12 -10
  50. package/src/components/ams/heading.tokens.json +30 -29
  51. package/src/components/ams/hint.tokens.json +1 -1
  52. package/src/components/ams/icon-button.tokens.json +18 -16
  53. package/src/components/ams/icon.tokens.json +24 -14
  54. package/src/components/ams/image-slider.tokens.json +1 -1
  55. package/src/components/ams/image.tokens.json +1 -1
  56. package/src/components/ams/{form-error-list.tokens.json → invalid-form-alert.tokens.json} +1 -1
  57. package/src/components/ams/label.tokens.json +6 -5
  58. package/src/components/ams/link-list.tokens.json +22 -22
  59. package/src/components/ams/link.tokens.json +16 -46
  60. package/src/components/ams/logo.tokens.json +10 -7
  61. package/src/components/ams/mark.tokens.json +1 -1
  62. package/src/components/ams/ordered-list.tokens.json +13 -11
  63. package/src/components/ams/page-footer.tokens.json +36 -0
  64. package/src/components/ams/page-header.tokens.json +67 -0
  65. package/src/components/ams/page-heading.tokens.json +9 -6
  66. package/src/components/ams/page.tokens.json +8 -0
  67. package/src/components/ams/pagination.tokens.json +13 -13
  68. package/src/components/ams/paragraph.tokens.json +12 -10
  69. package/src/components/ams/password-input.tokens.json +17 -16
  70. package/src/components/ams/radio.tokens.json +30 -28
  71. package/src/components/ams/row.tokens.json +5 -6
  72. package/src/components/ams/search-field.tokens.json +17 -18
  73. package/src/components/ams/select.tokens.json +17 -16
  74. package/src/components/ams/skip-link.tokens.json +9 -9
  75. package/src/components/ams/spotlight.tokens.json +10 -10
  76. package/src/components/ams/standalone-link.tokens.json +40 -0
  77. package/src/components/ams/switch.tokens.json +7 -6
  78. package/src/components/ams/table-of-contents.tokens.json +17 -17
  79. package/src/components/ams/table.tokens.json +10 -13
  80. package/src/components/ams/tabs.tokens.json +16 -20
  81. package/src/components/ams/text-area.tokens.json +18 -18
  82. package/src/components/ams/text-input.tokens.json +17 -16
  83. package/src/components/ams/time-input.tokens.json +18 -16
  84. package/src/components/ams/unordered-list.tokens.json +15 -13
  85. package/src/brand/ams/text.tokens.json +0 -41
  86. package/src/common/ams/action.tokens.json +0 -12
  87. package/src/common/ams/hyphenation.tokens.json +0 -9
  88. package/src/common/ams/link-appearance.tokens.json +0 -43
  89. package/src/components/ams/breakout.tokens.json +0 -11
  90. package/src/components/ams/footer.tokens.json +0 -9
  91. package/src/components/ams/gap.tokens.json +0 -11
  92. package/src/components/ams/header.tokens.json +0 -56
  93. package/src/components/ams/margin.tokens.json +0 -11
  94. package/src/components/ams/mega-menu.tokens.json +0 -18
  95. package/src/components/ams/page-menu.tokens.json +0 -24
  96. package/src/components/ams/screen.tokens.json +0 -13
  97. package/src/components/ams/top-task-link.tokens.json +0 -29
  98. /package/src/{common → brand}/ams/focus.tokens.json +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,106 @@
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.16.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.15.0...design-system-tokens-v0.16.0) (2025-04-25)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **Screen:** Delete component (use Page instead) ([#2018](https://github.com/Amsterdam/design-system/issues/2018))
12
+ * **Grid:** Match values for padding and gap with Space sizes ([#1993](https://github.com/Amsterdam/design-system/issues/1993))
13
+ * **Link:** Remove ‘variant’ prop, make inline the default ([#1994](https://github.com/Amsterdam/design-system/issues/1994))
14
+ * **Card:** Replace gap with margins and introduce subcomponents ([#1972](https://github.com/Amsterdam/design-system/issues/1972))
15
+ * **Top Task Link:** Remove component ([#1988](https://github.com/Amsterdam/design-system/issues/1988))
16
+ * **Footer:** Rename component to Page Footer ([#1971](https://github.com/Amsterdam/design-system/issues/1971))
17
+ * **Header:** Rename component to Page Header ([#1970](https://github.com/Amsterdam/design-system/issues/1970))
18
+
19
+ ### Features
20
+
21
+ * Add Standalone Link ([#1979](https://github.com/Amsterdam/design-system/issues/1979)) ([b5d57bb](https://github.com/Amsterdam/design-system/commit/b5d57bbd34c7817e436f7b28d5dc675213394bfb))
22
+ * **Alert:** Increase horizontal spacing around icon ([#1974](https://github.com/Amsterdam/design-system/issues/1974)) ([a71e1ba](https://github.com/Amsterdam/design-system/commit/a71e1ba779590fb7d7c8bd6c60e69309f268824c))
23
+ * **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))
24
+ * 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))
25
+ * **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))
26
+ * **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))
27
+ * **Footer:** Rename component to Page Footer ([#1971](https://github.com/Amsterdam/design-system/issues/1971)) ([d0f7edc](https://github.com/Amsterdam/design-system/commit/d0f7edc1bd3dcbba0973d4494fd6c9e90a158cd2))
28
+ * **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))
29
+ * **Header:** Rename component to Page Header ([#1970](https://github.com/Amsterdam/design-system/issues/1970)) ([17172e4](https://github.com/Amsterdam/design-system/commit/17172e4fd89c630be6eb604d12058214a075a82b))
30
+ * **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))
31
+ * **Page:** Add Page component ([#1982](https://github.com/Amsterdam/design-system/issues/1982)) ([813033c](https://github.com/Amsterdam/design-system/commit/813033c93be66dabccae3ff5f32484487dffc1aa))
32
+ * **Screen:** Delete component (use Page instead) ([#2018](https://github.com/Amsterdam/design-system/issues/2018)) ([0c59f6d](https://github.com/Amsterdam/design-system/commit/0c59f6dccffa7eda745a3b34554c86b646d514ba))
33
+ * **Top Task Link:** Remove component ([#1988](https://github.com/Amsterdam/design-system/issues/1988)) ([6da8a9b](https://github.com/Amsterdam/design-system/commit/6da8a9bdf47648a3ff0e18f89ed722092d0dad18))
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **Page Footer:** Set correct inline padding ([#2004](https://github.com/Amsterdam/design-system/issues/2004)) ([cb2e70c](https://github.com/Amsterdam/design-system/commit/cb2e70ce04e05aed64299e1df8c40b9d8873ca83))
39
+ * **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))
40
+
41
+ ## [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)
42
+
43
+
44
+ ### ⚠ BREAKING CHANGES
45
+
46
+ * Shorten size labels in prop values for Row and Column, tokens and utility classes ([#1940](https://github.com/Amsterdam/design-system/issues/1940), [#1951](https://github.com/Amsterdam/design-system/issues/1951))
47
+ * Shorten size labels in border tokens ([#1941](https://github.com/Amsterdam/design-system/issues/1941))
48
+ * Consolidate Grid Space and Component Space into one set of spacing tokens ([#1910](https://github.com/Amsterdam/design-system/issues/1910))
49
+ * **Tabs:** Remove unnecessary token, reuse color value ([#1932](https://github.com/Amsterdam/design-system/issues/1932))
50
+ * Update aspect ratio tokens and CSS utility classes ([#1913](https://github.com/Amsterdam/design-system/issues/1913))
51
+ * Update and document focus tokens ([#1919](https://github.com/Amsterdam/design-system/issues/1919))
52
+ * Update hyphenation tokens ([#1914](https://github.com/Amsterdam/design-system/issues/1914))
53
+ * **Header:** Add responsive version of Amsterdam Logo, remove Heading level 1 ([#1880](https://github.com/Amsterdam/design-system/issues/1880))
54
+ * Split typography tokens into ‘body text’ and ‘heading’ groups ([#1890](https://github.com/Amsterdam/design-system/issues/1890))
55
+ * **Dialog:** Prevent a focus indicator from being cut off ([#1879](https://github.com/Amsterdam/design-system/issues/1879))
56
+ * **Footer:** add FooterMenu component to replace PageMenu in Footer ([#1871](https://github.com/Amsterdam/design-system/issues/1871))
57
+ * Rename and document common tokens for links ([#1870](https://github.com/Amsterdam/design-system/issues/1870))
58
+ * **Avatar:** Use updated color names for azure, lime and green ([#1867](https://github.com/Amsterdam/design-system/issues/1867))
59
+ * **Badge:** Use updated color names for azure and lime ([#1866](https://github.com/Amsterdam/design-system/issues/1866))
60
+ * **Spotlight:** Use updated color names for lime and green and remove purple as an explicit option ([#1865](https://github.com/Amsterdam/design-system/issues/1865))
61
+ * Remove action tokens, add and implement cursor tokens ([#1860](https://github.com/Amsterdam/design-system/issues/1860))
62
+ * Combine contrast and inverse color options into a single prop ([#1822](https://github.com/Amsterdam/design-system/issues/1822))
63
+ * Change all brand colour tokens to use semantic names ([#1820](https://github.com/Amsterdam/design-system/issues/1820))
64
+ * Rename Form Error List to Invalid Form Alert ([#1835](https://github.com/Amsterdam/design-system/issues/1835))
65
+ * **Pagination:** Use links instead of buttons ([#1821](https://github.com/Amsterdam/design-system/issues/1821))
66
+ * **Badge:** Remove some colour options ([#1826](https://github.com/Amsterdam/design-system/issues/1826))
67
+ * **Avatar:** Remove some colour options and make purple the default ([#1825](https://github.com/Amsterdam/design-system/issues/1825))
68
+ * Move alert icon into thick left border ([#1792](https://github.com/Amsterdam/design-system/issues/1792))
69
+
70
+ ### Features
71
+
72
+ * **Accordion:** Increase text size for Heading to level 4 ([#1837](https://github.com/Amsterdam/design-system/issues/1837)) ([1e914c9](https://github.com/Amsterdam/design-system/commit/1e914c9efd9087a0855e3f03661b46f6b228740a))
73
+ * **Avatar:** Remove some colour options and make purple the default ([#1825](https://github.com/Amsterdam/design-system/issues/1825)) ([52d8c64](https://github.com/Amsterdam/design-system/commit/52d8c64f653309cce34e222d250f56c7265078e0))
74
+ * **Avatar:** Use updated color names for azure, lime and green ([#1867](https://github.com/Amsterdam/design-system/issues/1867)) ([e8a2638](https://github.com/Amsterdam/design-system/commit/e8a2638882b95141c5e5e345bb7656f1f9968253))
75
+ * **Badge:** Remove some colour options ([#1826](https://github.com/Amsterdam/design-system/issues/1826)) ([1325e1b](https://github.com/Amsterdam/design-system/commit/1325e1b213e4704fd738dada1a92b5362a1a5174))
76
+ * **Badge:** Use updated color names for azure and lime ([#1866](https://github.com/Amsterdam/design-system/issues/1866)) ([fd25778](https://github.com/Amsterdam/design-system/commit/fd25778db56eeeecf2e716a72d25b91c49193fa1))
77
+ * Change all brand colour tokens to use semantic names ([#1820](https://github.com/Amsterdam/design-system/issues/1820)) ([778222b](https://github.com/Amsterdam/design-system/commit/778222b5f7176648c647315287f2e2ceff3de491))
78
+ * Combine contrast and inverse color options into a single prop ([#1822](https://github.com/Amsterdam/design-system/issues/1822)) ([51640be](https://github.com/Amsterdam/design-system/commit/51640bed21deee54d5dddcbaa22e2213155cd08a))
79
+ * Consolidate Grid Space and Component Space into one set of spacing tokens ([#1910](https://github.com/Amsterdam/design-system/issues/1910)) ([f36e985](https://github.com/Amsterdam/design-system/commit/f36e9855c78f582df95fa0906f0849c2832c25a3))
80
+ * **Description List:** Rename values for terms column widths ([#1942](https://github.com/Amsterdam/design-system/issues/1942)) ([e1a9669](https://github.com/Amsterdam/design-system/commit/e1a9669925927f1608433a4ae68676b925ba8bd2))
81
+ * **Dialog:** Change background colour of backdrop and add token for it ([#1876](https://github.com/Amsterdam/design-system/issues/1876)) ([d071bb4](https://github.com/Amsterdam/design-system/commit/d071bb4149d2789d967abcdb84ccdfa4d5b7aecc))
82
+ * **Footer:** add FooterMenu component to replace PageMenu in Footer ([#1871](https://github.com/Amsterdam/design-system/issues/1871)) ([85e0f0f](https://github.com/Amsterdam/design-system/commit/85e0f0f8c7fd9c281ba68155999e835921e4443d))
83
+ * **Header:** Add responsive version of Amsterdam Logo, remove Heading level 1 ([#1880](https://github.com/Amsterdam/design-system/issues/1880)) ([7de8138](https://github.com/Amsterdam/design-system/commit/7de813861a565da89fee246731dc1525bc5d2643))
84
+ * Move alert icon into thick left border ([#1792](https://github.com/Amsterdam/design-system/issues/1792)) ([ec53af7](https://github.com/Amsterdam/design-system/commit/ec53af73d05f22f5e077efdf3ce9a73ed4d7e235))
85
+ * **Pagination:** Use links instead of buttons ([#1821](https://github.com/Amsterdam/design-system/issues/1821)) ([6980251](https://github.com/Amsterdam/design-system/commit/698025132af2c0b944e9cc99f9754b065127fb68))
86
+ * Remove action tokens, add and implement cursor tokens ([#1860](https://github.com/Amsterdam/design-system/issues/1860)) ([40a04a8](https://github.com/Amsterdam/design-system/commit/40a04a88e8c5829df54eb3a6ca338557249aec5d))
87
+ * Rename and document common tokens for links ([#1870](https://github.com/Amsterdam/design-system/issues/1870)) ([551743d](https://github.com/Amsterdam/design-system/commit/551743d11436ff2363f8dd1187afe166e6c4a02b))
88
+ * Rename Form Error List to Invalid Form Alert ([#1835](https://github.com/Amsterdam/design-system/issues/1835)) ([e8d015a](https://github.com/Amsterdam/design-system/commit/e8d015ae6a1e785a29505c033f29cd67aaab3d66))
89
+ * Shorten size labels in border tokens ([#1941](https://github.com/Amsterdam/design-system/issues/1941)) ([fa154a6](https://github.com/Amsterdam/design-system/commit/fa154a6c96a11a43623f959a51f782abae27449e))
90
+ * Shorten size labels in prop values for Row and Column, space tokens and utility classes ([#1940](https://github.com/Amsterdam/design-system/issues/1940)) ([694987c](https://github.com/Amsterdam/design-system/commit/694987c88773983e4cd12d518cc957d34ec29d7e))
91
+ * Split typography tokens into ‘body text’ and ‘heading’ groups ([#1890](https://github.com/Amsterdam/design-system/issues/1890)) ([3126aa2](https://github.com/Amsterdam/design-system/commit/3126aa29d5aebccfca272892d55f140783a94d43))
92
+ * **Spotlight:** Use updated color names for lime and green and remove purple as an explicit option ([#1865](https://github.com/Amsterdam/design-system/issues/1865)) ([387ae45](https://github.com/Amsterdam/design-system/commit/387ae45ce263ae3b6a12fc9a3b22a37dc0aed997))
93
+ * **typography:** Improve line heights for all body text and headings ([#1894](https://github.com/Amsterdam/design-system/issues/1894)) ([8a57198](https://github.com/Amsterdam/design-system/commit/8a571988a8f11fb5aa1dfe550ca8b74e9d8b3e55))
94
+ * Update and document focus tokens ([#1919](https://github.com/Amsterdam/design-system/issues/1919)) ([4c85170](https://github.com/Amsterdam/design-system/commit/4c85170f2b8eec5ce956cecdbb41430ce2c37639))
95
+ * Update aspect ratio tokens and CSS utility classes ([#1913](https://github.com/Amsterdam/design-system/issues/1913)) ([968ef2b](https://github.com/Amsterdam/design-system/commit/968ef2bf053803c356e36424836fd9934da123fd))
96
+ * Update hyphenation tokens ([#1914](https://github.com/Amsterdam/design-system/issues/1914)) ([0c7f359](https://github.com/Amsterdam/design-system/commit/0c7f359ff094e281022441d171bd617047c660b2))
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * **Column, Row:** Do not use utility classes ([#1951](https://github.com/Amsterdam/design-system/issues/1951)) ([a5a74f8](https://github.com/Amsterdam/design-system/commit/a5a74f8bbb55ab54c7b179be29d4a804b088044a))
102
+ * **Dialog:** Prevent a focus indicator from being cut off ([#1879](https://github.com/Amsterdam/design-system/issues/1879)) ([336ff55](https://github.com/Amsterdam/design-system/commit/336ff554d2a4a213c1f62bd32b02219ca41a802c))
103
+ * **Dialog:** Update Dialog border to fix forced color mode ([#1893](https://github.com/Amsterdam/design-system/issues/1893)) ([8b83271](https://github.com/Amsterdam/design-system/commit/8b83271a06dbdef42600d82e92cd56f1ec7d5509))
104
+ * **Tabs:** Remove unnecessary token, reuse color value ([#1932](https://github.com/Amsterdam/design-system/issues/1932)) ([cabfd59](https://github.com/Amsterdam/design-system/commit/cabfd5967a9c0cb17ab0bac627f19261f29bcf2e))
105
+
6
106
  ## [0.14.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.13.0...design-system-tokens-v0.14.0) (2025-01-10)
7
107
 
8
108
  ### ⚠ BREAKING CHANGES
package/LICENSE.md CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  # License
4
4
 
5
- The open source license does NOT apply to files in this directory.
5
+ The open-source licence does NOT apply to files in this directory.
6
6
 
7
- These are properietary assets to the City of Amsterdam.
7
+ These are proprietary assets to the City of Amsterdam.
package/README.md CHANGED
@@ -80,14 +80,21 @@ Examples:
80
80
 
81
81
  ```css
82
82
  :root {
83
- --ams-color-primary-red: #ec0000;
84
- --ams-space-md: 1rem;
83
+ --ams-color-feedback-error: #ec0000;
84
+ --ams-space-m: 1rem;
85
85
  --ams-aspect-ratio-wide: 4/3;
86
- --ams-border-width-lg: 0.1875rem;
86
+ --ams-border-width-l: 0.1875rem;
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
+
92
+ ##### Removing ‘default’ keys
93
+
94
+ Some brand tokens include a ‘default’ key in JSON to allow for additional variants, such as `ams.color.interactive.default` and `ams.color.interactive.disabled`
95
+ However, this key is not needed for collections of variables that are flat, like our CSS custom properties.
96
+ Therefore, we remove this key in non-nested variables.
97
+ For instance, `--ams-color-interactive` and `--ams-color-interactive-disabled`.
91
98
 
92
99
  #### Common tokens
93
100
 
@@ -104,12 +111,12 @@ The same goes for custom components that you may create in your application.
104
111
 
105
112
  ```css
106
113
  .my-input {
107
- color: var(--ams-link-appearance-color);
108
- text-underline-offset: var(--ams-link-appearance-text-underline-offset);
114
+ color: var(--ams-links-color);
115
+ text-underline-offset: var(--ams-links-text-underline-offset);
109
116
  }
110
117
  ```
111
118
 
112
- 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.
113
120
 
114
121
  #### Component tokens
115
122
 
@@ -129,7 +136,7 @@ Do not apply these tokens to other components – components must be independent
129
136
  }
130
137
  ```
131
138
 
132
- 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.
133
140
 
134
141
  ### Overriding tokens
135
142
 
@@ -160,7 +167,7 @@ Address these tokens through the `compact` namespace and do not use the spacious
160
167
  @use "@amsterdam/design-system-tokens/dist/compact.scss";
161
168
 
162
169
  .class {
163
- padding-block: compact.$ams-space-md;
170
+ padding-block: compact.$ams-space-m;
164
171
  }
165
172
  ```
166
173
 
@@ -175,7 +182,7 @@ Use ‘dot notation’ or square brackets to access the tokens.
175
182
  import tokens from "@amsterdam/design-system-tokens/dist/index.json"
176
183
 
177
184
  const buttonBackgroundColor = tokens.ams.color["primary-blue"]
178
- const rowGap = tokens.ams.space.md
185
+ const rowGap = tokens.ams.space.m
179
186
  ```
180
187
 
181
188
  Import and merge the compact tokens if you need them.
@@ -195,7 +202,7 @@ The tokens are used in our [Figma Library](https://www.figma.com/file/9IGm6IdPUY
195
202
 
196
203
  ## Updating
197
204
 
198
- 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.
199
206
  The tokens are a public API of the design system.
200
207
  Note that detecting changed or deleted tokens is still a manual process.
201
208
 
package/build.js CHANGED
@@ -1,4 +1,30 @@
1
+ import { camelCase, kebabCase } from 'change-case'
1
2
  import StyleDictionary from 'style-dictionary'
3
+ import { transformTypes } from 'style-dictionary/enums'
4
+
5
+ // Remove last key if it is 'default' when transforming to kebab-case
6
+ // i.e. `ams.color.default` becomes `--ams-color`
7
+ StyleDictionary.registerTransform({
8
+ name: 'name/customKebab',
9
+ transform: function (token) {
10
+ const filteredPath = token.path[token.path.length - 1] === 'default' ? token.path.slice(0, -1) : token.path
11
+
12
+ return kebabCase(filteredPath.join(' '))
13
+ },
14
+ type: transformTypes.name,
15
+ })
16
+
17
+ // Remove last key if it is 'default' when transforming to camelCase
18
+ // i.e. `ams.color.default` becomes `amsColor`
19
+ StyleDictionary.registerTransform({
20
+ name: 'name/customCamel',
21
+ transform: function (token) {
22
+ const filteredPath = token.path[token.path.length - 1] === 'default' ? token.path.slice(0, -1) : token.path
23
+
24
+ return camelCase(filteredPath.join(' '))
25
+ },
26
+ type: transformTypes.name,
27
+ })
2
28
 
3
29
  const modes = ['compact']
4
30
 
@@ -7,8 +33,6 @@ function generateSharedConfig(mode) {
7
33
 
8
34
  return {
9
35
  css: {
10
- transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
11
- transformGroup: 'css',
12
36
  buildPath: 'dist/',
13
37
  files: [
14
38
  {
@@ -19,33 +43,34 @@ function generateSharedConfig(mode) {
19
43
  },
20
44
  },
21
45
  ],
46
+ transformGroup: 'css',
47
+ transforms: ['attribute/cti', 'name/customKebab', 'color/hsl-4'],
22
48
  },
23
49
  cssTheme: {
24
- transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
25
50
  buildPath: 'dist/',
26
51
  files: [
27
52
  {
28
53
  destination: `${name}.theme.css`,
29
54
  format: 'css/variables',
30
55
  options: {
31
- selector: `.ams-theme${name === 'index' ? '' : `--${name}`}`,
32
56
  outputReferences: true,
57
+ selector: `.ams-theme${name === 'index' ? '' : `--${name}`}`,
33
58
  },
34
59
  },
35
60
  ],
61
+ transforms: ['attribute/cti', 'name/customKebab', 'color/hsl-4'],
36
62
  },
37
63
  js: {
38
- transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
39
64
  buildPath: 'dist/',
40
65
  files: [
41
66
  {
42
- format: 'javascript/es6',
43
67
  destination: `${name}.mjs`,
68
+ format: 'javascript/es6',
44
69
  },
45
70
  ],
71
+ transforms: ['attribute/cti', 'name/customCamel', 'color/hsl-4'],
46
72
  },
47
73
  json: {
48
- transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
49
74
  buildPath: 'dist/',
50
75
  files: [
51
76
  {
@@ -53,9 +78,9 @@ function generateSharedConfig(mode) {
53
78
  format: 'json/nested',
54
79
  },
55
80
  ],
81
+ transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
56
82
  },
57
83
  scss: {
58
- transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
59
84
  buildPath: 'dist/',
60
85
  files: [
61
86
  {
@@ -66,17 +91,18 @@ function generateSharedConfig(mode) {
66
91
  },
67
92
  },
68
93
  ],
94
+ transforms: ['attribute/cti', 'name/customKebab', 'color/hsl-4'],
69
95
  },
70
96
  typescript: {
71
- transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
72
- transformGroup: 'js',
73
97
  buildPath: 'dist/',
74
98
  files: [
75
99
  {
76
- format: 'typescript/module-declarations',
77
100
  destination: `${name}.d.ts`,
101
+ format: 'typescript/module-declarations',
78
102
  },
79
103
  ],
104
+ transformGroup: 'js',
105
+ transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
80
106
  },
81
107
  }
82
108
  }
@@ -85,22 +111,19 @@ const defaultMode = new StyleDictionary({
85
111
  log: {
86
112
  verbosity: 'verbose',
87
113
  },
114
+ platforms: generateSharedConfig(),
88
115
  source: [
89
116
  // exclude non-default modes from source
90
117
  `./src/**/!(*.${modes.join(`|*.`)}).tokens.json`,
91
118
  ],
92
- platforms: generateSharedConfig(),
93
119
  })
94
120
 
95
121
  defaultMode.buildAllPlatforms()
96
122
 
97
123
  modes.map((mode) => {
98
124
  const styleDictionary = new StyleDictionary({
99
- log: {
100
- verbosity: 'verbose',
101
- },
102
- source: [`./src/**/*.${mode}.tokens.json`],
103
125
  platforms: generateSharedConfig(mode),
126
+ source: [`./src/**/*.${mode}.tokens.json`],
104
127
  })
105
128
  return styleDictionary.buildAllPlatforms()
106
129
  })
package/dist/compact.css CHANGED
@@ -3,22 +3,22 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --ams-space-xs: 0.25rem;
7
- --ams-space-sm: 0.5rem;
8
- --ams-space-md: 1rem;
9
- --ams-space-lg: 1.5rem;
10
- --ams-space-xl: 2rem;
11
- --ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
12
- --ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
13
- --ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
14
- --ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
15
- --ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
16
- --ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
17
- --ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
18
- --ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
19
- --ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
20
- --ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
21
- --ams-text-level-5-font-size: 1rem;
22
- --ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
23
- --ams-grid-padding-inline: var(--ams-space-grid-md);
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);
12
+ --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-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
20
+ --ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
21
+ --ams-typography-heading-5-font-size: 1rem;
22
+ --ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
23
+ --ams-grid-padding-inline: var(--ams-space-xl);
24
24
  }
package/dist/compact.d.ts CHANGED
@@ -18,20 +18,26 @@ declare const tokens: {
18
18
  ams: {
19
19
  space: {
20
20
  xs: DesignToken;
21
- sm: DesignToken;
22
- md: DesignToken;
23
- lg: DesignToken;
21
+ s: DesignToken;
22
+ m: DesignToken;
23
+ l: DesignToken;
24
24
  xl: DesignToken;
25
- grid: {
26
- xs: DesignToken;
27
- sm: DesignToken;
28
- md: DesignToken;
29
- lg: DesignToken;
30
- xl: DesignToken;
31
- };
25
+ "2xl": DesignToken;
32
26
  };
33
- text: {
34
- level: {
27
+ typography: {
28
+ "body-text": {
29
+ "font-size": DesignToken;
30
+ small: {
31
+ "font-size": DesignToken;
32
+ };
33
+ large: {
34
+ "font-size": DesignToken;
35
+ };
36
+ "x-large": {
37
+ "font-size": DesignToken;
38
+ };
39
+ };
40
+ heading: {
35
41
  "0": {
36
42
  "font-size": DesignToken;
37
43
  };
package/dist/compact.json CHANGED
@@ -1,21 +1,27 @@
1
1
  {
2
2
  "ams": {
3
3
  "space": {
4
- "xs": "0.25rem",
5
- "sm": "0.5rem",
6
- "md": "1rem",
7
- "lg": "1.5rem",
8
- "xl": "2rem",
9
- "grid": {
10
- "xs": "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)",
11
- "sm": "clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem)",
12
- "md": "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)",
13
- "lg": "clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem)",
14
- "xl": "clamp(2rem, calc(3.125vw - 0.125rem), 5rem)"
15
- }
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)"
16
10
  },
17
- "text": {
18
- "level": {
11
+ "typography": {
12
+ "body-text": {
13
+ "font-size": "1rem",
14
+ "small": {
15
+ "font-size": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)"
16
+ },
17
+ "large": {
18
+ "font-size": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)"
19
+ },
20
+ "x-large": {
21
+ "font-size": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)"
22
+ }
23
+ },
24
+ "heading": {
19
25
  "0": {
20
26
  "font-size": "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)"
21
27
  },
@@ -40,7 +46,7 @@
40
46
  }
41
47
  },
42
48
  "grid": {
43
- "padding-inline": "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)"
49
+ "padding-inline": "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)"
44
50
  }
45
51
  }
46
52
  }
package/dist/compact.mjs CHANGED
@@ -2,31 +2,30 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- export const amsSpaceXs = "0.25rem";
6
- export const amsSpaceSm = "0.5rem";
7
- export const amsSpaceMd = "1rem";
8
- export const amsSpaceLg = "1.5rem";
9
- export const amsSpaceXl = "2rem";
10
- export const amsSpaceGridXs =
11
- "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)";
12
- export const amsSpaceGridSm =
13
- "clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem)";
14
- export const amsSpaceGridMd = "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)"; // Grows from 16px at 1088px wide to 40px at 2624px wide.
15
- export const amsSpaceGridLg =
16
- "clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem)";
17
- export const amsSpaceGridXl = "clamp(2rem, calc(3.125vw - 0.125rem), 5rem)";
18
- export const amsTextLevel0FontSize =
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)";
11
+ export const amsTypographyBodyTextFontSize = "1rem";
12
+ export const amsTypographyBodyTextSmallFontSize =
13
+ "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
14
+ export const amsTypographyBodyTextLargeFontSize =
15
+ "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)";
16
+ export const amsTypographyBodyTextXLargeFontSize =
17
+ "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
18
+ export const amsTypographyHeading_0FontSize =
19
19
  "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)";
20
- export const amsTextLevel1FontSize =
20
+ export const amsTypographyHeading_1FontSize =
21
21
  "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)";
22
- export const amsTextLevel2FontSize =
22
+ export const amsTypographyHeading_2FontSize =
23
23
  "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
24
- export const amsTextLevel3FontSize =
24
+ export const amsTypographyHeading_3FontSize =
25
25
  "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
26
- export const amsTextLevel4FontSize =
26
+ export const amsTypographyHeading_4FontSize =
27
27
  "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)";
28
- export const amsTextLevel5FontSize = "1rem";
29
- export const amsTextLevel6FontSize =
28
+ export const amsTypographyHeading_5FontSize = "1rem";
29
+ export const amsTypographyHeading_6FontSize =
30
30
  "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
31
- export const amsGridPaddingInline =
32
- "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)";
31
+ export const amsGridPaddingInline = "clamp(1.25rem, 1rem + 1.25vw, 2.25rem)";
package/dist/compact.scss CHANGED
@@ -1,21 +1,21 @@
1
1
 
2
2
  // Do not edit directly, this file was auto-generated.
3
3
 
4
- $ams-space-xs: 0.25rem;
5
- $ams-space-sm: 0.5rem;
6
- $ams-space-md: 1rem;
7
- $ams-space-lg: 1.5rem;
8
- $ams-space-xl: 2rem;
9
- $ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
10
- $ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
11
- $ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); // Grows from 16px at 1088px wide to 40px at 2624px wide.
12
- $ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
13
- $ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
14
- $ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
15
- $ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
16
- $ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
17
- $ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
18
- $ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
19
- $ams-text-level-5-font-size: 1rem;
20
- $ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
21
- $ams-grid-padding-inline: $ams-space-grid-md;
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);
10
+ $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-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
18
+ $ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
19
+ $ams-typography-heading-5-font-size: 1rem;
20
+ $ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
21
+ $ams-grid-padding-inline: $ams-space-xl;
@@ -3,22 +3,22 @@
3
3
  */
4
4
 
5
5
  .ams-theme--compact {
6
- --ams-space-xs: 0.25rem;
7
- --ams-space-sm: 0.5rem;
8
- --ams-space-md: 1rem;
9
- --ams-space-lg: 1.5rem;
10
- --ams-space-xl: 2rem;
11
- --ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
12
- --ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
13
- --ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
14
- --ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
15
- --ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
16
- --ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
17
- --ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
18
- --ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
19
- --ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
20
- --ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
21
- --ams-text-level-5-font-size: 1rem;
22
- --ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
23
- --ams-grid-padding-inline: var(--ams-space-grid-md);
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);
12
+ --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-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
20
+ --ams-typography-heading-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
21
+ --ams-typography-heading-5-font-size: 1rem;
22
+ --ams-typography-heading-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
23
+ --ams-grid-padding-inline: var(--ams-space-xl);
24
24
  }