@massimo-cassandro/minimo 1.19.3 → 1.19.5

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.
@@ -1,13 +1,10 @@
1
1
  export default {
2
2
  accent: {
3
- 100: {
4
- $value: '#567d0d',
5
- $type: 'color'
6
- },
7
- '100-fg': {
8
- $value: '#fff',
9
- $type: 'color'
10
- }
3
+ $value: '#567d0d',
4
+ $type: 'color'
5
+ },
6
+ 'accent-fg': {
7
+ $value: '#fff',
8
+ $type: 'color'
11
9
  }
12
-
13
10
  };
@@ -1,7 +1,7 @@
1
1
  export default {
2
2
  accent: {
3
3
  color: {
4
- $value: '{accent.100}',
4
+ $value: '{accent}',
5
5
  $type: 'color'
6
6
  }
7
7
  },
@@ -6,13 +6,11 @@
6
6
  // -----------------------------------------------------------------------
7
7
  {
8
8
  "accent": {
9
- "100": {
10
- "$type": "color",
11
- "$value": "#567d0d"
12
- },
13
- "100-fg": {
14
- "$type": "color",
15
- "$value": "#fff"
16
- }
9
+ "$type": "color",
10
+ "$value": "#567d0d"
11
+ },
12
+ "accent-fg": {
13
+ "$type": "color",
14
+ "$value": "#fff"
17
15
  }
18
16
  }
@@ -5,12 +5,6 @@
5
5
  // Re-generate with: node build-tokens.mjs --config <path/to/config>
6
6
  // -----------------------------------------------------------------------
7
7
  {
8
- "accent": {
9
- "color": {
10
- "$type": "color",
11
- "$value": "{accent.100}"
12
- }
13
- },
14
8
  "text": {
15
9
  "muted": {
16
10
  "$type": "color",
@@ -22,7 +22,7 @@
22
22
  "$value": "none"
23
23
  },
24
24
  "border-radius": {
25
- "$type": "color",
25
+ "$type": "dimension",
26
26
  "$value": "{radius.xs}"
27
27
  },
28
28
  "padding": {
@@ -83,12 +83,12 @@
83
83
  "$value": "transparent"
84
84
  },
85
85
  "width": {
86
- "$type": "2px",
87
- "$value": "dimension"
86
+ "$type": "dimension",
87
+ "$value": "{btn.close.border.width}"
88
88
  },
89
89
  "radius": {
90
- "$type": "50%",
91
- "$value": "dimension"
90
+ "$type": "dimension",
91
+ "$value": "50%"
92
92
  }
93
93
  },
94
94
  "hover": {
@@ -11,7 +11,7 @@
11
11
  "background": {
12
12
  "color": {
13
13
  "$type": "color",
14
- "$value": "color-mix(in srgb, {table.thead.background.color} 90%, {accent.100})"
14
+ "$value": "color-mix(in srgb, {table.thead.background.color} 90%, {accent})"
15
15
  }
16
16
  }
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.19.3",
3
+ "version": "1.19.5",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -18,7 +18,7 @@ export default{
18
18
  },
19
19
  'border-radius': {
20
20
  $value: '{radius.xs}',
21
- $type: 'color'
21
+ $type: 'dimension'
22
22
  },
23
23
  padding: {
24
24
  block: {
@@ -81,12 +81,12 @@ export default{
81
81
  $type: 'color'
82
82
  },
83
83
  width: {
84
- $value: 'dimension',
85
- $type: '{btn.close.border.width}'
84
+ $type: 'dimension',
85
+ $value: '{btn.close.border.width}'
86
86
  },
87
87
  radius: {
88
- $value: 'dimension',
89
- $type: '50%'
88
+ $type: 'dimension',
89
+ $value: '50%'
90
90
  }
91
91
  },
92
92
 
package/src/css/text.css CHANGED
@@ -122,7 +122,7 @@ li {
122
122
  color: var(--secondary-100);
123
123
  }
124
124
  .text-accent {
125
- color: var(--accent-100);
125
+ color: var(--accent);
126
126
  }
127
127
  .text-danger {
128
128
  color: var(--status-danger-color);
@@ -1,7 +1,6 @@
1
1
  :root {
2
- --accent-100: #567d0d;
3
- --accent-100-fg: #fff;
4
- --accent-color: var(--accent-100);
2
+ --accent: #567d0d;
3
+ --accent-fg: #fff;
5
4
 
6
5
  --alert-border-radius: var(--radius-sm);
7
6
  --alert-box-shadow: 0 0 .5rem 0 oklch(0% 0 0 / .5);
@@ -275,7 +274,7 @@
275
274
  --sdt-pagination-border: var(--btn-border-width) var(--neutral-100);
276
275
  --sdt-pagination-padding-block: var(--size-xxs);
277
276
  --sdt-pagination-padding-inline: var(--size-xs);
278
- --sdt-thead-hover-background-color: color-mix(in srgb, var(--table-thead-background-color) 90%, var(--accent-100));
277
+ --sdt-thead-hover-background-color: color-mix(in srgb, var(--table-thead-background-color) 90%, var(--accent));
279
278
 
280
279
  --secondary-100: #650853;
281
280
  --secondary-100-fg: #fff;
@@ -311,8 +310,8 @@
311
310
  --snackbar-btn-close-active-icon-color: var(--snackbar-text-color);
312
311
  --snackbar-btn-close-background-color: transparent;
313
312
  --snackbar-btn-close-border-color: transparent;
314
- --snackbar-btn-close-border-radius: dimension;
315
- --snackbar-btn-close-border-width: dimension;
313
+ --snackbar-btn-close-border-radius: 50%;
314
+ --snackbar-btn-close-border-width: var(--btn-close-border-width);
316
315
  --snackbar-btn-close-focus-outline-color: color-mix(in srgb, var(--snackbar-text-color) 50%, transparent);
317
316
  --snackbar-btn-close-focus-outline-offset: .125rem;
318
317
  --snackbar-btn-close-focus-outline-width: .125rem;
@@ -4,7 +4,7 @@ export default {
4
4
  hover: {
5
5
  background: {
6
6
  color: {
7
- $value: 'color-mix(in srgb, {table.thead.background.color} 90%, {accent.100})',
7
+ $value: 'color-mix(in srgb, {table.thead.background.color} 90%, {accent})',
8
8
  $type: 'color'
9
9
  }
10
10
  }