@utrecht/design-tokens 2.1.1 → 2.2.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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_mixin-theme.scss +3 -5
  3. package/dist/_mixin.scss +3 -5
  4. package/dist/_variables.scss +3 -5
  5. package/dist/dark/_mixin-theme.scss +3 -5
  6. package/dist/dark/_mixin.scss +3 -5
  7. package/dist/dark/_variables.scss +3 -5
  8. package/dist/dark/index.cjs +3 -5
  9. package/dist/dark/index.css +3 -5
  10. package/dist/dark/index.d.ts +2 -6
  11. package/dist/dark/index.flat.json +1 -3
  12. package/dist/dark/index.json +26 -40
  13. package/dist/dark/index.mjs +3 -5
  14. package/dist/dark/index.tokens.json +107 -12
  15. package/dist/dark/list.json +26 -40
  16. package/dist/dark/property.css +2 -0
  17. package/dist/dark/root.css +1 -3
  18. package/dist/dark/theme-prince-xml.css +3 -5
  19. package/dist/dark/theme.css +1 -3
  20. package/dist/dark/tokens.cjs +151 -68
  21. package/dist/dark/tokens.d.ts +61 -11
  22. package/dist/dark/tokens.json +153 -70
  23. package/dist/dark/variables.cjs +3 -5
  24. package/dist/dark/variables.css +1 -3
  25. package/dist/dark/variables.d.ts +2 -6
  26. package/dist/dark/variables.json +1 -3
  27. package/dist/dark/variables.less +3 -5
  28. package/dist/dark/variables.mjs +3 -5
  29. package/dist/index.cjs +3 -5
  30. package/dist/index.css +84 -10
  31. package/dist/index.d.ts +2 -6
  32. package/dist/index.flat.json +1 -3
  33. package/dist/index.json +26 -40
  34. package/dist/index.mjs +3 -5
  35. package/dist/index.tokens.json +107 -12
  36. package/dist/list.json +26 -40
  37. package/dist/property.css +2 -0
  38. package/dist/root.css +1 -3
  39. package/dist/theme-prince-xml.css +3 -5
  40. package/dist/theme.css +1 -3
  41. package/dist/tokens.cjs +151 -68
  42. package/dist/tokens.d.ts +61 -11
  43. package/dist/tokens.json +153 -70
  44. package/dist/variables.cjs +3 -5
  45. package/dist/variables.css +1 -3
  46. package/dist/variables.d.ts +2 -6
  47. package/dist/variables.json +1 -3
  48. package/dist/variables.less +3 -5
  49. package/dist/variables.mjs +3 -5
  50. package/package.json +1 -1
  51. package/src/brand/utrecht/typography.tokens.json +0 -2
  52. package/src/component/utrecht/blockquote.tokens.json +1 -1
  53. package/src/index.scss +79 -0
package/dist/tokens.json CHANGED
@@ -3512,7 +3512,7 @@
3512
3512
  }
3513
3513
  },
3514
3514
  "type": "fontSize",
3515
- "value": "0.75rem",
3515
+ "value": "0.875rem",
3516
3516
  "filePath": "src/component/utrecht/blockquote.tokens.json",
3517
3517
  "isSource": true,
3518
3518
  "original": {
@@ -3527,7 +3527,7 @@
3527
3527
  }
3528
3528
  },
3529
3529
  "type": "fontSize",
3530
- "value": "{utrecht.typography.scale.xs.font-size}"
3530
+ "value": "{utrecht.typography.scale.sm.font-size}"
3531
3531
  },
3532
3532
  "name": "utrechtBlockquoteCaptionFontSize",
3533
3533
  "attributes": {},
@@ -22761,7 +22761,25 @@
22761
22761
  ]
22762
22762
  }
22763
22763
  },
22764
- "selected": {
22764
+ "disabled": {
22765
+ "background-color": {
22766
+ "$extensions": {
22767
+ "nl.nldesignsystem.css.property": {
22768
+ "syntax": "<color>",
22769
+ "inherits": true
22770
+ }
22771
+ }
22772
+ },
22773
+ "color": {
22774
+ "$extensions": {
22775
+ "nl.nldesignsystem.css.property": {
22776
+ "syntax": "<color>",
22777
+ "inherits": true
22778
+ }
22779
+ }
22780
+ }
22781
+ },
22782
+ "hover": {
22765
22783
  "background-color": {
22766
22784
  "$extensions": {
22767
22785
  "nl.nldesignsystem.css.property": {
@@ -22769,7 +22787,7 @@
22769
22787
  "inherits": true
22770
22788
  }
22771
22789
  },
22772
- "value": "hsl(0 0% 95%)",
22790
+ "value": "hsl(211 60% 90%)",
22773
22791
  "filePath": "src/component/utrecht/listbox.tokens.json",
22774
22792
  "isSource": true,
22775
22793
  "original": {
@@ -22779,15 +22797,15 @@
22779
22797
  "inherits": true
22780
22798
  }
22781
22799
  },
22782
- "value": "{utrecht.color.grey.95}"
22800
+ "value": "{utrecht.color.blue.90}"
22783
22801
  },
22784
- "name": "utrechtListboxOptionSelectedBackgroundColor",
22802
+ "name": "utrechtListboxOptionHoverBackgroundColor",
22785
22803
  "attributes": {},
22786
22804
  "path": [
22787
22805
  "utrecht",
22788
22806
  "listbox",
22789
22807
  "option",
22790
- "selected",
22808
+ "hover",
22791
22809
  "background-color"
22792
22810
  ]
22793
22811
  },
@@ -22810,61 +22828,121 @@
22810
22828
  },
22811
22829
  "value": "{utrecht.color.black}"
22812
22830
  },
22813
- "name": "utrechtListboxOptionSelectedColor",
22831
+ "name": "utrechtListboxOptionHoverColor",
22814
22832
  "attributes": {},
22815
22833
  "path": [
22816
22834
  "utrecht",
22817
22835
  "listbox",
22818
22836
  "option",
22819
- "selected",
22837
+ "hover",
22820
22838
  "color"
22821
22839
  ]
22822
22840
  }
22823
22841
  },
22824
- "icon": {
22825
- "size": {
22842
+ "selected": {
22843
+ "background-color": {
22826
22844
  "$extensions": {
22827
22845
  "nl.nldesignsystem.css.property": {
22828
- "syntax": "<length>",
22846
+ "syntax": "<color>",
22829
22847
  "inherits": true
22830
22848
  }
22831
- }
22832
- }
22833
- },
22834
- "hover": {
22835
- "color": {
22836
- "value": "hsl(0 0% 0%)",
22849
+ },
22850
+ "value": "hsl(0 0% 95%)",
22837
22851
  "filePath": "src/component/utrecht/listbox.tokens.json",
22838
22852
  "isSource": true,
22839
22853
  "original": {
22840
- "value": "{utrecht.color.black}"
22854
+ "$extensions": {
22855
+ "nl.nldesignsystem.css.property": {
22856
+ "syntax": "<color>",
22857
+ "inherits": true
22858
+ }
22859
+ },
22860
+ "value": "{utrecht.color.grey.95}"
22841
22861
  },
22842
- "name": "utrechtListboxOptionHoverColor",
22862
+ "name": "utrechtListboxOptionSelectedBackgroundColor",
22843
22863
  "attributes": {},
22844
22864
  "path": [
22845
22865
  "utrecht",
22846
22866
  "listbox",
22847
22867
  "option",
22848
- "hover",
22849
- "color"
22868
+ "selected",
22869
+ "background-color"
22850
22870
  ]
22851
22871
  },
22852
- "background-color": {
22853
- "value": "hsl(211 60% 90%)",
22872
+ "color": {
22873
+ "$extensions": {
22874
+ "nl.nldesignsystem.css.property": {
22875
+ "syntax": "<color>",
22876
+ "inherits": true
22877
+ }
22878
+ },
22879
+ "value": "hsl(0 0% 0%)",
22854
22880
  "filePath": "src/component/utrecht/listbox.tokens.json",
22855
22881
  "isSource": true,
22856
22882
  "original": {
22857
- "value": "{utrecht.color.blue.90}"
22883
+ "$extensions": {
22884
+ "nl.nldesignsystem.css.property": {
22885
+ "syntax": "<color>",
22886
+ "inherits": true
22887
+ }
22888
+ },
22889
+ "value": "{utrecht.color.black}"
22858
22890
  },
22859
- "name": "utrechtListboxOptionHoverBackgroundColor",
22891
+ "name": "utrechtListboxOptionSelectedColor",
22860
22892
  "attributes": {},
22861
22893
  "path": [
22862
22894
  "utrecht",
22863
22895
  "listbox",
22864
22896
  "option",
22865
- "hover",
22866
- "background-color"
22897
+ "selected",
22898
+ "color"
22867
22899
  ]
22900
+ },
22901
+ "disabled": {
22902
+ "background-color": {
22903
+ "$extensions": {
22904
+ "nl.nldesignsystem.css.property": {
22905
+ "syntax": "<color>",
22906
+ "inherits": true
22907
+ }
22908
+ }
22909
+ },
22910
+ "color": {
22911
+ "$extensions": {
22912
+ "nl.nldesignsystem.css.property": {
22913
+ "syntax": "<color>",
22914
+ "inherits": true
22915
+ }
22916
+ }
22917
+ }
22918
+ },
22919
+ "hover": {
22920
+ "background-color": {
22921
+ "$extensions": {
22922
+ "nl.nldesignsystem.css.property": {
22923
+ "syntax": "<color>",
22924
+ "inherits": true
22925
+ }
22926
+ }
22927
+ },
22928
+ "color": {
22929
+ "$extensions": {
22930
+ "nl.nldesignsystem.css.property": {
22931
+ "syntax": "<color>",
22932
+ "inherits": true
22933
+ }
22934
+ }
22935
+ }
22936
+ }
22937
+ },
22938
+ "icon": {
22939
+ "size": {
22940
+ "$extensions": {
22941
+ "nl.nldesignsystem.css.property": {
22942
+ "syntax": "<length>",
22943
+ "inherits": true
22944
+ }
22945
+ }
22868
22946
  }
22869
22947
  }
22870
22948
  },
@@ -30976,6 +31054,53 @@
30976
31054
  "type": "color"
30977
31055
  }
30978
31056
  },
31057
+ "hover": {
31058
+ "background-color": {
31059
+ "$extensions": {
31060
+ "nl.nldesignsystem.css.property": {
31061
+ "syntax": "<color>",
31062
+ "inherits": true
31063
+ },
31064
+ "nl.nldesignsystem.fallback": [
31065
+ "utrecht.form-control.hover.background-color",
31066
+ "utrecht.select.background-color",
31067
+ "utrecht.form-control.background-color"
31068
+ ],
31069
+ "nl.nldesignsystem.figma.supports-token": true
31070
+ },
31071
+ "type": "color"
31072
+ },
31073
+ "border-color": {
31074
+ "$extensions": {
31075
+ "nl.nldesignsystem.css.property": {
31076
+ "syntax": "<color>",
31077
+ "inherits": true
31078
+ },
31079
+ "nl.nldesignsystem.fallback": [
31080
+ "utrecht.form-control.hover.border-color",
31081
+ "utrecht.select.border-color",
31082
+ "utrecht.form-control.border-color"
31083
+ ],
31084
+ "nl.nldesignsystem.figma.supports-token": true
31085
+ },
31086
+ "type": "color"
31087
+ },
31088
+ "color": {
31089
+ "$extensions": {
31090
+ "nl.nldesignsystem.css.property": {
31091
+ "syntax": "<color>",
31092
+ "inherits": true
31093
+ },
31094
+ "nl.nldesignsystem.fallback": [
31095
+ "utrecht.form-control.hover.color",
31096
+ "utrecht.select.color",
31097
+ "utrecht.form-control.color"
31098
+ ],
31099
+ "nl.nldesignsystem.figma.supports-token": true
31100
+ },
31101
+ "type": "color"
31102
+ }
31103
+ },
30979
31104
  "focus": {
30980
31105
  "background-color": {
30981
31106
  "$extensions": {
@@ -36431,48 +36556,6 @@
36431
36556
  }
36432
36557
  },
36433
36558
  "scale": {
36434
- "2xs": {
36435
- "font-size": {
36436
- "value": "0.5rem",
36437
- "comment": "8px",
36438
- "filePath": "src/brand/utrecht/typography.tokens.json",
36439
- "isSource": true,
36440
- "original": {
36441
- "value": "8px",
36442
- "comment": "8px"
36443
- },
36444
- "name": "utrechtTypographyScale2xsFontSize",
36445
- "attributes": {},
36446
- "path": [
36447
- "utrecht",
36448
- "typography",
36449
- "scale",
36450
- "2xs",
36451
- "font-size"
36452
- ]
36453
- }
36454
- },
36455
- "xs": {
36456
- "font-size": {
36457
- "value": "0.75rem",
36458
- "comment": "12px",
36459
- "filePath": "src/brand/utrecht/typography.tokens.json",
36460
- "isSource": true,
36461
- "original": {
36462
- "value": "12px",
36463
- "comment": "12px"
36464
- },
36465
- "name": "utrechtTypographyScaleXsFontSize",
36466
- "attributes": {},
36467
- "path": [
36468
- "utrecht",
36469
- "typography",
36470
- "scale",
36471
- "xs",
36472
- "font-size"
36473
- ]
36474
- }
36475
- },
36476
36559
  "sm": {
36477
36560
  "font-size": {
36478
36561
  "value": "0.875rem",
@@ -80,7 +80,7 @@ module.exports = {
80
80
  "utrechtBlockquoteMarginInlineEnd": "1.6em",
81
81
  "utrechtBlockquoteContentColor": "hsl(0 100% 40%)",
82
82
  "utrechtBlockquoteContentFontSize": "1.125rem",
83
- "utrechtBlockquoteCaptionFontSize": "0.75rem",
83
+ "utrechtBlockquoteCaptionFontSize": "0.875rem",
84
84
  "utrechtBlockquoteMarginBlockStart": "1.6em",
85
85
  "utrechtBlockquoteMarginBlockEnd": "1.6em",
86
86
  "utrechtBreadcrumbNavMinBlockSize": "34px",
@@ -577,10 +577,10 @@ module.exports = {
577
577
  "utrechtListboxOptionActiveBackgroundColor": "hsl(0 0% 95%)",
578
578
  "utrechtListboxOptionActiveColor": "hsl(0 0% 0%)",
579
579
  "utrechtListboxOptionActiveFontWeight": "700",
580
+ "utrechtListboxOptionHoverBackgroundColor": "hsl(211 60% 90%)",
581
+ "utrechtListboxOptionHoverColor": "hsl(0 0% 0%)",
580
582
  "utrechtListboxOptionSelectedBackgroundColor": "hsl(0 0% 95%)",
581
583
  "utrechtListboxOptionSelectedColor": "hsl(0 0% 0%)",
582
- "utrechtListboxOptionHoverColor": "hsl(0 0% 0%)",
583
- "utrechtListboxOptionHoverBackgroundColor": "hsl(211 60% 90%)",
584
584
  "utrechtListboxOptionGroupMarginBlockEnd": "8px",
585
585
  "utrechtListboxOptionGroupTitleFontSize": "1rem",
586
586
  "utrechtListboxOptionGroupTitleFontWeight": "700",
@@ -928,8 +928,6 @@ module.exports = {
928
928
  "utrechtIconScale3xl": "36px",
929
929
  "utrechtIconScale4xl": "48px",
930
930
  "utrechtTypographySansSerifFontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", \"Arial\", sans-serif",
931
- "utrechtTypographyScale2xsFontSize": "0.5rem",
932
- "utrechtTypographyScaleXsFontSize": "0.75rem",
933
931
  "utrechtTypographyScaleSmFontSize": "0.875rem",
934
932
  "utrechtTypographyScaleMdFontSize": "1rem",
935
933
  "utrechtTypographyScaleLgFontSize": "1.125rem",
@@ -8,14 +8,12 @@
8
8
  --utrecht-unordered-list-item-margin-block-end: 0.25rem;
9
9
  --utrecht-typography-weight-scale-normal-font-weight: 400;
10
10
  --utrecht-typography-weight-scale-bold-font-weight: 700;
11
- --utrecht-typography-scale-xs-font-size: 0.75rem; /* 12px */
12
11
  --utrecht-typography-scale-xl-font-size: 1.25rem; /* 20px */
13
12
  --utrecht-typography-scale-sm-font-size: 0.875rem; /* 14px */
14
13
  --utrecht-typography-scale-md-font-size: 1rem; /* 16px */
15
14
  --utrecht-typography-scale-lg-font-size: 1.125rem; /* 18px */
16
15
  --utrecht-typography-scale-4xl-font-size: 2rem; /* 32px */
17
16
  --utrecht-typography-scale-3xl-font-size: 1.5rem; /* 24px */
18
- --utrecht-typography-scale-2xs-font-size: 0.5rem; /* 8px */
19
17
  --utrecht-typography-scale-2xl-font-size: 1.375rem; /* 22px */
20
18
  --utrecht-typography-sans-serif-font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Arial", sans-serif;
21
19
  --utrecht-typography-line-height-xs: 1;
@@ -828,7 +826,7 @@
828
826
  --utrecht-breadcrumb-nav-arrows-link-background-color: var(--utrecht-color-grey-90);
829
827
  --utrecht-blockquote-content-font-size: var(--utrecht-typography-scale-lg-font-size);
830
828
  --utrecht-blockquote-content-color: var(--utrecht-color-red-40);
831
- --utrecht-blockquote-caption-font-size: var(--utrecht-typography-scale-xs-font-size);
829
+ --utrecht-blockquote-caption-font-size: var(--utrecht-typography-scale-sm-font-size);
832
830
  --utrecht-badge-padding-inline: var(--utrecht-space-inline-sm); /* Default inline padding color for badge components */
833
831
  --utrecht-badge-padding-block: var(--utrecht-space-block-xs); /* Default block padding for badge components */
834
832
  --utrecht-badge-list-item-margin-inline: var(--utrecht-space-block-sm);
@@ -640,10 +640,10 @@ export const utrechtListboxOptionPaddingInlineStart : string;
640
640
  export const utrechtListboxOptionActiveBackgroundColor : string;
641
641
  export const utrechtListboxOptionActiveColor : string;
642
642
  export const utrechtListboxOptionActiveFontWeight : string;
643
+ export const utrechtListboxOptionHoverBackgroundColor : string;
644
+ export const utrechtListboxOptionHoverColor : string;
643
645
  export const utrechtListboxOptionSelectedBackgroundColor : string;
644
646
  export const utrechtListboxOptionSelectedColor : string;
645
- export const utrechtListboxOptionHoverColor : string;
646
- export const utrechtListboxOptionHoverBackgroundColor : string;
647
647
  export const utrechtListboxOptionGroupMarginBlockEnd : string;
648
648
  export const utrechtListboxOptionGroupTitleFontSize : string;
649
649
  export const utrechtListboxOptionGroupTitleFontWeight : string;
@@ -1041,10 +1041,6 @@ export const utrechtIconScale2xl : string;
1041
1041
  export const utrechtIconScale3xl : string;
1042
1042
  export const utrechtIconScale4xl : string;
1043
1043
  export const utrechtTypographySansSerifFontFamily : string;
1044
- /** 8px */
1045
- export const utrechtTypographyScale2xsFontSize : string;
1046
- /** 12px */
1047
- export const utrechtTypographyScaleXsFontSize : string;
1048
1044
  /** 14px */
1049
1045
  export const utrechtTypographyScaleSmFontSize : string;
1050
1046
  /** 16px */
@@ -127,7 +127,7 @@
127
127
  "utrechtBadgeListItemMarginInline": "12px",
128
128
  "utrechtBadgePaddingBlock": "8px",
129
129
  "utrechtBadgePaddingInline": "12px",
130
- "utrechtBlockquoteCaptionFontSize": "0.75rem",
130
+ "utrechtBlockquoteCaptionFontSize": "0.875rem",
131
131
  "utrechtBlockquoteContentColor": "hsl(0 100% 40%)",
132
132
  "utrechtBlockquoteContentFontSize": "1.125rem",
133
133
  "utrechtBlockquoteMarginBlockEnd": "1.6em",
@@ -989,14 +989,12 @@
989
989
  "utrechtTypographyLineHeightXs": "1",
990
990
  "utrechtTypographySansSerifFontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", \"Arial\", sans-serif",
991
991
  "utrechtTypographyScale2xlFontSize": "1.375rem",
992
- "utrechtTypographyScale2xsFontSize": "0.5rem",
993
992
  "utrechtTypographyScale3xlFontSize": "1.5rem",
994
993
  "utrechtTypographyScale4xlFontSize": "2rem",
995
994
  "utrechtTypographyScaleLgFontSize": "1.125rem",
996
995
  "utrechtTypographyScaleMdFontSize": "1rem",
997
996
  "utrechtTypographyScaleSmFontSize": "0.875rem",
998
997
  "utrechtTypographyScaleXlFontSize": "1.25rem",
999
- "utrechtTypographyScaleXsFontSize": "0.75rem",
1000
998
  "utrechtTypographyWeightScaleBoldFontWeight": "700",
1001
999
  "utrechtTypographyWeightScaleNormalFontWeight": "400",
1002
1000
  "utrechtUnorderedListItemMarginBlockEnd": "0.25rem",
@@ -30,8 +30,6 @@
30
30
  @utrecht-typography-scale-lg-font-size: 1.125rem; // 18px
31
31
  @utrecht-typography-scale-md-font-size: 1rem; // 16px
32
32
  @utrecht-typography-scale-sm-font-size: 0.875rem; // 14px
33
- @utrecht-typography-scale-xs-font-size: 0.75rem; // 12px
34
- @utrecht-typography-scale-2xs-font-size: 0.5rem; // 8px
35
33
  @utrecht-typography-sans-serif-font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Arial", sans-serif;
36
34
  @utrecht-icon-scale-4xl: 48px;
37
35
  @utrecht-icon-scale-3xl: 36px; // Formaat voor toptaks iconen
@@ -601,10 +599,10 @@
601
599
  @utrecht-listbox-option-group-title-font-weight: @utrecht-typography-weight-scale-bold-font-weight;
602
600
  @utrecht-listbox-option-group-title-font-size: @utrecht-typography-scale-md-font-size;
603
601
  @utrecht-listbox-option-group-margin-block-end: @utrecht-space-inline-xs;
604
- @utrecht-listbox-option-hover-background-color: @utrecht-color-blue-90;
605
- @utrecht-listbox-option-hover-color: @utrecht-color-black;
606
602
  @utrecht-listbox-option-selected-color: @utrecht-color-black;
607
603
  @utrecht-listbox-option-selected-background-color: @utrecht-color-grey-95;
604
+ @utrecht-listbox-option-hover-color: @utrecht-color-black;
605
+ @utrecht-listbox-option-hover-background-color: @utrecht-color-blue-90;
608
606
  @utrecht-listbox-option-active-font-weight: @utrecht-typography-weight-scale-bold-font-weight;
609
607
  @utrecht-listbox-option-active-color: @utrecht-color-black;
610
608
  @utrecht-listbox-option-active-background-color: @utrecht-color-grey-95;
@@ -864,7 +862,7 @@
864
862
  @utrecht-breadcrumb-nav-item-padding-block-end: @utrecht-space-block-xs;
865
863
  @utrecht-breadcrumb-nav-item-padding-block-start: @utrecht-space-block-xs;
866
864
  @utrecht-breadcrumb-nav-font-size: @utrecht-typography-scale-md-font-size;
867
- @utrecht-blockquote-caption-font-size: @utrecht-typography-scale-xs-font-size;
865
+ @utrecht-blockquote-caption-font-size: @utrecht-typography-scale-sm-font-size;
868
866
  @utrecht-blockquote-content-font-size: @utrecht-typography-scale-lg-font-size;
869
867
  @utrecht-blockquote-content-color: @utrecht-color-red-40;
870
868
  @utrecht-badge-font-style: @utrecht-typography-font-style-normal;
@@ -79,7 +79,7 @@ export const utrechtBlockquoteMarginInlineStart = "1.6em";
79
79
  export const utrechtBlockquoteMarginInlineEnd = "1.6em";
80
80
  export const utrechtBlockquoteContentColor = "hsl(0 100% 40%)";
81
81
  export const utrechtBlockquoteContentFontSize = "1.125rem";
82
- export const utrechtBlockquoteCaptionFontSize = "0.75rem";
82
+ export const utrechtBlockquoteCaptionFontSize = "0.875rem";
83
83
  export const utrechtBlockquoteMarginBlockStart = "1.6em";
84
84
  export const utrechtBlockquoteMarginBlockEnd = "1.6em";
85
85
  export const utrechtBreadcrumbNavMinBlockSize = "34px";
@@ -576,10 +576,10 @@ export const utrechtListboxOptionPaddingInlineStart = "8px";
576
576
  export const utrechtListboxOptionActiveBackgroundColor = "hsl(0 0% 95%)";
577
577
  export const utrechtListboxOptionActiveColor = "hsl(0 0% 0%)";
578
578
  export const utrechtListboxOptionActiveFontWeight = "700";
579
+ export const utrechtListboxOptionHoverBackgroundColor = "hsl(211 60% 90%)";
580
+ export const utrechtListboxOptionHoverColor = "hsl(0 0% 0%)";
579
581
  export const utrechtListboxOptionSelectedBackgroundColor = "hsl(0 0% 95%)";
580
582
  export const utrechtListboxOptionSelectedColor = "hsl(0 0% 0%)";
581
- export const utrechtListboxOptionHoverColor = "hsl(0 0% 0%)";
582
- export const utrechtListboxOptionHoverBackgroundColor = "hsl(211 60% 90%)";
583
583
  export const utrechtListboxOptionGroupMarginBlockEnd = "8px";
584
584
  export const utrechtListboxOptionGroupTitleFontSize = "1rem";
585
585
  export const utrechtListboxOptionGroupTitleFontWeight = "700";
@@ -927,8 +927,6 @@ export const utrechtIconScale2xl = "30px"; // Formaat voor marker iconen
927
927
  export const utrechtIconScale3xl = "36px"; // Formaat voor toptaks iconen
928
928
  export const utrechtIconScale4xl = "48px";
929
929
  export const utrechtTypographySansSerifFontFamily = "\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", \"Arial\", sans-serif";
930
- export const utrechtTypographyScale2xsFontSize = "0.5rem"; // 8px
931
- export const utrechtTypographyScaleXsFontSize = "0.75rem"; // 12px
932
930
  export const utrechtTypographyScaleSmFontSize = "0.875rem"; // 14px
933
931
  export const utrechtTypographyScaleMdFontSize = "1rem"; // 16px
934
932
  export const utrechtTypographyScaleLgFontSize = "1.125rem"; // 18px
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.1",
2
+ "version": "2.2.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Design Tokens for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "SEE LICENSE IN ./LICENSE.md",
@@ -5,8 +5,6 @@
5
5
  "font-family": { "value": "\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", \"Arial\", sans-serif" }
6
6
  },
7
7
  "scale": {
8
- "2xs": { "font-size": { "value": "8px", "comment": "8px" } },
9
- "xs": { "font-size": { "value": "12px", "comment": "12px" } },
10
8
  "sm": { "font-size": { "value": "14px", "comment": "14px" } },
11
9
  "md": { "font-size": { "value": "16px", "comment": "16px" } },
12
10
  "lg": { "font-size": { "value": "18px", "comment": "18px" } },
@@ -14,7 +14,7 @@
14
14
  "font-size": {},
15
15
  "caption": {
16
16
  "color": {},
17
- "font-size": { "value": "{utrecht.typography.scale.xs.font-size}" }
17
+ "font-size": { "value": "{utrecht.typography.scale.sm.font-size}" }
18
18
  },
19
19
  "content": {
20
20
  "color": { "value": "{utrecht.color.red.40}" },
package/src/index.scss CHANGED
@@ -30,3 +30,82 @@
30
30
  @include utrecht-theme--dark;
31
31
  }
32
32
  }
33
+
34
+ .utrecht-theme--viewport-scale {
35
+ /* stylelint-disable number-max-precision */
36
+ --ams-text-level-6-line-height: 1.6;
37
+ --ams-text-level-6-font-size: clamp(0.9643rem, calc(0.9054rem + 0.2946vw), 1.2rem);
38
+ --ams-text-level-5-line-height: 1.6;
39
+ --ams-text-level-5-font-size: clamp(1.125rem, calc(1.0313rem + 0.4688vw), 1.5rem);
40
+ --ams-text-level-4-line-height: 1.5;
41
+ --ams-text-level-4-font-size: clamp(1.3125rem, calc(1.1719rem + 0.7031vw), 1.875rem);
42
+ --ams-text-level-3-line-height: 1.3;
43
+ --ams-text-level-3-font-size: clamp(1.5313rem, calc(1.3281rem + 1.0156vw), 2.3438rem);
44
+ --ams-text-level-2-line-height: 1.25;
45
+ --ams-text-level-2-font-size: clamp(1.7865rem, calc(1.5007rem + 1.429vw), 2.9297rem);
46
+ --ams-text-level-1-line-height: 1.2;
47
+ --ams-text-level-1-font-size: clamp(2.0842rem, calc(1.6897rem + 1.9724vw), 3.6621rem);
48
+ --ams-text-level-0-line-height: 1.15;
49
+ --ams-text-level-0-font-size: clamp(2.4316rem, calc(1.8951rem + 2.6826vw), 4.5776rem);
50
+ --ams-space-grid-xl: clamp(2rem, calc(0.75rem + 6.25vw), 7rem);
51
+ --ams-space-grid-lg: clamp(1.5rem, calc(0.5625rem + 4.6875vw), 5.25rem);
52
+ --ams-space-grid-md: clamp(1rem, calc(0.375rem + 3.125vw), 3.5rem);
53
+ --ams-space-grid-sm: clamp(0.5rem, calc(0.1875rem + 1.5625vw), 1.75rem);
54
+ --ams-space-grid-xs: clamp(0.25rem, calc(0.09375rem + 0.78125vw), 0.875rem);
55
+ --ams-space-xl: clamp(2.25rem, 2.0625rem + 0.9375vw, 3rem);
56
+ --ams-space-lg: clamp(1.6875rem, 1.5469rem + 0.7031vw, 2.25rem);
57
+ --ams-space-md: clamp(1.125rem, 1.0313rem + 0.4688vw, 1.5rem);
58
+ --ams-space-sm: clamp(0.5625rem, 0.5156rem + 0.2344vw, 0.75rem);
59
+ --ams-space-xs: clamp(0.2813rem, 0.2578rem + 0.1172vw, 0.375rem);
60
+ --utrecht-typography-scale-4xl-font-size: var(--ams-text-level-0-font-size);
61
+ --utrecht-typography-scale-3xl-font-size: var(--ams-text-level-1-font-size);
62
+ --utrecht-typography-scale-2xl-font-size: var(--ams-text-level-2-font-size);
63
+ --utrecht-typography-scale-xl-font-size: var(--ams-text-level-3-font-size);
64
+ --utrecht-typography-scale-lg-font-size: var(--ams-text-level-4-font-size);
65
+ --utrecht-typography-scale-md-font-size: var(--ams-text-level-5-font-size);
66
+ --utrecht-typography-scale-sm-font-size: var(--ams-text-level-6-font-size);
67
+ --utrecht-space-column-5xl: calc(var(--ams-space-grid-xl) * var(--utrecht-space-column-scale, 1));
68
+ --utrecht-space-column-4xl: calc(var(--ams-space-grid-lg) * var(--utrecht-space-column-scale, 1));
69
+ --utrecht-space-column-3xl: calc(var(--ams-space-grid-md) * var(--utrecht-space-column-scale, 1));
70
+ --utrecht-space-column-2xl: calc(var(--ams-space-grid-sm) * var(--utrecht-space-column-scale, 1) * 1.75);
71
+ --utrecht-space-column-xl: calc(var(--ams-space-grid-sm) * var(--utrecht-space-column-scale, 1) * 1.5);
72
+ --utrecht-space-column-lg: calc(var(--ams-space-grid-sm) * var(--utrecht-space-column-scale, 1) * 1.25);
73
+ --utrecht-space-column-md: calc(var(--ams-space-grid-sm) * var(--utrecht-space-column-scale, 1));
74
+ --utrecht-space-column-sm: calc(var(--ams-space-grid-sm) * var(--utrecht-space-column-scale, 1) * 0.75);
75
+ --utrecht-space-column-xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-column-scale, 1));
76
+ --utrecht-space-column-2xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-column-scale, 1) / 2);
77
+ --utrecht-space-column-3xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-column-scale, 1) / 4);
78
+ --utrecht-space-column-4xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-column-scale, 1) / 8);
79
+ --utrecht-space-row-5xl: calc(var(--ams-space-grid-xl) * var(--utrecht-space-row-scale, 1));
80
+ --utrecht-space-row-4xl: calc(var(--ams-space-grid-lg) * var(--utrecht-space-row-scale, 1));
81
+ --utrecht-space-row-3xl: calc(var(--ams-space-grid-md) * var(--utrecht-space-row-scale, 1));
82
+ --utrecht-space-row-2xl: calc(var(--ams-space-grid-sm) * var(--utrecht-space-row-scale, 1) * 1.75);
83
+ --utrecht-space-row-xl: calc(var(--ams-space-grid-sm) * var(--utrecht-space-row-scale, 1) * 1.5);
84
+ --utrecht-space-row-lg: calc(var(--ams-space-grid-sm) * var(--utrecht-space-row-scale, 1) * 1.25);
85
+ --utrecht-space-row-md: calc(var(--ams-space-grid-sm) * var(--utrecht-space-row-scale, 1));
86
+ --utrecht-space-row-sm: calc(var(--ams-space-grid-sm) * var(--utrecht-space-row-scale, 1) * 0.75);
87
+ --utrecht-space-row-xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-row-scale, 1));
88
+ --utrecht-space-row-2xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-row-scale, 1) / 2);
89
+ --utrecht-space-row-3xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-row-scale, 1) / 4);
90
+ --utrecht-space-row-4xs: calc(var(--ams-space-grid-xs) * var(--utrecht-space-row-scale, 1) / 8);
91
+ --utrecht-space-inline-4xl: calc(var(--ams-space-xl) * var(--utrecht-space-inline-scale, 1) * 1.5);
92
+ --utrecht-space-inline-3xl: calc(var(--ams-space-xl) * var(--utrecht-space-inline-scale, 1));
93
+ --utrecht-space-inline-2xl: calc(var(--ams-space-lg) * var(--utrecht-space-inline-scale, 1));
94
+ --utrecht-space-inline-xl: calc(var(--ams-space-md) * var(--utrecht-space-inline-scale, 1) * 1.33);
95
+ --utrecht-space-inline-lg: calc(var(--ams-space-md) * var(--utrecht-space-inline-scale, 1) * 1.125);
96
+ --utrecht-space-inline-md: calc(var(--ams-space-md) * var(--utrecht-space-inline-scale, 1) * 0.9);
97
+ --utrecht-space-inline-sm: calc(var(--ams-space-md) * var(--utrecht-space-inline-scale, 1) * 0.75);
98
+ --utrecht-space-inline-xs: calc(var(--ams-space-sm) * var(--utrecht-space-inline-scale, 1));
99
+ --utrecht-space-inline-2xs: calc(var(--ams-space-xs) * var(--utrecht-space-inline-scale, 1));
100
+ --utrecht-space-inline-3xs: calc(var(--ams-space-xs) * var(--utrecht-space-inline-scale, 1) / 2);
101
+ --utrecht-space-block-4xl: calc(var(--ams-space-xl) * var(--utrecht-space-block-scale, 1) * 1.5);
102
+ --utrecht-space-block-3xl: calc(var(--ams-space-xl) * var(--utrecht-space-block-scale, 1));
103
+ --utrecht-space-block-2xl: calc(var(--ams-space-lg) * var(--utrecht-space-block-scale, 1));
104
+ --utrecht-space-block-xl: calc(var(--ams-space-md) * var(--utrecht-space-block-scale, 1) * 1.33);
105
+ --utrecht-space-block-lg: calc(var(--ams-space-md) * var(--utrecht-space-block-scale, 1) * 1.125);
106
+ --utrecht-space-block-md: calc(var(--ams-space-md) * var(--utrecht-space-block-scale, 1) * 0.9);
107
+ --utrecht-space-block-sm: calc(var(--ams-space-md) * var(--utrecht-space-block-scale, 1) * 0.75);
108
+ --utrecht-space-block-xs: calc(var(--ams-space-sm) * var(--utrecht-space-block-scale, 1));
109
+ --utrecht-space-block-2xs: calc(var(--ams-space-xs) * var(--utrecht-space-block-scale, 1));
110
+ --utrecht-space-block-3xs: calc(var(--ams-space-xs) * var(--utrecht-space-block-scale, 1) / 2);
111
+ }