@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.
Files changed (99) 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/size.minimo.tokens.jsonc +105 -0
  36. package/design-tokens-utilities/build-tokens-src/config.mjs +108 -0
  37. package/design-tokens-utilities/build-tokens-src/formats/css.mjs +201 -0
  38. package/design-tokens-utilities/build-tokens-src/formats/penpot.mjs +262 -0
  39. package/design-tokens-utilities/build-tokens-src/platforms.mjs +80 -0
  40. package/design-tokens-utilities/build-tokens-src/transforms.mjs +200 -0
  41. package/design-tokens-utilities/build-tokens.mjs +114 -0
  42. package/design-tokens-utilities/check-unresolved-custom-props.mjs +137 -0
  43. package/design-tokens-utilities/readme.md +185 -0
  44. package/design-tokens-utilities/tokens-config-sample.mjs +98 -0
  45. package/package.json +10 -6
  46. package/src/components/{overlay.js → overlay/overlay.js} +1 -1
  47. package/src/{css/dialog-content.css → components/popup-page/popup-page.css} +1 -1
  48. package/src/components/{dialog-content.js → popup-page/popup-page.js} +6 -4
  49. package/src/custom-properties-default.css +5 -5
  50. package/src/icons/x.svg +1 -0
  51. package/src/web-components/simple-datatable/simple-datatable.js +2 -2
  52. package/src/web-components/simple-datatable/simple-datatable.module.css +3 -3
  53. package/src/web-components/simple-datatable/src/parse-cols.js +2 -2
  54. package/src/design-tokens/TODO.md +0 -2
  55. package/src/design-tokens/alerts.minimo.tokens.jsonc +0 -25
  56. package/src/design-tokens/size.minimo.tokens.jsonc +0 -101
  57. package/src/design-tokens-utilities/build-tokens.mjs +0 -503
  58. package/src/design-tokens-utilities/check-unresolved-custom-props.mjs +0 -131
  59. package/src/design-tokens-utilities/config-templates/tokens-config.mjs +0 -34
  60. package/src/design-tokens-utilities/readme.md +0 -12
  61. /package/{src/design-tokens → design-tokens-src}/badge.minimo.tokens.jsonc +0 -0
  62. /package/{src/design-tokens → design-tokens-src}/basic.minimo.tokens.jsonc +0 -0
  63. /package/{src/design-tokens → design-tokens-src}/btn-close.minimo.tokens.jsonc +0 -0
  64. /package/{src/design-tokens → design-tokens-src}/btn-primary.minimo.tokens.jsonc +0 -0
  65. /package/{src/design-tokens → design-tokens-src}/btn-secondary.minimo.tokens.jsonc +0 -0
  66. /package/{src/design-tokens → design-tokens-src}/btn.minimo.tokens.jsonc +0 -0
  67. /package/{src/design-tokens → design-tokens-src}/color-accent.minimo.tokens.jsonc +0 -0
  68. /package/{src/design-tokens → design-tokens-src}/color-neutral.minimo.tokens.jsonc +0 -0
  69. /package/{src/design-tokens → design-tokens-src}/color-primary.minimo.tokens.jsonc +0 -0
  70. /package/{src/design-tokens → design-tokens-src}/color-secondary.minimo.tokens.jsonc +0 -0
  71. /package/{src/components/recaptcha → design-tokens-src/components}/recaptcha.minimo.tokens.jsonc +0 -0
  72. /package/{src/components/sf-macro → design-tokens-src/components}/sf-macro.minimo.tokens.jsonc +0 -0
  73. /package/{src/components/spinner → design-tokens-src/components}/spinner.minimo.tokens.jsonc +0 -0
  74. /package/{src/components/toast → design-tokens-src/components}/toast.minimo.tokens.jsonc +0 -0
  75. /package/{src/design-tokens → design-tokens-src}/flex-grid.minimo.tokens.jsonc +0 -0
  76. /package/{src/design-tokens → design-tokens-src}/form.minimo.tokens.jsonc +0 -0
  77. /package/{src/design-tokens → design-tokens-src}/gradients-shadowes.minimo.tokens.jsonc +0 -0
  78. /package/{src/design-tokens → design-tokens-src}/headings.minimo.tokens.jsonc +0 -0
  79. /package/{src/design-tokens → design-tokens-src}/link.minimo.tokens.jsonc +0 -0
  80. /package/{src/design-tokens → design-tokens-src}/radius.minimo.tokens.jsonc +0 -0
  81. /package/{src/design-tokens → design-tokens-src}/status.minimo.tokens.jsonc +0 -0
  82. /package/{src/design-tokens → design-tokens-src}/table.minimo.tokens.jsonc +0 -0
  83. /package/{src/design-tokens → design-tokens-src}/typography.minimo.tokens.jsonc +0 -0
  84. /package/{src/design-tokens → design-tokens-src}/utility.minimo.tokens.jsonc +0 -0
  85. /package/{src/web-components/simple-datatable → design-tokens-src/web-components}/simple-datatable.minimo.tokens.jsonc +0 -0
  86. /package/{src/design-tokens → design-tokens-src}/z-index.minimo.tokens.jsonc +0 -0
  87. /package/src/{css → components/overlay}/overlay.css +0 -0
  88. /package/src/{web-components/simple-datatable/icons → icons}/arrow-down.svg +0 -0
  89. /package/src/{web-components/simple-datatable/icons → icons}/arrow-up.svg +0 -0
  90. /package/src/{web-components/simple-datatable/icons → icons}/arrows-down-up.svg +0 -0
  91. /package/src/{web-components/simple-datatable/icons → icons}/caret-left.svg +0 -0
  92. /package/src/{web-components/simple-datatable/icons → icons}/caret-right.svg +0 -0
  93. /package/src/{web-components/simple-datatable/icons → icons}/check-bold.svg +0 -0
  94. /package/src/{components/modal-alert/svg → icons}/check-circle-duotone.svg +0 -0
  95. /package/src/{components/modal-alert/svg → icons}/info-duotone.svg +0 -0
  96. /package/src/{components/modal-alert/svg → icons}/question-duotone.svg +0 -0
  97. /package/src/{components/modal-alert/svg → icons}/warning-duotone.svg +0 -0
  98. /package/src/{web-components/simple-datatable/icons → icons}/x-bold.svg +0 -0
  99. /package/src/{components/modal-alert/svg → icons}/x-circle-duotone.svg +0 -0
@@ -0,0 +1,98 @@
1
+ // tokens-config-sample.mjs
2
+ // Sample project config for build-tokens.mjs and check-unresolved-custom-props.mjs.
3
+ // Copy and adapt this file for each project; pass it via the --config flag.
4
+ //
5
+ // All paths are relative to this config file (not to the CWD).
6
+
7
+ // import { homedir } from 'os';
8
+ import path from 'path';
9
+
10
+ // Path to the design token source files.
11
+ // You can use an absolute path, a relative path, or build it programmatically.
12
+
13
+ // Example using a local node_modules package (JS source files)
14
+ const minimo_path = '../../node_modules/@massimo-cassandro/minimo/design-tokens-src';
15
+
16
+ // Alternative: pre-built JSONC files from the same package
17
+ // const minimo_path = '../../node_modules/@massimo-cassandro/minimo/design-tokens';
18
+
19
+ // For local testing
20
+ // const minimo_path = path.resolve(homedir(), 'Sites/minimo/src');
21
+
22
+ const config = {
23
+
24
+ // ---------------------------------------------------------------------------
25
+ // build-tokens.mjs settings
26
+ // ---------------------------------------------------------------------------
27
+
28
+ // Path to the stylelint config used to lint the generated CSS file
29
+ stylelintConfigPath: '../../stylelint.config.mjs',
30
+
31
+ // Output directory for the CSS file generated by Style Dictionary
32
+ buildPath: '../src/css',
33
+
34
+ // Output filename for the generated CSS file
35
+ destFile: 'custom-properties.css',
36
+
37
+ // Source token files — accepts paths, globs, or a mix of both.
38
+ // Supported formats: .json, .jsonc, .mjs (must export a DTCG-compliant default object)
39
+ //
40
+ // WARNING: do not use path.join() to build glob patterns — it may corrupt
41
+ // the pattern syntax. Use template literals instead:
42
+ // OK: `${minimo_path}/**/*.{json,mjs}`
43
+ // NO: path.join(minimo_path, '/**/*.{json,mjs}')
44
+ source: [
45
+ `${minimo_path}/**/*.{jsonc,json,mjs}`,
46
+ './project-tokens/*.jsonc',
47
+
48
+ // optional extra token source (in this example, openProps, https://open-props.style/)
49
+ // '../../node_modules/open-props/open-props.style-dictionary-tokens.json',
50
+ ],
51
+
52
+ // ---------------------------------------------------------------------------
53
+ // Optional design tokens output
54
+ // Generates one or more json(c) files in addition to the CSS output file, for use
55
+ // in Penpot or Figma projects or as an alternative to the .mjs source files
56
+ // ---------------------------------------------------------------------------
57
+ // Output format for Penpot token files: 'jsonc' or 'json'
58
+ // 'jsonc' -> adds a generated-file disclaimer header, uses .jsonc extension
59
+ // 'json' -> plain JSON, no disclaimer
60
+ penpotFormat: 'jsonc',
61
+
62
+ // Output directory for the Penpot design token files.
63
+ // Set to null (or omit) to disable json output entirely.
64
+ penpotBuildPath: './path/to/generated/design-tokens-dir',
65
+
66
+ // Base name (without extension) for the aggregated Penpot output file.
67
+ // The extension is added automatically based on penpotFormat.
68
+ // Set to null (or omit) to generate one file per .mjs source file instead.
69
+ penpotDestFile: 'tokens',
70
+
71
+ // How to handle math expressions in dimension token $values (e.g. "{size.base} * .25"):
72
+ // 'keep' write the expression unchanged
73
+ // 'calc' — wrap in CSS calc(): "calc({size.base} * .25)"
74
+ // 'resolve' — (default) evaluate numerically, inheriting the unit from the first referenced token
75
+ // e.g. {size.base} = 16px, "{size.base} * .25" -> "4px"
76
+ penpotExpressions: 'resolve',
77
+
78
+ // ---------------------------------------------------------------------------
79
+ // check-unresolved-custom-props.mjs settings
80
+ // ---------------------------------------------------------------------------
81
+
82
+ // Additional CSS files that define custom properties used in the project
83
+ // but not generated by build-tokens (e.g. third-party libraries)
84
+ extra_custom_props_files: [
85
+ // '../../node_modules/open-props/open-props.min.css'
86
+ ],
87
+
88
+ // Directory containing the CSS files to scan for unresolved custom properties
89
+ dir_to_check: '../../src',
90
+
91
+ // Regular expressions for custom property names to exclude from the check.
92
+ // Useful for intentionally private/internal props (e.g. prefixed with --_).
93
+ exclude_pattern: [
94
+ /^--_/,
95
+ ],
96
+ };
97
+
98
+ export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "description": "Light css framework",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/massimo-cassandro/minimo#readme",
@@ -8,8 +8,8 @@
8
8
  "url": "https://github.com/massimo-cassandro/minimo/issues"
9
9
  },
10
10
  "bin": {
11
- "buildTokens": "./src/design-tokens-utilities/build-tokens.mjs",
12
- "checkUnresolvedProps": "./src/design-tokens-utilities/check-unresolved-custom-props.mjs"
11
+ "buildTokens": "./design-tokens-utilities/build-tokens.mjs",
12
+ "checkUnresolvedProps": "./design-tokens-utilities/check-unresolved-custom-props.mjs"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -19,8 +19,8 @@
19
19
  "UPD-version": "npx update-version # --config=./dev-utilities.config.mjs",
20
20
  "upd@m": "npx upd@m",
21
21
  "npm-publish": "npm publish",
22
- "build-tokens": "node ./src/design-tokens-utilities/build-tokens.mjs --config ./test/tokens-test/tokens-config.mjs",
23
- "check unresolved props": "node ./src/design-tokens-utilities/check-unresolved-custom-props.mjs --config ./test/tokens-test/tokens-config.mjs"
22
+ "build-tokens": "node ./design-tokens-utilities/build-tokens.mjs --config ./tokens-config.mjs",
23
+ "check unresolved props": "node ./design-tokens-utilities/check-unresolved-custom-props.mjs --config ./tokens-config.mjs"
24
24
  },
25
25
  "license": "MIT",
26
26
  "author": "Massimo Cassandro",
@@ -29,10 +29,14 @@
29
29
  },
30
30
  "main": "./src/index.js",
31
31
  "files": [
32
- "src/**/*.{js,mjs,css,svg,tokens.json,tokens.jsonc,md}"
32
+ "src/**/*.{js,mjs,css,svg,md}",
33
+ "design-tokens/**/*.{tokens.json,tokens.jsonc}",
34
+ "design-tokens-src/**/*.{tokens.json,tokens.jsonc,mjs,js,md}",
35
+ "design-tokens-utilities/**/*.{mjs,md}"
33
36
  ],
34
37
  "devDependencies": {
35
38
  "@massimo-cassandro/dev-updater": "^3.0.3",
39
+ "@massimo-cassandro/eslint-config": "^3.0.6",
36
40
  "@massimo-cassandro/stylelint-config": "^2.3.4",
37
41
  "style-dictionary": "^5.4.0"
38
42
  }
@@ -1,4 +1,4 @@
1
- // import './overlay.css'; incorporato nel css principale
1
+ import './overlay.css';
2
2
 
3
3
  export function overlay(context = document.body, scroll_lock = false) {
4
4
  context.insertAdjacentHTML('beforeend', '<div class="overlay"/>');
@@ -37,7 +37,7 @@
37
37
  aspect-ratio: 1;
38
38
  padding: 4px;
39
39
  background-color: var(--body-background-color);
40
- border: 1px solid var(--gray-4);
40
+ border: 1px solid var(--neutral-base);
41
41
  border-radius: 50%;
42
42
  box-shadow: var(--shadow-3);
43
43
 
@@ -1,6 +1,8 @@
1
- import './dialog-content.css';
2
- import x_icon from '@icone/x.svg?inline';
3
- import { spinner } from './spinner/spinner';
1
+ // TODO completare
2
+
3
+ import './popup-page.css';
4
+ import xIcon from '@icone/x.svg?inline';
5
+ import { spinner } from '../spinner/spinner';
4
6
  /**
5
7
  `indicator_class`: classe da aggiungere al wrapper per indicare in modo univoco il dialog
6
8
  */
@@ -9,7 +11,7 @@ export function content_dialog_markup(indicator_class) {
9
11
  return `<dialog class="${indicator_class} content-dialog">` +
10
12
  '<div class="content-dialog-inner">' +
11
13
  '<div class="content-dialog-close">' +
12
- `<button type="button" class="btn-reset content-dialog-close-btn" aria-label="Chiudi finestra">${x_icon}</button>` +
14
+ `<button type="button" class="btn-reset content-dialog-close-btn" aria-label="Chiudi finestra">${xIcon}</button>` +
13
15
  '</div>' +
14
16
  '<div class="content-dialog-body"></div>' +
15
17
  '</div>'+
@@ -44,16 +44,16 @@
44
44
  --btn-md-padding-inline: var(--size-sm);
45
45
  --btn-padding-block: var(--size-xs);
46
46
  --btn-padding-inline: var(--size-base);
47
- --btn-primary-active-background-color: color-mix(in srgb, var(--btn-primary-background-color) 60%, #000);
47
+ --btn-primary-active-background-color: calc(color-mix(in srgb, var(--btn-primary-background-color) 60%, #000) ;);
48
48
  --btn-primary-active-border-color: var(--btn-primary-active-background-color);
49
49
  --btn-primary-active-color: var(--btn-primary-color);
50
50
  --btn-primary-background-color: var(--primary-base);
51
51
  --btn-primary-border-color: var(--btn-primary-background-color);
52
52
  --btn-primary-color: var(--primary-on-base);
53
- --btn-primary-focus-outline-color: color-mix(in srgb, var(--btn-primary-background-color) 60%, transparent);
53
+ --btn-primary-focus-outline-color: calc(color-mix(in srgb, var(--btn-primary-background-color) 60%, transparent) ;);
54
54
  --btn-primary-hollow-background-color: var(--btn-primary-color);
55
55
  --btn-primary-hollow-color: var(--btn-primary-background-color);
56
- --btn-primary-hollow-hover-background-color: color-mix(in srgb, var(--btn-primary-hollow-color) 20%, transparent);
56
+ --btn-primary-hollow-hover-background-color: calc(color-mix(in srgb, var(--btn-primary-hollow-color) 20%, transparent) ;);
57
57
  --btn-primary-hollow-hover-color: var(--btn-primary-hollow-color);
58
58
  --btn-primary-hover-background-color: var(--btn-primary-color);
59
59
  --btn-primary-hover-border-color: var(--btn-primary-hover-color);
@@ -181,7 +181,7 @@
181
181
  --sdt-pagination-border: var(--btn-border-width) var(--neutral-base);
182
182
  --sdt-pagination-padding-block: var(--size-xxs);
183
183
  --sdt-pagination-padding-inline: var(--size-xs);
184
- --sdt-thead-hover-background-color: color-mix(in srgb, var(--table-thead-background-color) 90%, var(--accent-base));
184
+ --sdt-thead-hover-background-color: calc(color-mix(in srgb, var(--table-thead-background-color) 90%, var(--accent-base)));
185
185
  --secondary-base: #650853;
186
186
  --secondary-on-base: #fff;
187
187
  --sf-macro-btn-close-background-color: var(--body-background-color);
@@ -189,7 +189,7 @@
189
189
  --sf-macro-rows-border: 1px solid var(--neutral-base);
190
190
  --sf-macro-rows-border-radius: var(--radius-xs);
191
191
  --sf-macro-rows-even-background-color: var(--body-background-color);
192
- --sf-macro-rows-hover-background-color: color-mix(in srgb, var(--body-background-color) 95%, #000);
192
+ --sf-macro-rows-hover-background-color: calc(color-mix(in srgb, var(--body-background-color) 95%, #000));
193
193
  --sf-macro-rows-margin-block-end: var(--size-base);
194
194
  --sf-macro-rows-padding: var(--size-xs);
195
195
  --size-2xl: 3rem;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path></svg>
@@ -6,8 +6,8 @@ import { parseCols } from './src/parse-cols.js';
6
6
 
7
7
  import * as styles from './simple-datatable.module.css';
8
8
 
9
- import caretLeftIcon from './icons/caret-left.svg?inline';
10
- import caretRightIcon from './icons/caret-right.svg?inline';
9
+ import caretLeftIcon from '../../icons/caret-left.svg?inline';
10
+ import caretRightIcon from '../../icons/caret-right.svg?inline';
11
11
 
12
12
  // TODO possibilità di definizione cols anche da js. In questo caso, in presenza ANCHE dell'attributo, deve prevalere quest'ultimo
13
13
 
@@ -80,19 +80,19 @@
80
80
 
81
81
  &:not(.sortAscending):not(.sortDescending){
82
82
  .sortBtn::after {
83
- content: url('./icons/arrows-down-up.svg?cssInline');
83
+ content: url('../../icons/arrows-down-up.svg?cssInline');
84
84
  opacity: .4;
85
85
  }
86
86
  }
87
87
  }
88
88
  .sortAscending {
89
89
  .sortBtn::after {
90
- content: url('./icons/arrow-up.svg?cssInline');
90
+ content: url('../../icons/arrow-up.svg?cssInline');
91
91
  }
92
92
  }
93
93
  .sortDescending {
94
94
  .sortBtn::after {
95
- content: url('./icons/arrow-down.svg?cssInline');
95
+ content: url('../../icons/arrow-down.svg?cssInline');
96
96
  }
97
97
  }
98
98
 
@@ -6,8 +6,8 @@ import { classnames } from '@massimo-cassandro/js-utilities/index.js';
6
6
 
7
7
  import * as styles from '../simple-datatable.module.css';
8
8
 
9
- import checkIcon from '../icons/check-bold.svg?inline';
10
- import xIcon from '../icons/x-bold.svg?inline';
9
+ import checkIcon from '../../../icons/check-bold.svg?inline';
10
+ import xIcon from '../../../icons/x-bold.svg?inline';
11
11
 
12
12
  // col_obj è l'oggetto che descrive una singola colonna del datatable
13
13
  // vine utilizzato per produrre l'oggetto columns di simple-datatable
@@ -1,2 +0,0 @@
1
- * conversione in js?
2
- * automatizzare la creazione di proprietà ricorrenti (es il padding)
@@ -1,25 +0,0 @@
1
- {
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
- }
@@ -1,101 +0,0 @@
1
- {
2
-
3
-
4
- // in attesa di modifica dello script per il parser automatico delle espressioni
5
- // NB: "$type": "string" necessario, dimension converte i valori come se fossero px
6
- "size": {
7
- "xs": {
8
- "$value": ".5rem",
9
- "$type": "dimension",
10
- "$description": ""
11
- },
12
- "md": {
13
- "$value": "1.2rem",
14
- "$type": "dimension",
15
- "$description": ""
16
- },
17
- "3xl": {
18
- "$value": "4rem",
19
- "$type": "dimension",
20
- "$description": ""
21
- },
22
- "2xl": {
23
- "$value": "3rem",
24
- "$type": "dimension",
25
- "$description": ""
26
- },
27
- "base": {
28
- "$value": "1rem",
29
- "$type": "dimension",
30
- "$description": ""
31
- },
32
- "lg": {
33
- "$value": "1.5rem",
34
- "$type": "dimension",
35
- "$description": ""
36
- },
37
- "xxs": {
38
- "$value": ".25rem",
39
- "$type": "dimension",
40
- "$description": ""
41
- },
42
- "xl": {
43
- "$value": "2rem",
44
- "$type": "dimension",
45
- "$description": ""
46
- },
47
- "sm": {
48
- "$value": ".75rem",
49
- "$type": "dimension",
50
- "$description": ""
51
- }
52
- },
53
-
54
- // "size": {
55
- // "xxs": {
56
- // "$value": "{size.base} * .25",
57
- // "$type": "dimension",
58
- // "$description": ""
59
- // },
60
- // "xs": {
61
- // "$value": "{size.base} * .5",
62
- // "$type": "dimension",
63
- // "$description": ""
64
- // },
65
- // "sm": {
66
- // "$value": "{size.base} * .75",
67
- // "$type": "dimension",
68
- // "$description": ""
69
- // },
70
- // "base": {
71
- // "$value": "1rem",
72
- // "$type": "dimension",
73
- // "$description": ""
74
- // },
75
- // "md": {
76
- // "$value": "{size.base} * 1.2",
77
- // "$type": "dimension",
78
- // "$description": ""
79
- // },
80
- // "lg": {
81
- // "$value": "{size.base} * 1.5",
82
- // "$type": "dimension",
83
- // "$description": ""
84
- // },
85
- // "xl": {
86
- // "$value": "{size.base} * 2",
87
- // "$type": "dimension",
88
- // "$description": ""
89
- // },
90
- // "2xl": {
91
- // "$value": "{size.base} * 3",
92
- // "$type": "dimension",
93
- // "$description": ""
94
- // },
95
- // "3xl": {
96
- // "$value": "{size.base} * 4",
97
- // "$type": "dimension",
98
- // "$description": ""
99
- // }
100
- // }
101
- }