@utrecht/design-tokens 2.1.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/_mixin-theme.scss +3 -5
- package/dist/_mixin.scss +3 -5
- package/dist/_variables.scss +3 -5
- package/dist/dark/_mixin-theme.scss +3 -5
- package/dist/dark/_mixin.scss +3 -5
- package/dist/dark/_variables.scss +3 -5
- package/dist/dark/index.cjs +3 -5
- package/dist/dark/index.css +3 -5
- package/dist/dark/index.d.ts +2 -6
- package/dist/dark/index.flat.json +1 -3
- package/dist/dark/index.json +26 -40
- package/dist/dark/index.mjs +3 -5
- package/dist/dark/index.tokens.json +441 -14
- package/dist/dark/list.d.ts +14 -0
- package/dist/dark/list.json +26 -40
- package/dist/dark/list.mjs +30694 -0
- package/dist/dark/property.css +2 -0
- package/dist/dark/root.css +1 -3
- package/dist/dark/theme-prince-xml.css +3 -5
- package/dist/dark/theme.css +1 -3
- package/dist/dark/tokens.cjs +512 -97
- package/dist/dark/tokens.d.ts +239 -13
- package/dist/dark/tokens.json +514 -99
- package/dist/dark/variables.cjs +3 -5
- package/dist/dark/variables.css +1 -3
- package/dist/dark/variables.d.ts +2 -6
- package/dist/dark/variables.json +1 -3
- package/dist/dark/variables.less +3 -5
- package/dist/dark/variables.mjs +3 -5
- package/dist/index.cjs +3 -5
- package/dist/index.css +84 -10
- package/dist/index.d.ts +2 -6
- package/dist/index.flat.json +1 -3
- package/dist/index.json +26 -40
- package/dist/index.mjs +3 -5
- package/dist/index.tokens.json +441 -14
- package/dist/list.d.ts +14 -0
- package/dist/list.json +26 -40
- package/dist/list.mjs +31811 -0
- package/dist/property.css +2 -0
- package/dist/root.css +1 -3
- package/dist/theme-prince-xml.css +3 -5
- package/dist/theme.css +1 -3
- package/dist/tokens.cjs +512 -97
- package/dist/tokens.d.ts +239 -13
- package/dist/tokens.json +514 -99
- package/dist/variables.cjs +3 -5
- package/dist/variables.css +1 -3
- package/dist/variables.d.ts +2 -6
- package/dist/variables.json +1 -3
- package/dist/variables.less +3 -5
- package/dist/variables.mjs +3 -5
- package/package.json +1 -1
- package/src/brand/utrecht/typography.tokens.json +0 -2
- package/src/component/utrecht/blockquote.tokens.json +1 -1
- package/src/css-property-formatter.mjs +2 -1
- package/src/index.scss +79 -0
- package/src/json-list-formatter.js +2 -1
- package/style-dictionary-build.mjs +3 -1
- package/style-dictionary-config.mjs +27 -0
package/dist/variables.cjs
CHANGED
|
@@ -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.
|
|
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",
|
package/dist/variables.css
CHANGED
|
@@ -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-
|
|
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);
|
package/dist/variables.d.ts
CHANGED
|
@@ -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 */
|
package/dist/variables.json
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"utrechtBadgeListItemMarginInline": "12px",
|
|
128
128
|
"utrechtBadgePaddingBlock": "8px",
|
|
129
129
|
"utrechtBadgePaddingInline": "12px",
|
|
130
|
-
"utrechtBlockquoteCaptionFontSize": "0.
|
|
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",
|
package/dist/variables.less
CHANGED
|
@@ -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-
|
|
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;
|
package/dist/variables.mjs
CHANGED
|
@@ -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.
|
|
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
|
@@ -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.
|
|
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
|
+
}
|
|
@@ -20,7 +20,9 @@ const build = async () => {
|
|
|
20
20
|
...createStyleDictionaryConfig({
|
|
21
21
|
themeName: `${themeConfig.prefix}-theme`,
|
|
22
22
|
}),
|
|
23
|
-
log:
|
|
23
|
+
log: {
|
|
24
|
+
verbosity: 'verbose',
|
|
25
|
+
},
|
|
24
26
|
preprocessors: ['tokens-studio', 'dtcg-delegate'],
|
|
25
27
|
source: [
|
|
26
28
|
'../../components/**/tokens.json',
|
|
@@ -10,6 +10,25 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
10
10
|
'json/list': function ({ dictionary }) {
|
|
11
11
|
return JSON.stringify(dictionary.allTokens.sort(sortByName), null, ' ');
|
|
12
12
|
},
|
|
13
|
+
'javascript/es6-list': function ({ dictionary }) {
|
|
14
|
+
return `export default ${JSON.stringify(dictionary.allTokens.sort(sortByName), null, ' ')};\n`;
|
|
15
|
+
},
|
|
16
|
+
'typescript/list-declarations': function ({ dictionary }) {
|
|
17
|
+
return `
|
|
18
|
+
declare interface DesignToken {
|
|
19
|
+
value?: any;
|
|
20
|
+
type?: string;
|
|
21
|
+
comment?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
themeable?: boolean;
|
|
24
|
+
attributes?: Record<string, unknown>;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default tokens;
|
|
29
|
+
|
|
30
|
+
declare const tokens: DesignToken[];`;
|
|
31
|
+
},
|
|
13
32
|
},
|
|
14
33
|
transforms: {
|
|
15
34
|
'fontSize/pxToRem': {
|
|
@@ -75,6 +94,10 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
75
94
|
destination: 'list.json',
|
|
76
95
|
format: 'json/list',
|
|
77
96
|
},
|
|
97
|
+
{
|
|
98
|
+
destination: 'list.mjs',
|
|
99
|
+
format: 'javascript/es6-list',
|
|
100
|
+
},
|
|
78
101
|
{
|
|
79
102
|
destination: 'variables.json',
|
|
80
103
|
format: 'json/flat',
|
|
@@ -177,6 +200,10 @@ export const createStyleDictionaryConfig = ({ themeName, source = ['src/**/*.tok
|
|
|
177
200
|
format: 'typescript/module-declarations',
|
|
178
201
|
destination: 'tokens.d.ts',
|
|
179
202
|
},
|
|
203
|
+
{
|
|
204
|
+
format: 'typescript/list-declarations',
|
|
205
|
+
destination: 'list.d.ts',
|
|
206
|
+
},
|
|
180
207
|
],
|
|
181
208
|
},
|
|
182
209
|
'deprecated-js': {
|