@massimo-cassandro/minimo 0.3.6 → 0.4.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/README.md +1 -1
- package/design-tokens/alerts.minimo.tokens.jsonc +28 -0
- package/design-tokens/badge.minimo.tokens.jsonc +42 -0
- package/design-tokens/basic.minimo.tokens.jsonc +58 -0
- package/design-tokens/btn-close.minimo.tokens.jsonc +96 -0
- package/design-tokens/btn-primary.minimo.tokens.jsonc +96 -0
- package/design-tokens/btn.minimo.tokens.jsonc +196 -0
- package/design-tokens/color-accent.minimo.tokens.jsonc +18 -0
- package/design-tokens/color-neutral.minimo.tokens.jsonc +18 -0
- package/design-tokens/color-primary.minimo.tokens.jsonc +18 -0
- package/design-tokens/color-secondary.minimo.tokens.jsonc +18 -0
- package/design-tokens/components/recaptcha.minimo.tokens.jsonc +28 -0
- package/design-tokens/components/sf-macro.minimo.tokens.jsonc +66 -0
- package/design-tokens/components/spinner.minimo.tokens.jsonc +24 -0
- package/design-tokens/components/toast.minimo.tokens.jsonc +32 -0
- package/design-tokens/flex-grid.minimo.tokens.jsonc +24 -0
- package/design-tokens/form.minimo.tokens.jsonc +304 -0
- package/design-tokens/headings.minimo.tokens.jsonc +62 -0
- package/design-tokens/link.minimo.tokens.jsonc +44 -0
- package/design-tokens/radius.minimo.tokens.jsonc +42 -0
- package/design-tokens/recaptcha.minimo.tokens.jsonc +28 -0
- package/design-tokens/sf-macro.minimo.tokens.jsonc +66 -0
- package/design-tokens/simple-datatable.minimo.tokens.jsonc +51 -0
- package/design-tokens/size.minimo.tokens.jsonc +46 -0
- package/design-tokens/spinner.minimo.tokens.jsonc +24 -0
- package/design-tokens/status.minimo.tokens.jsonc +98 -0
- package/design-tokens/table.minimo.tokens.jsonc +64 -0
- package/design-tokens/toast.minimo.tokens.jsonc +32 -0
- package/design-tokens/typography.minimo.tokens.jsonc +102 -0
- package/design-tokens/utility.minimo.tokens.jsonc +14 -0
- package/design-tokens/web-components/simple-datatable.minimo.tokens.jsonc +51 -0
- package/design-tokens/z-index.minimo.tokens.jsonc +14 -0
- package/design-tokens-src/_readme.md +27 -0
- package/design-tokens-src/alerts.minimo.tokens.mjs +25 -0
- package/design-tokens-src/size.minimo.tokens.jsonc +105 -0
- package/design-tokens-utilities/build-tokens-src/config.mjs +108 -0
- package/design-tokens-utilities/build-tokens-src/formats/css.mjs +201 -0
- package/design-tokens-utilities/build-tokens-src/formats/penpot.mjs +262 -0
- package/design-tokens-utilities/build-tokens-src/platforms.mjs +80 -0
- package/design-tokens-utilities/build-tokens-src/transforms.mjs +200 -0
- package/design-tokens-utilities/build-tokens.mjs +114 -0
- package/design-tokens-utilities/check-unresolved-custom-props.mjs +137 -0
- package/design-tokens-utilities/readme.md +185 -0
- package/design-tokens-utilities/tokens-config-sample.mjs +98 -0
- package/package.json +10 -6
- package/src/components/{overlay.js → overlay/overlay.js} +1 -1
- package/src/{css/dialog-content.css → components/popup-page/popup-page.css} +1 -1
- package/src/components/{dialog-content.js → popup-page/popup-page.js} +6 -4
- package/src/custom-properties-default.css +5 -5
- package/src/icons/x.svg +1 -0
- package/src/web-components/simple-datatable/simple-datatable.js +2 -2
- package/src/web-components/simple-datatable/simple-datatable.module.css +3 -3
- package/src/web-components/simple-datatable/src/parse-cols.js +2 -2
- package/src/design-tokens/TODO.md +0 -2
- package/src/design-tokens/alerts.minimo.tokens.jsonc +0 -25
- package/src/design-tokens/size.minimo.tokens.jsonc +0 -101
- package/src/design-tokens-utilities/build-tokens.mjs +0 -503
- package/src/design-tokens-utilities/check-unresolved-custom-props.mjs +0 -131
- package/src/design-tokens-utilities/config-templates/tokens-config.mjs +0 -34
- package/src/design-tokens-utilities/readme.md +0 -12
- /package/{src/design-tokens → design-tokens-src}/badge.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/basic.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/btn-close.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/btn-primary.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/btn-secondary.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/btn.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/color-accent.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/color-neutral.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/color-primary.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/color-secondary.minimo.tokens.jsonc +0 -0
- /package/{src/components/recaptcha → design-tokens-src/components}/recaptcha.minimo.tokens.jsonc +0 -0
- /package/{src/components/sf-macro → design-tokens-src/components}/sf-macro.minimo.tokens.jsonc +0 -0
- /package/{src/components/spinner → design-tokens-src/components}/spinner.minimo.tokens.jsonc +0 -0
- /package/{src/components/toast → design-tokens-src/components}/toast.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/flex-grid.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/form.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/gradients-shadowes.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/headings.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/link.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/radius.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/status.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/table.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/typography.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/utility.minimo.tokens.jsonc +0 -0
- /package/{src/web-components/simple-datatable → design-tokens-src/web-components}/simple-datatable.minimo.tokens.jsonc +0 -0
- /package/{src/design-tokens → design-tokens-src}/z-index.minimo.tokens.jsonc +0 -0
- /package/src/{css → components/overlay}/overlay.css +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/arrow-down.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/arrow-up.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/arrows-down-up.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/caret-left.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/caret-right.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/check-bold.svg +0 -0
- /package/src/{components/modal-alert/svg → icons}/check-circle-duotone.svg +0 -0
- /package/src/{components/modal-alert/svg → icons}/info-duotone.svg +0 -0
- /package/src/{components/modal-alert/svg → icons}/question-duotone.svg +0 -0
- /package/src/{components/modal-alert/svg → icons}/warning-duotone.svg +0 -0
- /package/src/{web-components/simple-datatable/icons → icons}/x-bold.svg +0 -0
- /package/src/{components/modal-alert/svg → icons}/x-circle-duotone.svg +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"sdt": {
|
|
9
|
+
"thead": {
|
|
10
|
+
"hover": {
|
|
11
|
+
"background": {
|
|
12
|
+
"color": {
|
|
13
|
+
"$type": "color",
|
|
14
|
+
"$value": "color-mix(in srgb, #ddd 90%, #567d0d)"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"pagination": {
|
|
20
|
+
"border": {
|
|
21
|
+
"$type": "border",
|
|
22
|
+
"$value": {
|
|
23
|
+
"color": "#666",
|
|
24
|
+
"width": "1px"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"padding": {
|
|
28
|
+
"block": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": "{size.xxs}"
|
|
31
|
+
},
|
|
32
|
+
"inline": {
|
|
33
|
+
"$type": "dimension",
|
|
34
|
+
"$value": "{size.xs}"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"hover": {
|
|
39
|
+
"background": {
|
|
40
|
+
"color": {
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$value": "{btn.primary.background.color}"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"color": {
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$value": "{btn.primary.color}"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"size": {
|
|
9
|
+
"xs": {
|
|
10
|
+
"$type": "dimension",
|
|
11
|
+
"$value": ".5rem"
|
|
12
|
+
},
|
|
13
|
+
"md": {
|
|
14
|
+
"$type": "dimension",
|
|
15
|
+
"$value": "1.2rem"
|
|
16
|
+
},
|
|
17
|
+
"3xl": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "4rem"
|
|
20
|
+
},
|
|
21
|
+
"2xl": {
|
|
22
|
+
"$type": "dimension",
|
|
23
|
+
"$value": "3rem"
|
|
24
|
+
},
|
|
25
|
+
"base": {
|
|
26
|
+
"$type": "dimension",
|
|
27
|
+
"$value": "1rem"
|
|
28
|
+
},
|
|
29
|
+
"lg": {
|
|
30
|
+
"$type": "dimension",
|
|
31
|
+
"$value": "1.5rem"
|
|
32
|
+
},
|
|
33
|
+
"xxs": {
|
|
34
|
+
"$type": "dimension",
|
|
35
|
+
"$value": ".25rem"
|
|
36
|
+
},
|
|
37
|
+
"xl": {
|
|
38
|
+
"$type": "dimension",
|
|
39
|
+
"$value": "2rem"
|
|
40
|
+
},
|
|
41
|
+
"sm": {
|
|
42
|
+
"$type": "dimension",
|
|
43
|
+
"$value": ".75rem"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"spinner": {
|
|
9
|
+
"size": {
|
|
10
|
+
"$type": "dimension",
|
|
11
|
+
"$value": "{size.lg}"
|
|
12
|
+
},
|
|
13
|
+
"color": {
|
|
14
|
+
"$type": "color",
|
|
15
|
+
"$value": "{primary.base}"
|
|
16
|
+
},
|
|
17
|
+
"stroke": {
|
|
18
|
+
"width": {
|
|
19
|
+
"$type": "dimension",
|
|
20
|
+
"$value": "2px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"status": {
|
|
9
|
+
"danger": {
|
|
10
|
+
"color": {
|
|
11
|
+
"$type": "color",
|
|
12
|
+
"$value": "#c00"
|
|
13
|
+
},
|
|
14
|
+
"background": {
|
|
15
|
+
"color": {
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$value": "{status.danger.color}"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"foreground": {
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$value": "#fff"
|
|
23
|
+
},
|
|
24
|
+
"border": {
|
|
25
|
+
"color": {
|
|
26
|
+
"$type": "color",
|
|
27
|
+
"$value": "{status.danger.color}"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"success": {
|
|
32
|
+
"color": {
|
|
33
|
+
"$type": "color",
|
|
34
|
+
"$value": "#046d19"
|
|
35
|
+
},
|
|
36
|
+
"background": {
|
|
37
|
+
"color": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": "{status.success.color}"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"foreground": {
|
|
43
|
+
"$type": "color",
|
|
44
|
+
"$value": "#fff"
|
|
45
|
+
},
|
|
46
|
+
"border": {
|
|
47
|
+
"color": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": "{status.success.color}"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"info": {
|
|
54
|
+
"color": {
|
|
55
|
+
"$type": "color",
|
|
56
|
+
"$value": "#0665c5"
|
|
57
|
+
},
|
|
58
|
+
"background": {
|
|
59
|
+
"color": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": "{status.info.color}"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"foreground": {
|
|
65
|
+
"$type": "color",
|
|
66
|
+
"$value": "#fff"
|
|
67
|
+
},
|
|
68
|
+
"border": {
|
|
69
|
+
"color": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": "{status.info.color}"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"warning": {
|
|
76
|
+
"color": {
|
|
77
|
+
"$type": "color",
|
|
78
|
+
"$value": "#fc0"
|
|
79
|
+
},
|
|
80
|
+
"background": {
|
|
81
|
+
"color": {
|
|
82
|
+
"$type": "color",
|
|
83
|
+
"$value": "{status.warning.color}"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"foreground": {
|
|
87
|
+
"$type": "color",
|
|
88
|
+
"$value": "#4f2900"
|
|
89
|
+
},
|
|
90
|
+
"border": {
|
|
91
|
+
"color": {
|
|
92
|
+
"$type": "color",
|
|
93
|
+
"$value": "{status.warning.color}"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"table": {
|
|
9
|
+
"thead": {
|
|
10
|
+
"background": {
|
|
11
|
+
"color": {
|
|
12
|
+
"$type": "color",
|
|
13
|
+
"$value": "#ddd"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"border": {
|
|
17
|
+
"width": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "3px"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"body": {
|
|
24
|
+
"border": {
|
|
25
|
+
"width": {
|
|
26
|
+
"$type": "dimension",
|
|
27
|
+
"$value": "1px"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"tr": {
|
|
31
|
+
"alt-bg-color": {
|
|
32
|
+
"$type": "color",
|
|
33
|
+
"$value": "#efefef"
|
|
34
|
+
},
|
|
35
|
+
"hover-bg-color": {
|
|
36
|
+
"$type": "color",
|
|
37
|
+
"$value": "#cbcbcb"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"border": {
|
|
42
|
+
"color": {
|
|
43
|
+
"$type": "color",
|
|
44
|
+
"$value": "#333"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"cell": {
|
|
48
|
+
"padding": {
|
|
49
|
+
"block": {
|
|
50
|
+
"$type": "dimension",
|
|
51
|
+
"$value": ".3rem"
|
|
52
|
+
},
|
|
53
|
+
"inline": {
|
|
54
|
+
"$type": "dimension",
|
|
55
|
+
"$value": ".6rem"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"line-height": {
|
|
59
|
+
"$type": "number",
|
|
60
|
+
"$value": "1.3"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"toast": {
|
|
9
|
+
"font": {
|
|
10
|
+
"size": {
|
|
11
|
+
"$type": "dimension",
|
|
12
|
+
"$value": "{font.size.sm}"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"radius": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": "{radius.sm}"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"text": {
|
|
22
|
+
"color": {
|
|
23
|
+
"$type": "color",
|
|
24
|
+
"$value": "{text.color}"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"duration": {
|
|
28
|
+
"$type": "duration",
|
|
29
|
+
"$value": "5s"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"font": {
|
|
9
|
+
"family": {
|
|
10
|
+
"$type": "fontFamily",
|
|
11
|
+
"$value": "sans-serif"
|
|
12
|
+
},
|
|
13
|
+
"family-mono": {
|
|
14
|
+
"$type": "fontFamily",
|
|
15
|
+
"$value": "'Monaspace Neon Var', 'Monaspace Neon', 'Aptos Mono', 'Roboto Mono', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Andale Mono', 'Courier New', monospace"
|
|
16
|
+
},
|
|
17
|
+
"size": {
|
|
18
|
+
"base": {
|
|
19
|
+
"$type": "string",
|
|
20
|
+
"$value": "clamp(.9rem, .6538rem + .3846vw, 1rem)"
|
|
21
|
+
},
|
|
22
|
+
"xxs": {
|
|
23
|
+
"$type": "string",
|
|
24
|
+
"$value": "clamp(.6rem, .3538rem + .3846vw, .7rem)"
|
|
25
|
+
},
|
|
26
|
+
"xs": {
|
|
27
|
+
"$type": "string",
|
|
28
|
+
"$value": "clamp(.7rem, .4538rem + .3846vw, .8rem)"
|
|
29
|
+
},
|
|
30
|
+
"sm": {
|
|
31
|
+
"$type": "string",
|
|
32
|
+
"$value": "clamp(.8rem, .5538rem + .3846vw, .9rem)"
|
|
33
|
+
},
|
|
34
|
+
"md": {
|
|
35
|
+
"$type": "string",
|
|
36
|
+
"$value": "clamp(1.05rem, .6808rem + .5769vw, 1.2rem)"
|
|
37
|
+
},
|
|
38
|
+
"lg": {
|
|
39
|
+
"$type": "string",
|
|
40
|
+
"$value": "clamp(1.2rem, .7077rem + .7692vw, 1.4rem)"
|
|
41
|
+
},
|
|
42
|
+
"xl": {
|
|
43
|
+
"$type": "string",
|
|
44
|
+
"$value": "clamp(1.6rem, 1.1077rem + .7692vw, 1.8rem)"
|
|
45
|
+
},
|
|
46
|
+
"2xl": {
|
|
47
|
+
"$type": "string",
|
|
48
|
+
"$value": "clamp(2rem, .7692rem + 1.9231vw, 2.5rem)"
|
|
49
|
+
},
|
|
50
|
+
"3xl": {
|
|
51
|
+
"$type": "string",
|
|
52
|
+
"$value": "clamp(2.2rem, .2308rem + 3.0769vw, 3rem)"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"line-height": {
|
|
56
|
+
"base": {
|
|
57
|
+
"$type": "number",
|
|
58
|
+
"$value": "1.5"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"style": {
|
|
62
|
+
"base": {
|
|
63
|
+
"$type": "string",
|
|
64
|
+
"$value": "normal"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"weight": {
|
|
68
|
+
"xxlight": {
|
|
69
|
+
"$type": "string",
|
|
70
|
+
"$value": "100"
|
|
71
|
+
},
|
|
72
|
+
"xlight": {
|
|
73
|
+
"$type": "string",
|
|
74
|
+
"$value": "200"
|
|
75
|
+
},
|
|
76
|
+
"light": {
|
|
77
|
+
"$type": "string",
|
|
78
|
+
"$value": "300"
|
|
79
|
+
},
|
|
80
|
+
"regular": {
|
|
81
|
+
"$type": "string",
|
|
82
|
+
"$value": "400"
|
|
83
|
+
},
|
|
84
|
+
"medium": {
|
|
85
|
+
"$type": "string",
|
|
86
|
+
"$value": "500"
|
|
87
|
+
},
|
|
88
|
+
"semibold": {
|
|
89
|
+
"$type": "string",
|
|
90
|
+
"$value": "600"
|
|
91
|
+
},
|
|
92
|
+
"bold": {
|
|
93
|
+
"$type": "string",
|
|
94
|
+
"$value": "700"
|
|
95
|
+
},
|
|
96
|
+
"xbold": {
|
|
97
|
+
"$type": "string",
|
|
98
|
+
"$value": "900"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"overlay": {
|
|
9
|
+
"color": {
|
|
10
|
+
"$type": "color",
|
|
11
|
+
"$value": "rgb(0 0 0 / .6)"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"sdt": {
|
|
9
|
+
"thead": {
|
|
10
|
+
"hover": {
|
|
11
|
+
"background": {
|
|
12
|
+
"color": {
|
|
13
|
+
"$type": "color",
|
|
14
|
+
"$value": "color-mix(in srgb, #ddd 90%, #567d0d)"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"pagination": {
|
|
20
|
+
"border": {
|
|
21
|
+
"$type": "border",
|
|
22
|
+
"$value": {
|
|
23
|
+
"color": "#666",
|
|
24
|
+
"width": "1px"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"padding": {
|
|
28
|
+
"block": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": "{size.xxs}"
|
|
31
|
+
},
|
|
32
|
+
"inline": {
|
|
33
|
+
"$type": "dimension",
|
|
34
|
+
"$value": "{size.xs}"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"hover": {
|
|
39
|
+
"background": {
|
|
40
|
+
"color": {
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$value": "{btn.primary.background.color}"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"color": {
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$value": "{btn.primary.color}"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// -----------------------------------------------------------------------
|
|
2
|
+
// Generated file — do not edit manually.
|
|
3
|
+
// This file is produced by the design-token build pipeline.
|
|
4
|
+
// Source of truth: the token files in the project source directory.
|
|
5
|
+
// Re-generate with: node build-tokens.mjs --config <path/to/config>
|
|
6
|
+
// -----------------------------------------------------------------------
|
|
7
|
+
{
|
|
8
|
+
"z-index": {
|
|
9
|
+
"overlay": {
|
|
10
|
+
"$type": "number",
|
|
11
|
+
"$value": 99
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
## SD Types
|
|
3
|
+
|
|
4
|
+
* **Color** (`$type` value: `color`)
|
|
5
|
+
* Colors in Hex, RGB, HSL, or standard names. ("#00ff00" or "rgba(0,0,0,0.5)" )
|
|
6
|
+
* **Size** (`dimension`)
|
|
7
|
+
* Measurements with units (px, rem, em, %, etc.). ("16px", "1.5rem", "50%" )
|
|
8
|
+
* **Number** (`number`)
|
|
9
|
+
* Pure numeric values without units (e.g., opacity). (0.75, 1.2, 100 )
|
|
10
|
+
* **Duration** (`duration`)
|
|
11
|
+
* Time intervals for animations and transitions. ("200ms", "0.5s" )
|
|
12
|
+
* **Time Curve** (`cubicBezier`)
|
|
13
|
+
* Array of 4 numbers for easing curves. ([0.42, 0, 0.58, 1] )
|
|
14
|
+
* **Font Family** (`fontFamily`)
|
|
15
|
+
* Name of the font family or list (array). ("Inter", ["Helvetica", "Arial"] )
|
|
16
|
+
* **Font Weight** (`fontWeight`)
|
|
17
|
+
* Font weight (number or text alias). (700, "bold", "light" )
|
|
18
|
+
* **Edge** (`border`)
|
|
19
|
+
* Compound: requires color, width, style. ({"color": "#000", "width": "1px", "style": "solid"} )
|
|
20
|
+
* **Shadow** (`shadow`)
|
|
21
|
+
* Compound: color, offsetX, offsetY, blur, spread, inset. ({"color": "#0003", "offsetX": "0px", "offsetY": "4px", "blur": "10px"} )
|
|
22
|
+
* **Typography** (`typography`)
|
|
23
|
+
* Compound: fontFamily, fontSize, fontWeight, lineHeight, letterSpacing. ({"fontFamily": "Inter", "fontSize": "16px", "fontWeight": 400} )
|
|
24
|
+
* **Gradient** (`gradient`)
|
|
25
|
+
* Compound: Array of "stops" (color and position). ([{"color": "#000", "offset": 0}, {"color": "#fff", "offset": 1}] )
|
|
26
|
+
* **Stroke Style** (`strokeStyle`)
|
|
27
|
+
* Compound: Defines line patterns (dashes). ({"dashArray": ["4px", "2px"], "lineCap": "round"} )
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
alert: {
|
|
3
|
+
border: {
|
|
4
|
+
radius: {
|
|
5
|
+
$value: '{radius.sm}',
|
|
6
|
+
$type: 'dimension'
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
'box-shadow': {
|
|
11
|
+
// $type: "string",
|
|
12
|
+
// $value: "none"
|
|
13
|
+
$type: 'shadow',
|
|
14
|
+
$value: [
|
|
15
|
+
{
|
|
16
|
+
offsetX: 0,
|
|
17
|
+
offsetY: 0,
|
|
18
|
+
blur: '8px',
|
|
19
|
+
spread: 0,
|
|
20
|
+
color: 'oklch(0 0 0 / 0.5)'
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
// in attesa di modifica dello script per il parser automatico delle espressioni
|
|
3
|
+
|
|
4
|
+
// export const dimensions_bulder = (
|
|
5
|
+
// base_dim = 1,
|
|
6
|
+
// unit = 'rem',
|
|
7
|
+
// scale = ['xxs', 'xs','sm', 'base', 'md', 'lg', 'xl', '2xl', '3xl']) => {
|
|
8
|
+
// };
|
|
9
|
+
|
|
10
|
+
"size": {
|
|
11
|
+
"xs": {
|
|
12
|
+
"$value": ".5rem",
|
|
13
|
+
"$type": "dimension",
|
|
14
|
+
"$description": ""
|
|
15
|
+
},
|
|
16
|
+
"md": {
|
|
17
|
+
"$value": "1.2rem",
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$description": ""
|
|
20
|
+
},
|
|
21
|
+
"3xl": {
|
|
22
|
+
"$value": "4rem",
|
|
23
|
+
"$type": "dimension",
|
|
24
|
+
"$description": ""
|
|
25
|
+
},
|
|
26
|
+
"2xl": {
|
|
27
|
+
"$value": "3rem",
|
|
28
|
+
"$type": "dimension",
|
|
29
|
+
"$description": ""
|
|
30
|
+
},
|
|
31
|
+
"base": {
|
|
32
|
+
"$value": "1rem",
|
|
33
|
+
"$type": "dimension",
|
|
34
|
+
"$description": ""
|
|
35
|
+
},
|
|
36
|
+
"lg": {
|
|
37
|
+
"$value": "1.5rem",
|
|
38
|
+
"$type": "dimension",
|
|
39
|
+
"$description": ""
|
|
40
|
+
},
|
|
41
|
+
"xxs": {
|
|
42
|
+
"$value": ".25rem",
|
|
43
|
+
"$type": "dimension",
|
|
44
|
+
"$description": ""
|
|
45
|
+
},
|
|
46
|
+
"xl": {
|
|
47
|
+
"$value": "2rem",
|
|
48
|
+
"$type": "dimension",
|
|
49
|
+
"$description": ""
|
|
50
|
+
},
|
|
51
|
+
"sm": {
|
|
52
|
+
"$value": ".75rem",
|
|
53
|
+
"$type": "dimension",
|
|
54
|
+
"$description": ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
// // "size": {
|
|
59
|
+
// // "xxs": {
|
|
60
|
+
// // "$value": "{size.base} * .25",
|
|
61
|
+
// // "$type": "dimension",
|
|
62
|
+
// // "$description": ""
|
|
63
|
+
// // },
|
|
64
|
+
// // "xs": {
|
|
65
|
+
// // "$value": "{size.base} * .5",
|
|
66
|
+
// // "$type": "dimension",
|
|
67
|
+
// // "$description": ""
|
|
68
|
+
// // },
|
|
69
|
+
// // "sm": {
|
|
70
|
+
// // "$value": "{size.base} * .75",
|
|
71
|
+
// // "$type": "dimension",
|
|
72
|
+
// // "$description": ""
|
|
73
|
+
// // },
|
|
74
|
+
// // "base": {
|
|
75
|
+
// // "$value": "1rem",
|
|
76
|
+
// // "$type": "dimension",
|
|
77
|
+
// // "$description": ""
|
|
78
|
+
// // },
|
|
79
|
+
// // "md": {
|
|
80
|
+
// // "$value": "{size.base} * 1.2",
|
|
81
|
+
// // "$type": "dimension",
|
|
82
|
+
// // "$description": ""
|
|
83
|
+
// // },
|
|
84
|
+
// // "lg": {
|
|
85
|
+
// // "$value": "{size.base} * 1.5",
|
|
86
|
+
// // "$type": "dimension",
|
|
87
|
+
// // "$description": ""
|
|
88
|
+
// // },
|
|
89
|
+
// // "xl": {
|
|
90
|
+
// // "$value": "{size.base} * 2",
|
|
91
|
+
// // "$type": "dimension",
|
|
92
|
+
// // "$description": ""
|
|
93
|
+
// // },
|
|
94
|
+
// // "2xl": {
|
|
95
|
+
// // "$value": "{size.base} * 3",
|
|
96
|
+
// // "$type": "dimension",
|
|
97
|
+
// // "$description": ""
|
|
98
|
+
// // },
|
|
99
|
+
// // "3xl": {
|
|
100
|
+
// // "$value": "{size.base} * 4",
|
|
101
|
+
// // "$type": "dimension",
|
|
102
|
+
// // "$description": ""
|
|
103
|
+
// // }
|
|
104
|
+
// }
|
|
105
|
+
}
|