@amsterdam/design-system-tokens 2.1.0 → 3.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.
@@ -13,8 +13,8 @@
13
13
  --ams-border-width-m: 0.125rem;
14
14
  --ams-border-width-l: 0.1875rem;
15
15
  --ams-border-width-xl: 0.25rem;
16
- --ams-color-interactive-secondary: #181818; /** Use `currentColor` instead */
17
- --ams-color-interactive-contrast: #181818;
16
+ --ams-color-interactive-secondary: #202020; /** Use `currentColor` instead */
17
+ --ams-color-interactive-contrast: #202020;
18
18
  --ams-color-interactive: #004699;
19
19
  --ams-color-interactive-disabled: #767676;
20
20
  --ams-color-interactive-hover: #003677;
@@ -24,17 +24,17 @@
24
24
  --ams-color-background: #ffffff;
25
25
  --ams-color-feedback-error: #ec0000;
26
26
  --ams-color-feedback-info: #009de6;
27
- --ams-color-feedback-success: #00a03c;
27
+ --ams-color-feedback-success: #00893c;
28
28
  --ams-color-feedback-warning: #ff9100;
29
29
  --ams-color-highlight-azure: #009de6;
30
- --ams-color-highlight-green: #00a03c;
30
+ --ams-color-highlight-green: #00893c;
31
31
  --ams-color-highlight-lime: #bed200;
32
32
  --ams-color-highlight-magenta: #e50082;
33
33
  --ams-color-highlight-orange: #ff9100;
34
34
  --ams-color-highlight-purple: #a00078;
35
35
  --ams-color-highlight-yellow: #ffe600;
36
36
  --ams-color-separator: #d1d1d1;
37
- --ams-color-text: #181818;
37
+ --ams-color-text: #202020;
38
38
  --ams-color-text-inverse: #ffffff;
39
39
  --ams-color-text-secondary: #767676;
40
40
  --ams-cursor-disabled: not-allowed;
@@ -91,8 +91,8 @@
91
91
  --ams-button-tertiary-background-color: transparent;
92
92
  --ams-button-tertiary-border-color: transparent;
93
93
  --ams-button-tertiary-hover-border-color: currentColor;
94
- --ams-call-to-action-link-background-color: #00a03c;
95
- --ams-call-to-action-link-hover-background-color: #007c2e;
94
+ --ams-call-to-action-link-background-color: #00893c;
95
+ --ams-call-to-action-link-hover-background-color: #10552b;
96
96
  --ams-date-input-disabled-calender-picker-indicator-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='%23767676'><path d='M28 6V2h-4v4H12V2H8v4H2v28h32V6zm2 24H6V14h24z'/><path d='M10 17h4v4h-4zm6 0h4v4h-4zm6 0h4v4h-4zm-12 6h4v4h-4zm6 0h4v4h-4z'/></svg>"); /** Use the token with ‘calendar’ spelled correctly instead */
97
97
  --ams-date-input-disabled-calendar-picker-indicator-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='%23767676'><path d='M28 6V2h-4v4H12V2H8v4H2v28h32V6zm2 24H6V14h24z'/><path d='M10 17h4v4h-4zm6 0h4v4h-4zm6 0h4v4h-4zm-12 6h4v4h-4zm6 0h4v4h-4z'/></svg>");
98
98
  --ams-date-input-hover-calender-picker-indicator-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='%23003677'><path d='M28 6V2h-4v4H12V2H8v4H2v28h32V6zm2 24H6V14h24z'/><path d='M10 17h4v4h-4zm6 0h4v4h-4zm6 0h4v4h-4zm-12 6h4v4h-4zm6 0h4v4h-4z'/></svg>"); /** Use the token with ‘calendar’ spelled correctly instead */
@@ -132,6 +132,8 @@
132
132
  --ams-ordered-list-ordered-list-item-padding-inline-start: 0.25rem; /** The total level >=2 indentation for Amsterdam is 28 pixels, or 1.75rem. */
133
133
  --ams-page-footer-spotlight-background-color: #004699;
134
134
  --ams-page-max-inline-size: 90rem;
135
+ --ams-page-with-menu-max-inline-size: 120rem;
136
+ --ams-paragraph-large-text-wrap: balance;
135
137
  --ams-search-field-input-cancel-button-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='M29.333 5.47 26.53 2.668 16 13.187 5.47 2.666 2.668 5.47 13.187 16 2.666 26.53l2.804 2.803L16 18.813l10.53 10.52 2.803-2.804L18.813 16z'/></svg>");
136
138
  --ams-select-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>");
137
139
  --ams-select-disabled-background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23767676' fill-rule='evenodd' d='m16 25.757-16-16 2.91-2.9L16 19.937l13.09-13.08 2.91 2.9z'/></svg>");
@@ -413,15 +415,22 @@
413
415
  --ams-error-message-font-weight: var(--ams-typography-body-text-font-weight);
414
416
  --ams-error-message-gap: var(--ams-space-xs);
415
417
  --ams-error-message-line-height: var(--ams-typography-body-text-line-height);
416
- --ams-field-set-invalid-border-inline-start: var(--ams-border-width-l) solid var(--ams-color-feedback-error);
417
- --ams-field-set-invalid-padding-inline-start: var(--ams-space-m);
418
+ --ams-field-set-legend-margin-block-end: var(--ams-space-s);
418
419
  --ams-field-set-legend-color: var(--ams-color-text);
419
420
  --ams-field-set-legend-font-family: var(--ams-typography-font-family);
420
421
  --ams-field-set-legend-font-weight: var(--ams-typography-heading-font-weight);
421
422
  --ams-field-set-legend-line-height: var(--ams-typography-heading-3-line-height);
422
- --ams-field-set-legend-margin-block-end: var(--ams-space-s);
423
423
  --ams-field-set-legend-text-wrap: var(--ams-typography-heading-text-wrap);
424
+ --ams-field-set-legend-in-fieldset-font-weight: var(--ams-typography-body-text-font-weight);
425
+ --ams-field-set-child-margin-block-end: var(--ams-space-xs);
426
+ --ams-field-set-child-before-error-message-margin-block-end: var(--ams-space-s);
427
+ --ams-field-set-child-before-field-or-field-set-margin-block-end: var(--ams-space-m);
428
+ --ams-field-set-child-between-fields-and-field-sets-margin-block-end: var(--ams-space-l);
429
+ --ams-field-set-invalid-border-inline-start: var(--ams-border-width-l) solid var(--ams-color-feedback-error);
430
+ --ams-field-set-invalid-padding-inline-start: var(--ams-space-m);
424
431
  --ams-field-gap: var(--ams-space-s);
432
+ --ams-field-child-margin-block-end: var(--ams-space-xs);
433
+ --ams-field-child-before-error-message-margin-block-end: var(--ams-space-s);
425
434
  --ams-field-invalid-border-inline-start: var(--ams-border-width-l) solid var(--ams-color-feedback-error);
426
435
  --ams-field-invalid-padding-inline-start: var(--ams-space-m);
427
436
  --ams-figure-gap: var(--ams-space-s);
@@ -471,6 +480,7 @@
471
480
  --ams-heading-text-wrap: var(--ams-typography-heading-text-wrap);
472
481
  --ams-heading-inverse-color: var(--ams-color-text-inverse);
473
482
  --ams-hint-font-weight: var(--ams-typography-body-text-font-weight);
483
+ --ams-hint-in-fieldset-color: var(--ams-color-text-secondary);
474
484
  --ams-icon-button-color: var(--ams-color-interactive);
475
485
  --ams-icon-button-cursor: var(--ams-cursor-interactive);
476
486
  --ams-icon-button-outline-offset: var(--ams-focus-outline-offset);
@@ -515,6 +525,7 @@
515
525
  --ams-label-font-weight: var(--ams-typography-heading-font-weight);
516
526
  --ams-label-line-height: var(--ams-typography-heading-3-line-height);
517
527
  --ams-label-text-wrap: var(--ams-typography-heading-text-wrap);
528
+ --ams-label-in-fieldset-font-weight: var(--ams-typography-body-text-font-weight);
518
529
  --ams-link-list-gap: var(--ams-space-s);
519
530
  --ams-link-list-link-font-family: var(--ams-typography-font-family);
520
531
  --ams-link-list-link-font-size: var(--ams-typography-body-text-font-size);
@@ -588,6 +599,7 @@
588
599
  --ams-page-header-brand-name-font-weight: var(--ams-typography-heading-font-weight);
589
600
  --ams-page-header-brand-name-line-height: var(--ams-typography-heading-3-line-height);
590
601
  --ams-page-header-brand-name-text-wrap: var(--ams-typography-heading-text-wrap);
602
+ --ams-page-header-mega-menu-padding-block: var(--ams-space-l);
591
603
  --ams-page-header-mega-menu-button-cursor: var(--ams-cursor-interactive);
592
604
  --ams-page-header-mega-menu-button-label-open-font-weight: var(--ams-typography-body-text-bold-font-weight);
593
605
  --ams-page-header-menu-column-gap: var(--ams-space-l);
@@ -599,12 +611,13 @@
599
611
  --ams-page-header-menu-item-line-height: var(--ams-typography-body-text-line-height);
600
612
  --ams-page-header-menu-item-outline-offset: var(--ams-focus-outline-offset);
601
613
  --ams-page-header-menu-item-padding-block: var(--ams-space-xs);
614
+ --ams-page-header-menu-link-gap: var(--ams-space-xs);
602
615
  --ams-page-header-menu-link-text-decoration-line: var(--ams-links-subtle-text-decoration-line);
603
616
  --ams-page-header-menu-link-text-decoration-thickness: var(--ams-links-text-decoration-thickness);
604
617
  --ams-page-header-menu-link-text-underline-offset: var(--ams-links-text-underline-offset);
605
618
  --ams-page-header-menu-link-hover-text-decoration-line: var(--ams-links-subtle-hover-text-decoration-line);
606
619
  --ams-page-header-navigation-column-gap: var(--ams-space-l);
607
- --ams-page-header-navigation-row-gap: var(--ams-space-s);
620
+ --ams-page-header-navigation-row-gap: var(--ams-space-l);
608
621
  --ams-page-heading-color: var(--ams-color-text);
609
622
  --ams-page-heading-font-family: var(--ams-typography-font-family);
610
623
  --ams-page-heading-font-size: var(--ams-typography-heading-0-font-size);
@@ -880,6 +893,7 @@
880
893
  --ams-page-header-brand-name-font-size: var(--ams-typography-heading-3-font-size);
881
894
  --ams-page-header-menu-item-color: var(--ams-links-color);
882
895
  --ams-page-header-menu-item-hover-color: var(--ams-links-hover-color);
896
+ --ams-page-with-menu-area-skip-link-margin-inline-end: var(--ams-grid-padding-inline); /** Must be the Grid inline padding, to make sure Skip Link and Grid line up */
883
897
  --ams-pagination-link-color: var(--ams-links-color);
884
898
  --ams-pagination-link-hover-color: var(--ams-links-hover-color);
885
899
  --ams-password-input-background-color: var(--ams-inputs-background-color);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.0",
2
+ "version": "3.0.0",
3
3
  "author": "Design System Team, City of Amsterdam <designsystem@amsterdam.nl>",
4
4
  "description": "All design tokens from the Amsterdam Design System. Use it to apply its visual design to your website or application.",
5
5
  "homepage": "https://designsystem.amsterdam",
@@ -25,12 +25,11 @@
25
25
  "devDependencies": {
26
26
  "change-case": "5.4.4",
27
27
  "chokidar-cli": "3.0.0",
28
- "npm-run-all": "4.1.5",
29
28
  "style-dictionary": "5.1.1"
30
29
  },
31
30
  "scripts": {
32
31
  "clean": "rimraf dist/",
33
32
  "build": "node build.js",
34
- "watch": "chokidar --follow-symlinks --initial --command \"npm run build\" \"src/**/*.tokens.json\""
33
+ "build:watch": "chokidar --follow-symlinks --initial --command \"npm run build\" \"src/**/*.tokens.json\""
35
34
  }
36
35
  }
@@ -4,7 +4,7 @@
4
4
  "interactive": {
5
5
  "secondary": {
6
6
  "comment": "Use `currentColor` instead",
7
- "value": "#181818"
7
+ "value": "#202020"
8
8
  }
9
9
  }
10
10
  }
@@ -5,12 +5,12 @@
5
5
  "feedback": {
6
6
  "error": { "value": "#ec0000" },
7
7
  "info": { "value": "#009de6" },
8
- "success": { "value": "#00a03c" },
8
+ "success": { "value": "#00893c" },
9
9
  "warning": { "value": "#ff9100" }
10
10
  },
11
11
  "highlight": {
12
12
  "azure": { "value": "#009de6" },
13
- "green": { "value": "#00a03c" },
13
+ "green": { "value": "#00893c" },
14
14
  "lime": { "value": "#bed200" },
15
15
  "magenta": { "value": "#e50082" },
16
16
  "orange": { "value": "#ff9100" },
@@ -18,7 +18,7 @@
18
18
  "yellow": { "value": "#ffe600" }
19
19
  },
20
20
  "interactive": {
21
- "contrast": { "value": "#181818" },
21
+ "contrast": { "value": "#202020" },
22
22
  "default": { "value": "#004699" },
23
23
  "disabled": { "value": "#767676" },
24
24
  "hover": { "value": "#003677" },
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "separator": { "value": "#d1d1d1" },
32
32
  "text": {
33
- "default": { "value": "#181818" },
33
+ "default": { "value": "#202020" },
34
34
  "inverse": { "value": "#ffffff" },
35
35
  "secondary": { "value": "#767676" }
36
36
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "ams": {
3
3
  "call-to-action-link": {
4
- "background-color": { "value": "#00a03c" },
4
+ "background-color": { "value": "#00893c" },
5
5
  "color": { "value": "{ams.color.text.inverse}" },
6
6
  "font-family": { "value": "{ams.typography.font-family}" },
7
7
  "font-size": { "value": "{ams.typography.body-text.font-size}" },
@@ -13,7 +13,7 @@
13
13
  "text-decoration-thickness": { "value": "{ams.links.text-decoration-thickness}" },
14
14
  "text-underline-offset": { "value": "{ams.links.text-underline-offset}" },
15
15
  "hover": {
16
- "background-color": { "value": "#007c2e" },
16
+ "background-color": { "value": "#10552b" },
17
17
  "text-decoration-thickness": {
18
18
  "value": "{ams.links.hover.text-decoration-thickness}"
19
19
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "ams": {
3
+ "field-set": {
4
+ "legend": {
5
+ "margin-block-end": { "value": "{ams.space.s}" }
6
+ }
7
+ }
8
+ }
9
+ }
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "ams": {
3
3
  "field-set": {
4
+ "child": {
5
+ "margin-block-end": { "value": "{ams.space.xs}" },
6
+ "before-error-message": {
7
+ "margin-block-end": { "value": "{ams.space.s}" }
8
+ },
9
+ "before-field-or-field-set": {
10
+ "margin-block-end": { "value": "{ams.space.m}" }
11
+ },
12
+ "between-fields-and-field-sets": {
13
+ "margin-block-end": { "value": "{ams.space.l}" }
14
+ }
15
+ },
4
16
  "invalid": {
5
17
  "border-inline-start": { "value": "{ams.border.width.l} solid {ams.color.feedback.error}" },
6
18
  "padding-inline-start": { "value": "{ams.space.m}" }
@@ -11,8 +23,10 @@
11
23
  "font-size": { "value": "{ams.typography.heading.3.font-size}" },
12
24
  "font-weight": { "value": "{ams.typography.heading.font-weight}" },
13
25
  "line-height": { "value": "{ams.typography.heading.3.line-height}" },
14
- "margin-block-end": { "value": "{ams.space.s}" },
15
- "text-wrap": { "value": "{ams.typography.heading.text-wrap}" }
26
+ "text-wrap": { "value": "{ams.typography.heading.text-wrap}" },
27
+ "in-fieldset": {
28
+ "font-weight": { "value": "{ams.typography.body-text.font-weight}" }
29
+ }
16
30
  }
17
31
  }
18
32
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "ams": {
3
+ "field": {
4
+ "gap": { "value": "{ams.space.s}" }
5
+ }
6
+ }
7
+ }
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "ams": {
3
3
  "field": {
4
- "gap": { "value": "{ams.space.s}" },
4
+ "child": {
5
+ "margin-block-end": { "value": "{ams.space.xs}" },
6
+ "before-error-message": {
7
+ "margin-block-end": { "value": "{ams.space.s}" }
8
+ }
9
+ },
5
10
  "invalid": {
6
11
  "border-inline-start": { "value": "{ams.border.width.l} solid {ams.color.feedback.error}" },
7
12
  "padding-inline-start": { "value": "{ams.space.m}" }
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "ams": {
3
3
  "hint": {
4
- "font-weight": { "value": "{ams.typography.body-text.font-weight}" }
4
+ "font-weight": { "value": "{ams.typography.body-text.font-weight}" },
5
+ "in-fieldset": {
6
+ "color": { "value": "{ams.color.text.secondary}" }
7
+ }
5
8
  }
6
9
  }
7
10
  }
@@ -6,7 +6,10 @@
6
6
  "font-size": { "value": "{ams.typography.heading.3.font-size}" },
7
7
  "font-weight": { "value": "{ams.typography.heading.font-weight}" },
8
8
  "line-height": { "value": "{ams.typography.heading.3.line-height}" },
9
- "text-wrap": { "value": "{ams.typography.heading.text-wrap}" }
9
+ "text-wrap": { "value": "{ams.typography.heading.text-wrap}" },
10
+ "in-fieldset": {
11
+ "font-weight": { "value": "{ams.typography.body-text.font-weight}" }
12
+ }
10
13
  }
11
14
  }
12
15
  }
@@ -4,6 +4,9 @@
4
4
  "brand-name": {
5
5
  "font-size": { "value": "{ams.typography.heading.2.font-size}" },
6
6
  "line-height": { "value": "{ams.typography.heading.2.line-height}" }
7
+ },
8
+ "mega-menu": {
9
+ "padding-block": { "value": "0" }
7
10
  }
8
11
  }
9
12
  }
@@ -25,6 +25,7 @@
25
25
  "text-wrap": { "value": "{ams.typography.heading.text-wrap}" }
26
26
  },
27
27
  "mega-menu": {
28
+ "padding-block": { "value": "{ams.space.l}" },
28
29
  "button": {
29
30
  "cursor": { "value": "{ams.cursor.interactive}" },
30
31
  "label": {
@@ -51,6 +52,7 @@
51
52
  }
52
53
  },
53
54
  "link": {
55
+ "gap": { "value": "{ams.space.xs}" },
54
56
  "text-decoration-line": { "value": "{ams.links.subtle.text-decoration-line}" },
55
57
  "text-decoration-thickness": { "value": "{ams.links.text-decoration-thickness}" },
56
58
  "text-underline-offset": { "value": "{ams.links.text-underline-offset}" },
@@ -61,7 +63,7 @@
61
63
  },
62
64
  "navigation": {
63
65
  "column-gap": { "value": "{ams.space.l}" },
64
- "row-gap": { "value": "{ams.space.s}" }
66
+ "row-gap": { "value": "{ams.space.l}" }
65
67
  }
66
68
  }
67
69
  }
@@ -2,7 +2,16 @@
2
2
  "ams": {
3
3
  "page": {
4
4
  "background-color": { "value": "{ams.color.background}" },
5
- "max-inline-size": { "value": "90rem" }
5
+ "max-inline-size": { "value": "90rem" },
6
+ "with-menu": {
7
+ "max-inline-size": { "value": "120rem" },
8
+ "area-skip-link": {
9
+ "margin-inline-end": {
10
+ "value": "{ams.grid.padding-inline}",
11
+ "comment": "Must be the Grid inline padding, to make sure Skip Link and Grid line up"
12
+ }
13
+ }
14
+ }
6
15
  }
7
16
  }
8
17
  }
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "large": {
17
17
  "font-size": { "value": "{ams.typography.body-text.large.font-size}" },
18
- "line-height": { "value": "{ams.typography.body-text.large.line-height}" }
18
+ "line-height": { "value": "{ams.typography.body-text.large.line-height}" },
19
+ "text-wrap": { "value": "balance" }
19
20
  }
20
21
  }
21
22
  }