@massimo-cassandro/minimo 0.3.5 → 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.
Files changed (105) hide show
  1. package/README.md +1 -1
  2. package/design-tokens/alerts.minimo.tokens.jsonc +28 -0
  3. package/design-tokens/badge.minimo.tokens.jsonc +42 -0
  4. package/design-tokens/basic.minimo.tokens.jsonc +58 -0
  5. package/design-tokens/btn-close.minimo.tokens.jsonc +96 -0
  6. package/design-tokens/btn-primary.minimo.tokens.jsonc +96 -0
  7. package/design-tokens/btn.minimo.tokens.jsonc +196 -0
  8. package/design-tokens/color-accent.minimo.tokens.jsonc +18 -0
  9. package/design-tokens/color-neutral.minimo.tokens.jsonc +18 -0
  10. package/design-tokens/color-primary.minimo.tokens.jsonc +18 -0
  11. package/design-tokens/color-secondary.minimo.tokens.jsonc +18 -0
  12. package/design-tokens/components/recaptcha.minimo.tokens.jsonc +28 -0
  13. package/design-tokens/components/sf-macro.minimo.tokens.jsonc +66 -0
  14. package/design-tokens/components/spinner.minimo.tokens.jsonc +24 -0
  15. package/design-tokens/components/toast.minimo.tokens.jsonc +32 -0
  16. package/design-tokens/flex-grid.minimo.tokens.jsonc +24 -0
  17. package/design-tokens/form.minimo.tokens.jsonc +304 -0
  18. package/design-tokens/headings.minimo.tokens.jsonc +62 -0
  19. package/design-tokens/link.minimo.tokens.jsonc +44 -0
  20. package/design-tokens/radius.minimo.tokens.jsonc +42 -0
  21. package/design-tokens/recaptcha.minimo.tokens.jsonc +28 -0
  22. package/design-tokens/sf-macro.minimo.tokens.jsonc +66 -0
  23. package/design-tokens/simple-datatable.minimo.tokens.jsonc +51 -0
  24. package/design-tokens/size.minimo.tokens.jsonc +46 -0
  25. package/design-tokens/spinner.minimo.tokens.jsonc +24 -0
  26. package/design-tokens/status.minimo.tokens.jsonc +98 -0
  27. package/design-tokens/table.minimo.tokens.jsonc +64 -0
  28. package/design-tokens/toast.minimo.tokens.jsonc +32 -0
  29. package/design-tokens/typography.minimo.tokens.jsonc +102 -0
  30. package/design-tokens/utility.minimo.tokens.jsonc +14 -0
  31. package/design-tokens/web-components/simple-datatable.minimo.tokens.jsonc +51 -0
  32. package/design-tokens/z-index.minimo.tokens.jsonc +14 -0
  33. package/design-tokens-src/_readme.md +27 -0
  34. package/design-tokens-src/alerts.minimo.tokens.mjs +25 -0
  35. package/design-tokens-src/components/sf-macro.minimo.tokens.jsonc +66 -0
  36. package/{src/design-tokens → design-tokens-src}/form.minimo.tokens.jsonc +9 -8
  37. package/design-tokens-src/size.minimo.tokens.jsonc +105 -0
  38. package/design-tokens-utilities/build-tokens-src/config.mjs +108 -0
  39. package/design-tokens-utilities/build-tokens-src/formats/css.mjs +201 -0
  40. package/design-tokens-utilities/build-tokens-src/formats/penpot.mjs +262 -0
  41. package/design-tokens-utilities/build-tokens-src/platforms.mjs +80 -0
  42. package/design-tokens-utilities/build-tokens-src/transforms.mjs +200 -0
  43. package/design-tokens-utilities/build-tokens.mjs +114 -0
  44. package/design-tokens-utilities/check-unresolved-custom-props.mjs +137 -0
  45. package/design-tokens-utilities/readme.md +185 -0
  46. package/design-tokens-utilities/tokens-config-sample.mjs +98 -0
  47. package/package.json +10 -6
  48. package/src/components/auto-datatable/auto-datatable.css +4 -4
  49. package/src/components/modal-alert/modal-alert.css +5 -5
  50. package/src/components/{overlay.js → overlay/overlay.js} +1 -1
  51. package/src/{css/dialog-content.css → components/popup-page/popup-page.css} +1 -1
  52. package/src/components/{dialog-content.js → popup-page/popup-page.js} +6 -4
  53. package/src/components/sf-macro/sf-macro.css +7 -14
  54. package/src/css/alerts.css +3 -3
  55. package/src/css/buttons/status-buttons.css +4 -4
  56. package/src/css/forms/fieldset.css +2 -2
  57. package/src/custom-properties-default.css +24 -12
  58. package/src/icons/x.svg +1 -0
  59. package/src/web-components/simple-datatable/simple-datatable.js +2 -2
  60. package/src/web-components/simple-datatable/simple-datatable.module.css +3 -3
  61. package/src/web-components/simple-datatable/src/parse-cols.js +2 -2
  62. package/src/design-tokens/TODO.md +0 -2
  63. package/src/design-tokens/alerts.minimo.tokens.jsonc +0 -25
  64. package/src/design-tokens/size.minimo.tokens.jsonc +0 -101
  65. package/src/design-tokens-utilities/build-tokens.mjs +0 -503
  66. package/src/design-tokens-utilities/check-unresolved-custom-props.mjs +0 -131
  67. package/src/design-tokens-utilities/config-templates/tokens-config.mjs +0 -34
  68. package/src/design-tokens-utilities/readme.md +0 -12
  69. /package/{src/design-tokens → design-tokens-src}/badge.minimo.tokens.jsonc +0 -0
  70. /package/{src/design-tokens → design-tokens-src}/basic.minimo.tokens.jsonc +0 -0
  71. /package/{src/design-tokens → design-tokens-src}/btn-close.minimo.tokens.jsonc +0 -0
  72. /package/{src/design-tokens → design-tokens-src}/btn-primary.minimo.tokens.jsonc +0 -0
  73. /package/{src/design-tokens → design-tokens-src}/btn-secondary.minimo.tokens.jsonc +0 -0
  74. /package/{src/design-tokens → design-tokens-src}/btn.minimo.tokens.jsonc +0 -0
  75. /package/{src/design-tokens → design-tokens-src}/color-accent.minimo.tokens.jsonc +0 -0
  76. /package/{src/design-tokens → design-tokens-src}/color-neutral.minimo.tokens.jsonc +0 -0
  77. /package/{src/design-tokens → design-tokens-src}/color-primary.minimo.tokens.jsonc +0 -0
  78. /package/{src/design-tokens → design-tokens-src}/color-secondary.minimo.tokens.jsonc +0 -0
  79. /package/{src/components/recaptcha → design-tokens-src/components}/recaptcha.minimo.tokens.jsonc +0 -0
  80. /package/{src/components/spinner → design-tokens-src/components}/spinner.minimo.tokens.jsonc +0 -0
  81. /package/{src/components/toast → design-tokens-src/components}/toast.minimo.tokens.jsonc +0 -0
  82. /package/{src/design-tokens → design-tokens-src}/flex-grid.minimo.tokens.jsonc +0 -0
  83. /package/{src/design-tokens → design-tokens-src}/gradients-shadowes.minimo.tokens.jsonc +0 -0
  84. /package/{src/design-tokens → design-tokens-src}/headings.minimo.tokens.jsonc +0 -0
  85. /package/{src/design-tokens → design-tokens-src}/link.minimo.tokens.jsonc +0 -0
  86. /package/{src/design-tokens → design-tokens-src}/radius.minimo.tokens.jsonc +0 -0
  87. /package/{src/design-tokens → design-tokens-src}/status.minimo.tokens.jsonc +0 -0
  88. /package/{src/design-tokens → design-tokens-src}/table.minimo.tokens.jsonc +0 -0
  89. /package/{src/design-tokens → design-tokens-src}/typography.minimo.tokens.jsonc +0 -0
  90. /package/{src/design-tokens → design-tokens-src}/utility.minimo.tokens.jsonc +0 -0
  91. /package/{src/web-components/simple-datatable → design-tokens-src/web-components}/simple-datatable.minimo.tokens.jsonc +0 -0
  92. /package/{src/design-tokens → design-tokens-src}/z-index.minimo.tokens.jsonc +0 -0
  93. /package/src/{css → components/overlay}/overlay.css +0 -0
  94. /package/src/{web-components/simple-datatable/icons → icons}/arrow-down.svg +0 -0
  95. /package/src/{web-components/simple-datatable/icons → icons}/arrow-up.svg +0 -0
  96. /package/src/{web-components/simple-datatable/icons → icons}/arrows-down-up.svg +0 -0
  97. /package/src/{web-components/simple-datatable/icons → icons}/caret-left.svg +0 -0
  98. /package/src/{web-components/simple-datatable/icons → icons}/caret-right.svg +0 -0
  99. /package/src/{web-components/simple-datatable/icons → icons}/check-bold.svg +0 -0
  100. /package/src/{components/modal-alert/svg → icons}/check-circle-duotone.svg +0 -0
  101. /package/src/{components/modal-alert/svg → icons}/info-duotone.svg +0 -0
  102. /package/src/{components/modal-alert/svg → icons}/question-duotone.svg +0 -0
  103. /package/src/{components/modal-alert/svg → icons}/warning-duotone.svg +0 -0
  104. /package/src/{web-components/simple-datatable/icons → icons}/x-bold.svg +0 -0
  105. /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,66 @@
1
+
2
+
3
+ {
4
+ "sf-macro": {
5
+
6
+ "rows": {
7
+ "padding": {
8
+ "$value": "{size.xs}",
9
+ "$type": "dimension"
10
+ },
11
+ "margin": {
12
+ "block": {
13
+ "end": {
14
+ "$value": "{size.base}",
15
+ "$type": "dimension"
16
+ }
17
+ }
18
+ },
19
+ "hover": {
20
+ "background": {
21
+ "color": {
22
+ "$value": "color-mix(in srgb, {body.background.color} 95%, #000)",
23
+ "$type": "color"
24
+
25
+ }
26
+ }
27
+ },
28
+ "even": {
29
+ "background": {
30
+ "color": {
31
+ "$value": "{body.background.color}",
32
+ "$type": "color"
33
+ }
34
+ }
35
+ },
36
+ "border": {
37
+ "$type": "border",
38
+ "$value": {
39
+ "color": "{neutral.base}",
40
+ "width": "1px",
41
+ "style": "solid"
42
+ }
43
+ },
44
+ "border-radius": {
45
+ "$value": "{radius.xs}",
46
+ "$type": "dimension"
47
+ }
48
+ }, // end rows
49
+
50
+ "btn": {
51
+ "close": {
52
+ "size": {
53
+ "$value": "2rem",
54
+ "$type": "dimension"
55
+ },
56
+ "background": {
57
+ "color": {
58
+ "$value": "{body.background.color}",
59
+ "$type": "color"
60
+ }
61
+ }
62
+ }
63
+ }, // end btn
64
+
65
+ } // end sf-macro
66
+ }
@@ -269,20 +269,21 @@
269
269
  "$type": "dimension"
270
270
  }
271
271
  },
272
- "legend": {
273
- "background": {
274
- "color": {
275
- "$value": "transparent",
276
- "$type": "color"
277
- }
278
- },
272
+ },
273
+ "legend": {
274
+ "background": {
279
275
  "color": {
280
- "$value": "{text.color}",
276
+ "$value": "transparent",
281
277
  "$type": "color"
282
278
  }
279
+ },
280
+ "color": {
281
+ "$value": "{text.color}",
282
+ "$type": "color"
283
283
  }
284
284
  },
285
285
 
286
+ // blocco info finali form
286
287
  "end": {
287
288
  "margin": {
288
289
  "block": {