@maggioli-design-system/styles 16.0.0 → 17.0.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 (39) hide show
  1. package/README.md +55 -3
  2. package/dist/css/animations.css +2 -2
  3. package/dist/css/base.css +13 -27
  4. package/dist/css/colors-hex-brand-rnd.css +25 -25
  5. package/dist/css/colors-hex-brand.css +46 -46
  6. package/dist/css/colors-hex-default.css +502 -502
  7. package/dist/css/colors-hex-label.css +256 -256
  8. package/dist/css/colors-hex-status.css +88 -88
  9. package/dist/css/colors-hex-theme.css +271 -0
  10. package/dist/css/colors-hex-tones.css +139 -139
  11. package/dist/css/colors-hex.css +883 -631
  12. package/dist/css/colors-rgb-brand-rnd.css +25 -25
  13. package/dist/css/colors-rgb-brand.css +46 -46
  14. package/dist/css/colors-rgb-default.css +502 -502
  15. package/dist/css/colors-rgb-label.css +256 -256
  16. package/dist/css/colors-rgb-status.css +88 -88
  17. package/dist/css/colors-rgb-theme.css +271 -0
  18. package/dist/css/colors-rgb-tones.css +139 -139
  19. package/dist/css/colors-rgb.css +883 -631
  20. package/dist/css/globals.css +3156 -28
  21. package/dist/css/hydrated.css +2 -2
  22. package/dist/css/reset.css +2 -4
  23. package/dist/css/semantic.css +253 -0
  24. package/dist/css/tailwind-theme-color.css +295 -211
  25. package/dist/css/tailwind-theme-typography.css +19 -2
  26. package/dist/css/theme.css +51 -0
  27. package/dist/css/themes.css +93 -0
  28. package/dist/css/tokens.editor.css +1792 -0
  29. package/dist/css/transitions.css +2 -2
  30. package/dist/css/typography.css +237 -253
  31. package/dist/css/utility-typography.css +254 -0
  32. package/dist/tailwind/base.css +31 -23
  33. package/dist/tailwind/semantic.css +119 -0
  34. package/dist/tailwind/theme.css +3 -0
  35. package/dist/tailwind/utilities.css +1 -1
  36. package/dist/tailwind3/base.css +9 -13
  37. package/dist/tailwind3/components.css +1 -1
  38. package/package.json +12 -6
  39. package/tailwind.config.js +2 -2
package/README.md CHANGED
@@ -11,7 +11,8 @@ Use the version of this package matching the major version of [`@maggioli-design
11
11
  | magma | design-tokens | styles |
12
12
  | :--- | :--- | :--- |
13
13
  | `1.x` (before Magma 2) | `13.x` (latest `13.7.2`) | `15.x` (latest `15.11.1`) |
14
- | `2.x` and later | `>= 14` | `>= 16` |
14
+ | `2.0.0-alpha.0` to `2.0.0-beta.3` (prereleases) | `14.x` | `16.x` |
15
+ | `2.x` and later | `>= 15` | `>= 17` |
15
16
 
16
17
  ---
17
18
 
@@ -54,7 +55,7 @@ The layer order is thinked to be used with tailwindcss, so the first layer is th
54
55
  @layer overrides {
55
56
  body {
56
57
  @apply
57
- bg-tone-neutral
58
+ bg-tone-neutral-seed
58
59
  text-tone-neutral-03
59
60
  transition-colors
60
61
  duration-300
@@ -200,6 +201,55 @@ Fontsource supports [variable fonts][fontsource-var-fonts].
200
201
 
201
202
  ---
202
203
 
204
+ ### Editor autocomplete
205
+
206
+ `dist/css/tokens.editor.css` is the single file to point an editor at. It is generated,
207
+ holds every public token exactly once - the scales, motion, palette, semantic layer,
208
+ globals and the tokens of every component - with each default resolved to a literal, and
209
+ it is ordered: a scale runs from its smallest step up, a palette keeps its ramp order.
210
+
211
+ One deliberate difference from the real stylesheets: a palette token whose value is a bare
212
+ rgb triplet is written as `rgb(<triplet>)`, so an editor can show its actual color. No
213
+ editor can preview `rgb(var(--label-yellow-03))` - a triplet is not a color, and VS Code's
214
+ own color support returns nothing for that shape even when the token is in the same file.
215
+ The token itself still holds the triplet, to be read as `rgb(var(--label-yellow-03))`.
216
+
217
+ Why a generated file rather than the real stylesheets. Editors discover custom properties
218
+ by walking declarations, so the `@property` registrations that publish the `--mds-*`
219
+ component tokens and the `--magma-pref-*` switches are invisible to them. And the token
220
+ layer ships the same names several times over (the design-tokens output is copied into
221
+ this package, and every scale exists both as `:root` and as an `@theme` bridge), while
222
+ editors dedupe per file rather than across files: pointing at the sources yields four to
223
+ eight completion entries per token. One file makes that impossible.
224
+
225
+ With [CSS Var Complete][css-variable-autocomplete], in `.vscode/settings.json`:
226
+
227
+ ```json
228
+ {
229
+ "cssvar.files": [
230
+ "node_modules/@maggioli-design-system/styles/dist/css/tokens.editor.css"
231
+ ],
232
+ "cssvar.ignore": [],
233
+ "cssvar.disableSort": true
234
+ }
235
+ ```
236
+
237
+ `cssvar.ignore` defaults to `["**/node_modules/**"]` and is applied as an ignore list over
238
+ `cssvar.files`, so the path above is dropped unless you empty it. `cssvar.disableSort`
239
+ turns off the editor's own alphabetical sort and keeps the file's order, which is the
240
+ point of generating it.
241
+
242
+ Two things stay outside the file: `--private-*`, a component's internal wiring, declared
243
+ in the file that uses it where same-document completion already covers it; and the
244
+ handful of tokens Tailwind's own theme publishes (`--blur-*`, `--drop-shadow-*`, the
245
+ `--radius` steps we do not override), which Tailwind IntelliSense completes.
246
+
247
+ Never import this file. It only holds light-theme defaults, so loading it would pin every
248
+ token at the highest-priority origin and freeze theming; it is wrapped in a query that can
249
+ never match, which makes an accidental import a no-op.
250
+
251
+ ---
252
+
203
253
  ### Dist folder
204
254
 
205
255
  The `dist` folder contains the following files:
@@ -208,15 +258,17 @@ The `dist` folder contains the following files:
208
258
  | --------- | ----------- | ----------- |
209
259
  | `css` | both | `globals.css` |
210
260
  | `css` | both | `reset.css` |
261
+ | `css` | editors only, never import | `tokens.editor.css` |
211
262
  | `css` | plain css | `base.css` |
212
263
  | `css` | plain css | `colors-hex-*.css` |
264
+ | `css` | plain css | `utility-typography.css` |
213
265
  | `css` | plain css | `typography.css` |
214
266
  | `css` | tailwind or web components | `colors-rgb-*.css` |
215
267
  | `tailwind` | tailwind | `base.css` |
216
268
  | `tailwind` | tailwind components | `components.css` |
217
- | `tailwind` | tailwind typography components | `typography.css` |
218
269
 
219
270
  [mds]: https://magma.maggiolicloud.it/
271
+ [css-variable-autocomplete]: https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables
220
272
  [fontsource-var-fonts]: https://fontsource.org/docs/variable-fonts
221
273
  [tailwindcss-config]: https://gitlab.com/maggiolispa/ricerca-sviluppo-new-media/magma/design-system/-/blob/dev/projects/styles/tailwind.config.js
222
274
  [tailwindcss-doc]: https://tailwindcss.com/docs/installation
@@ -2,10 +2,10 @@
2
2
  0%,
3
3
  75%,
4
4
  100% {
5
- outline-offset: var(--magma-outline-focus-offset, 6px);
5
+ outline-offset: var(--magma-outline-focus-offset, 2px);
6
6
  }
7
7
 
8
8
  50% {
9
- outline-offset: var(--magma-outline-blur-offset, 2px);
9
+ outline-offset: var(--magma-outline-blur-offset, 6px);
10
10
  }
11
11
  }
package/dist/css/base.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer base {
4
4
  @view-transition {
@@ -11,44 +11,30 @@
11
11
  body {
12
12
  min-height: auto;
13
13
  text-box: trim-both text;
14
- font-family: var(--font-info, Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
15
14
  font-size: var(--text-size-info-detail, 1rem);
16
15
  line-height: var(--tw-leading, var(--text-size-info-detail--line-height, 1.5rem));
17
16
  font-weight: var(--tw-font-weight, var(--text-size-info-detail--font-weight, 400));
18
17
  -webkit-font-smoothing: antialiased;
19
18
  -moz-osx-font-smoothing: grayscale;
20
19
  font-family: var(--font-info, Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
21
- background-color: rgb(var(--tone-neutral));
22
- color: rgb(var(--tone-neutral-03));
20
+ background-color: rgb(var(--magma-surface-default));
21
+ color: rgb(var(--magma-text-default));
23
22
  }
24
- :root.pref-contrast-high body {
25
- color: rgb(var(--tone-neutral-01));
23
+ :root:not([data-magma-pref]),
24
+ :root.pref-mode-system {
25
+ color-scheme: light dark;
26
26
  }
27
- @media (prefers-contrast: more) {
28
- :root.pref-contrast-system body {
29
- color: rgb(var(--tone-neutral-01));
30
- }
27
+ :root.pref-mode-light {
28
+ color-scheme: light;
31
29
  }
32
- :root.pref-theme-scheme-dark {
33
- color-scheme: only dark;
30
+ :root.pref-mode-dark {
31
+ color-scheme: dark;
34
32
  }
35
33
  :root.pref-theme-scheme-light {
36
34
  color-scheme: only light;
37
35
  }
38
- :root.pref-theme-scheme-all {
39
- color-scheme: light dark;
40
- }
41
- @media (prefers-color-scheme: dark) {
42
- :root.pref-theme-system {
43
- color-scheme: dark;
44
- }
45
- }
46
- :root.pref-theme-scheme-all.pref-theme-dark {
47
- color-scheme: dark;
48
- }
49
- ::-moz-selection {
50
- background-color: var(--magma-selection-background);
51
- color: var(--magma-selection-color);
36
+ :root.pref-theme-scheme-dark {
37
+ color-scheme: only dark;
52
38
  }
53
39
  ::selection {
54
40
  background-color: var(--magma-selection-background);
@@ -76,7 +62,7 @@
76
62
  letter-spacing: var(--tracking-tight, -0.025em);
77
63
  }
78
64
  a {
79
- color: rgb(var(--theme-default-02-primary-text));
65
+ color: rgb(var(--magma-accent-emphasis));
80
66
  }
81
67
  h1,
82
68
  h2,
@@ -1,52 +1,52 @@
1
1
  /*
2
- @magma-design-system/design-tokens v14.0.0
2
+ @magma-design-system/design-tokens v15.0.0
3
3
  Generated by Style Dictionary
4
4
  Do not edit directly
5
- Generated at Mon, 08 Jun 2026 08:22:20 GMT
5
+ Generated at Wed, 30 Sep 2026 14:38:45 GMT
6
6
  */
7
7
 
8
8
  :root {
9
- --hex-brand-rnd-01: #2a2520;
10
- --hex-brand-rnd-02: #40362a;
11
- --hex-brand-rnd-03: #5b4a34;
12
- --hex-brand-rnd-04: #7e633d;
9
+ --hex-brand-rnd-01: #342d25;
10
+ --hex-brand-rnd-02: #514331;
11
+ --hex-brand-rnd-03: #6b5639;
12
+ --hex-brand-rnd-04: #8b6a40;
13
13
  --hex-brand-rnd-05: #a37a44;
14
- --hex-brand-rnd-06: #cba26c;
14
+ --hex-brand-rnd-06: #cca56f;
15
15
  --hex-brand-rnd-07: #d6bc9a;
16
16
  --hex-brand-rnd-08: #ded2c1;
17
- --hex-brand-rnd-09: #ebe7e3;
18
- --hex-brand-rnd-10: #f0eeec;
17
+ --hex-brand-rnd-09: #e5dfd6;
18
+ --hex-brand-rnd-10: #efedea;
19
19
  --hex-brand-rnd: #cba26b;
20
20
  }
21
21
 
22
- :root:not(.pref-theme-scheme-light).pref-theme-dark,
22
+ :root:not(.pref-theme-scheme-light).pref-mode-dark,
23
23
  :root.pref-theme-scheme-dark {
24
- --hex-brand-rnd-01: #f6f6f5;
25
- --hex-brand-rnd-02: #f0eeec;
26
- --hex-brand-rnd-03: #e6e1d9;
27
- --hex-brand-rnd-04: #ddcdb9;
24
+ --hex-brand-rnd-01: #f3f3f1;
25
+ --hex-brand-rnd-02: #eae6e1;
26
+ --hex-brand-rnd-03: #e2d8cc;
27
+ --hex-brand-rnd-04: #dac6ad;
28
28
  --hex-brand-rnd-05: #d4b791;
29
- --hex-brand-rnd-06: #bd8d4e;
29
+ --hex-brand-rnd-06: #bb8b4b;
30
30
  --hex-brand-rnd-07: #9e7743;
31
31
  --hex-brand-rnd-08: #7c613d;
32
- --hex-brand-rnd-09: #534532;
33
- --hex-brand-rnd-10: #453b2d;
32
+ --hex-brand-rnd-09: #655137;
33
+ --hex-brand-rnd-10: #483c2e;
34
34
  --hex-brand-rnd: #cba26b;
35
35
  }
36
36
 
37
37
  @media (prefers-color-scheme: dark) {
38
- :root:not(.pref-theme-scheme-light).pref-theme-system,
38
+ :root:not(.pref-theme-scheme-light).pref-mode-system,
39
39
  :root:not([data-magma-pref]) {
40
- --hex-brand-rnd-01: #f6f6f5;
41
- --hex-brand-rnd-02: #f0eeec;
42
- --hex-brand-rnd-03: #e6e1d9;
43
- --hex-brand-rnd-04: #ddcdb9;
40
+ --hex-brand-rnd-01: #f3f3f1;
41
+ --hex-brand-rnd-02: #eae6e1;
42
+ --hex-brand-rnd-03: #e2d8cc;
43
+ --hex-brand-rnd-04: #dac6ad;
44
44
  --hex-brand-rnd-05: #d4b791;
45
- --hex-brand-rnd-06: #bd8d4e;
45
+ --hex-brand-rnd-06: #bb8b4b;
46
46
  --hex-brand-rnd-07: #9e7743;
47
47
  --hex-brand-rnd-08: #7c613d;
48
- --hex-brand-rnd-09: #534532;
49
- --hex-brand-rnd-10: #453b2d;
48
+ --hex-brand-rnd-09: #655137;
49
+ --hex-brand-rnd-10: #483c2e;
50
50
  --hex-brand-rnd: #cba26b;
51
51
  }
52
52
  }
@@ -1,85 +1,85 @@
1
1
  /*
2
- @magma-design-system/design-tokens v14.0.0
2
+ @magma-design-system/design-tokens v15.0.0
3
3
  Generated by Style Dictionary
4
4
  Do not edit directly
5
- Generated at Mon, 08 Jun 2026 08:22:20 GMT
5
+ Generated at Wed, 30 Sep 2026 14:38:45 GMT
6
6
  */
7
7
 
8
8
  :root {
9
- --hex-brand-maggioli-01: #092252;
10
- --hex-brand-maggioli-02: #022e82;
11
- --hex-brand-maggioli-03: #013fb4;
12
- --hex-brand-maggioli-04: #125be3;
9
+ --hex-brand-maggioli-01: #052867;
10
+ --hex-brand-maggioli-02: #0039a3;
11
+ --hex-brand-maggioli-03: #074ccc;
12
+ --hex-brand-maggioli-04: #2467e7;
13
13
  --hex-brand-maggioli-05: #4a7ee0;
14
- --hex-brand-maggioli-06: #91aada;
14
+ --hex-brand-maggioli-06: #94acda;
15
15
  --hex-brand-maggioli-07: #b2c0dc;
16
16
  --hex-brand-maggioli-08: #ccd4e2;
17
- --hex-brand-maggioli-09: #e6e8ec;
18
- --hex-brand-maggioli-10: #edeef1;
17
+ --hex-brand-maggioli-09: #dce0e7;
18
+ --hex-brand-maggioli-10: #ecedf0;
19
19
  --hex-brand-maggioli: #00379e;
20
- --hex-brand-maggioli-editore-01: #182542;
21
- --hex-brand-maggioli-editore-02: #173274;
22
- --hex-brand-maggioli-editore-03: #1040b3;
23
- --hex-brand-maggioli-editore-04: #1957eb;
20
+ --hex-brand-maggioli-editore-01: #192b58;
21
+ --hex-brand-maggioli-editore-02: #123b9c;
22
+ --hex-brand-maggioli-editore-03: #0f49d2;
23
+ --hex-brand-maggioli-editore-04: #2e65e9;
24
24
  --hex-brand-maggioli-editore-05: #517de4;
25
- --hex-brand-maggioli-editore-06: #93a9df;
25
+ --hex-brand-maggioli-editore-06: #96abdf;
26
26
  --hex-brand-maggioli-editore-07: #b3c0e0;
27
27
  --hex-brand-maggioli-editore-08: #cdd3e4;
28
- --hex-brand-maggioli-editore-09: #e6e8ed;
29
- --hex-brand-maggioli-editore-10: #edeef1;
28
+ --hex-brand-maggioli-editore-09: #dcdfe8;
29
+ --hex-brand-maggioli-editore-10: #ecedf0;
30
30
  --hex-brand-maggioli-editore: #0f4ad5;
31
31
  }
32
32
 
33
- :root:not(.pref-theme-scheme-light).pref-theme-dark,
33
+ :root:not(.pref-theme-scheme-light).pref-mode-dark,
34
34
  :root.pref-theme-scheme-dark {
35
- --hex-brand-maggioli-01: #f6f6f7;
36
- --hex-brand-maggioli-02: #edeef1;
37
- --hex-brand-maggioli-03: #dee2e8;
38
- --hex-brand-maggioli-04: #c8d0e1;
35
+ --hex-brand-maggioli-01: #f2f3f4;
36
+ --hex-brand-maggioli-02: #e4e6eb;
37
+ --hex-brand-maggioli-03: #d5dae4;
38
+ --hex-brand-maggioli-04: #becade;
39
39
  --hex-brand-maggioli-05: #acbcdc;
40
- --hex-brand-maggioli-06: #7296db;
40
+ --hex-brand-maggioli-06: #6e94dc;
41
41
  --hex-brand-maggioli-07: #447ae1;
42
42
  --hex-brand-maggioli-08: #1058e0;
43
- --hex-brand-maggioli-09: #003aa7;
44
- --hex-brand-maggioli-10: #01318d;
43
+ --hex-brand-maggioli-09: #0446c3;
44
+ --hex-brand-maggioli-10: #003393;
45
45
  --hex-brand-maggioli: #00379e;
46
- --hex-brand-maggioli-editore-01: #f6f6f7;
47
- --hex-brand-maggioli-editore-02: #edeef1;
48
- --hex-brand-maggioli-editore-03: #dee2ea;
49
- --hex-brand-maggioli-editore-04: #c8d0e3;
46
+ --hex-brand-maggioli-editore-01: #f2f3f4;
47
+ --hex-brand-maggioli-editore-02: #e4e6ec;
48
+ --hex-brand-maggioli-editore-03: #d4dae6;
49
+ --hex-brand-maggioli-editore-04: #bfc9e1;
50
50
  --hex-brand-maggioli-editore-05: #acbbdf;
51
- --hex-brand-maggioli-editore-06: #7595e0;
51
+ --hex-brand-maggioli-editore-06: #7293e0;
52
52
  --hex-brand-maggioli-editore-07: #4a78e5;
53
53
  --hex-brand-maggioli-editore-08: #1454ec;
54
- --hex-brand-maggioli-editore-09: #123ca1;
55
- --hex-brand-maggioli-editore-10: #153581;
54
+ --hex-brand-maggioli-editore-09: #0f45c6;
55
+ --hex-brand-maggioli-editore-10: #153787;
56
56
  --hex-brand-maggioli-editore: #0f4ad5;
57
57
  }
58
58
 
59
59
  @media (prefers-color-scheme: dark) {
60
- :root:not(.pref-theme-scheme-light).pref-theme-system,
60
+ :root:not(.pref-theme-scheme-light).pref-mode-system,
61
61
  :root:not([data-magma-pref]) {
62
- --hex-brand-maggioli-01: #f6f6f7;
63
- --hex-brand-maggioli-02: #edeef1;
64
- --hex-brand-maggioli-03: #dee2e8;
65
- --hex-brand-maggioli-04: #c8d0e1;
62
+ --hex-brand-maggioli-01: #f2f3f4;
63
+ --hex-brand-maggioli-02: #e4e6eb;
64
+ --hex-brand-maggioli-03: #d5dae4;
65
+ --hex-brand-maggioli-04: #becade;
66
66
  --hex-brand-maggioli-05: #acbcdc;
67
- --hex-brand-maggioli-06: #7296db;
67
+ --hex-brand-maggioli-06: #6e94dc;
68
68
  --hex-brand-maggioli-07: #447ae1;
69
69
  --hex-brand-maggioli-08: #1058e0;
70
- --hex-brand-maggioli-09: #003aa7;
71
- --hex-brand-maggioli-10: #01318d;
70
+ --hex-brand-maggioli-09: #0446c3;
71
+ --hex-brand-maggioli-10: #003393;
72
72
  --hex-brand-maggioli: #00379e;
73
- --hex-brand-maggioli-editore-01: #f6f6f7;
74
- --hex-brand-maggioli-editore-02: #edeef1;
75
- --hex-brand-maggioli-editore-03: #dee2ea;
76
- --hex-brand-maggioli-editore-04: #c8d0e3;
73
+ --hex-brand-maggioli-editore-01: #f2f3f4;
74
+ --hex-brand-maggioli-editore-02: #e4e6ec;
75
+ --hex-brand-maggioli-editore-03: #d4dae6;
76
+ --hex-brand-maggioli-editore-04: #bfc9e1;
77
77
  --hex-brand-maggioli-editore-05: #acbbdf;
78
- --hex-brand-maggioli-editore-06: #7595e0;
78
+ --hex-brand-maggioli-editore-06: #7293e0;
79
79
  --hex-brand-maggioli-editore-07: #4a78e5;
80
80
  --hex-brand-maggioli-editore-08: #1454ec;
81
- --hex-brand-maggioli-editore-09: #123ca1;
82
- --hex-brand-maggioli-editore-10: #153581;
81
+ --hex-brand-maggioli-editore-09: #0f45c6;
82
+ --hex-brand-maggioli-editore-10: #153787;
83
83
  --hex-brand-maggioli-editore: #0f4ad5;
84
84
  }
85
85
  }