@maggioli-design-system/styles 16.0.1 → 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 +54 -2
  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 +19 -2
  31. package/dist/css/utility-typography.css +2 -2
  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 +11 -5
  39. package/tailwind.config.js +2 -2
@@ -1,8 +1,8 @@
1
1
  /*
2
- @magma-design-system/design-tokens v14.1.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 14:52:21 GMT
5
+ Generated at Wed, 30 Sep 2026 14:38:45 GMT
6
6
  */
7
7
 
8
8
  @theme {
@@ -184,6 +184,17 @@ Generated at Mon, 08 Jun 2026 14:52:21 GMT
184
184
  --radius-4xl: 48px;
185
185
  --radius-5xl: 64px;
186
186
  --radius-full: 1000px;
187
+ --radius-squircle-3xs: 6px;
188
+ --radius-squircle-2xs: 10px;
189
+ --radius-squircle-xs: 14px;
190
+ --radius-squircle-sm: 16px;
191
+ --radius-squircle-md: 20px;
192
+ --radius-squircle-lg: 28px;
193
+ --radius-squircle-xl: 36px;
194
+ --radius-squircle-2xl: 40px;
195
+ --radius-squircle-3xl: 56px;
196
+ --radius-squircle-4xl: 80px;
197
+ --radius-squircle-5xl: 112px;
187
198
 
188
199
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
189
200
  --shadow-xs-sharp: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05);
@@ -218,6 +229,12 @@ Generated at Mon, 08 Jun 2026 14:52:21 GMT
218
229
  --shadow-highlight-weak: rgb(0 0 0 / 0.3) 0px 0px 0px 1px;
219
230
  --shadow-highlight-md: rgb(0 0 0 / 0.5) 0px 0px 0px 1px, rgb(0 0 0 / 0.3) 0px 4px 6px -1px;
220
231
  --shadow-highlight-strong: rgb(0 0 0 / 0.4) 0px 0px 0px 2px, rgb(0 0 0 / 0.65) 0px 4px 6px -1px;
232
+ --shadow-ring: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3);
233
+ --shadow-ring-2: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);
234
+ --shadow-ring-weak: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.15);
235
+ --shadow-ring-weak-2: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.15);
236
+ --shadow-ring-strong-2: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);
237
+ --shadow-ring-strong-4: 0 0 0 4px rgb(var(--tone-neutral-01) / 0.6);
221
238
  }
222
239
 
223
240
  @utility transition-cosmetic {
@@ -0,0 +1,51 @@
1
+ /*
2
+ Theming axes (issue #574, B2) - layered on top of the semantic layer
3
+ (css/semantic.css). Three INDEPENDENT axes, all driven by attributes/classes
4
+ on <html> (cross-browser; no @container style(), which is below the
5
+ browserslist floor and crashes WebKit with shadow DOM):
6
+
7
+ 1. mode (light|dark|system) -> the existing global --tone-* flip; the
8
+ semantic tokens follow it automatically (nothing to do here).
9
+ 2. data-theme-name -> a named theme retints the --magma-tint-*
10
+ block; GENERATED in build/css/themes.css from semantic.config.ts (spec 8),
11
+ shipped as dist/css/themes.css - NOT defined here.
12
+ 3. --depth (numeric 0..1) -> shadow/elevation intensity, consumed as a
13
+ scalar in calc(). NOT a true|false style query.
14
+
15
+ Supersedes projects/styles/draft/theme.css.
16
+ */
17
+
18
+ /* --------------------------------------------------------------------------
19
+ Axis 3: depth
20
+ A plain number multiplied into every elevation term. depth 1 = full
21
+ elevation, depth 0 collapses offset/blur/alpha to zero = perfectly flat.
22
+ calc()-based, so it works in every engine (Firefox/Safari included) and
23
+ inherits across shadow boundaries - no style query, no :host-context.
24
+ -------------------------------------------------------------------------- */
25
+
26
+ @property --depth {
27
+ syntax: '<number>';
28
+ inherits: true;
29
+ initial-value: 1;
30
+ }
31
+
32
+ :root {
33
+ --depth: 1;
34
+
35
+ /*
36
+ Elevation shadows for the raised / overlay surface roles. Consume with
37
+ `box-shadow: var(--mds-elevation-raised)`. Colour comes from
38
+ --magma-backdrop-color (channel triplet) so it stays themeable.
39
+ */
40
+ --mds-elevation-raised:
41
+ 0 calc(1px * var(--depth)) calc(2px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.06 * var(--depth))),
42
+ 0 calc(2px * var(--depth)) calc(8px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.08 * var(--depth)));
43
+ --mds-elevation-overlay:
44
+ 0 calc(4px * var(--depth)) calc(12px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.12 * var(--depth))),
45
+ 0 calc(8px * var(--depth)) calc(24px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.16 * var(--depth)));
46
+ }
47
+
48
+ /* Flat variant of the depth axis (set --depth directly for anything between). */
49
+ :root[data-theme-depth='flat'] {
50
+ --depth: 0;
51
+ }
@@ -0,0 +1,93 @@
1
+ /*
2
+ Named themes - retint the --magma-tint-* block per data-theme-name (spec 8).
3
+ GENERATED by scripts/semantic.ts from semantic.config.ts - do NOT edit by hand.
4
+ Contract + rationale: semantic.config.ts and SEMANTIC_COLOR_SPEC.md.
5
+ */
6
+
7
+ :root[data-theme-name='cool'] {
8
+ --magma-tint-sunken: var(--surface-porcelain-sunken);
9
+ --magma-tint-muted: var(--surface-porcelain-muted);
10
+ --magma-tint-default: var(--surface-porcelain-default);
11
+ --magma-tint-raised: var(--surface-porcelain-raised);
12
+ --magma-tint-overlay: var(--surface-porcelain-overlay);
13
+ --magma-tint-border-muted: var(--border-porcelain-muted);
14
+ --magma-tint-border-default: var(--border-porcelain-default);
15
+ --magma-tint-border-strong: var(--border-porcelain-strong);
16
+ --magma-tint-text-default: var(--text-porcelain-default);
17
+ --magma-tint-text-muted: var(--text-porcelain-muted);
18
+ --magma-tint-text-subtle: var(--text-porcelain-subtle);
19
+ --magma-tint-text-disabled: var(--text-porcelain-disabled);
20
+ --magma-tint-scale-01: var(--tone-porcelain-01);
21
+ --magma-tint-scale-02: var(--tone-porcelain-02);
22
+ --magma-tint-scale-03: var(--tone-porcelain-03);
23
+ --magma-tint-scale-04: var(--tone-porcelain-04);
24
+ --magma-tint-scale-05: var(--tone-porcelain-05);
25
+ --magma-tint-scale-06: var(--tone-porcelain-06);
26
+ --magma-tint-scale-07: var(--tone-porcelain-07);
27
+ --magma-tint-scale-08: var(--tone-porcelain-08);
28
+ --magma-tint-scale-09: var(--tone-porcelain-09);
29
+ --magma-tint-scale-10: var(--tone-porcelain-10);
30
+ }
31
+
32
+ :root[data-theme-name='cool'].pref-contrast-more {
33
+ --magma-tint-text-muted: var(--text-porcelain-default);
34
+ --magma-tint-text-subtle: var(--text-porcelain-muted);
35
+ --magma-tint-border-muted: var(--border-porcelain-default);
36
+ --magma-tint-border-default: var(--border-porcelain-strong);
37
+ --magma-tint-default: var(--tone-porcelain-seed);
38
+ }
39
+
40
+ @media (prefers-contrast: more) {
41
+ :root[data-theme-name='cool'].pref-contrast-system,
42
+ :root[data-theme-name='cool']:not([data-magma-pref]) {
43
+ --magma-tint-text-muted: var(--text-porcelain-default);
44
+ --magma-tint-text-subtle: var(--text-porcelain-muted);
45
+ --magma-tint-border-muted: var(--border-porcelain-default);
46
+ --magma-tint-border-default: var(--border-porcelain-strong);
47
+ --magma-tint-default: var(--tone-porcelain-seed);
48
+ }
49
+ }
50
+
51
+ :root[data-theme-name='warm'] {
52
+ --magma-tint-sunken: var(--surface-bisque-sunken);
53
+ --magma-tint-muted: var(--surface-bisque-muted);
54
+ --magma-tint-default: var(--surface-bisque-default);
55
+ --magma-tint-raised: var(--surface-bisque-raised);
56
+ --magma-tint-overlay: var(--surface-bisque-overlay);
57
+ --magma-tint-border-muted: var(--border-bisque-muted);
58
+ --magma-tint-border-default: var(--border-bisque-default);
59
+ --magma-tint-border-strong: var(--border-bisque-strong);
60
+ --magma-tint-text-default: var(--text-bisque-default);
61
+ --magma-tint-text-muted: var(--text-bisque-muted);
62
+ --magma-tint-text-subtle: var(--text-bisque-subtle);
63
+ --magma-tint-text-disabled: var(--text-bisque-disabled);
64
+ --magma-tint-scale-01: var(--tone-bisque-01);
65
+ --magma-tint-scale-02: var(--tone-bisque-02);
66
+ --magma-tint-scale-03: var(--tone-bisque-03);
67
+ --magma-tint-scale-04: var(--tone-bisque-04);
68
+ --magma-tint-scale-05: var(--tone-bisque-05);
69
+ --magma-tint-scale-06: var(--tone-bisque-06);
70
+ --magma-tint-scale-07: var(--tone-bisque-07);
71
+ --magma-tint-scale-08: var(--tone-bisque-08);
72
+ --magma-tint-scale-09: var(--tone-bisque-09);
73
+ --magma-tint-scale-10: var(--tone-bisque-10);
74
+ }
75
+
76
+ :root[data-theme-name='warm'].pref-contrast-more {
77
+ --magma-tint-text-muted: var(--text-bisque-default);
78
+ --magma-tint-text-subtle: var(--text-bisque-muted);
79
+ --magma-tint-border-muted: var(--border-bisque-default);
80
+ --magma-tint-border-default: var(--border-bisque-strong);
81
+ --magma-tint-default: var(--tone-bisque-seed);
82
+ }
83
+
84
+ @media (prefers-contrast: more) {
85
+ :root[data-theme-name='warm'].pref-contrast-system,
86
+ :root[data-theme-name='warm']:not([data-magma-pref]) {
87
+ --magma-tint-text-muted: var(--text-bisque-default);
88
+ --magma-tint-text-subtle: var(--text-bisque-muted);
89
+ --magma-tint-border-muted: var(--border-bisque-default);
90
+ --magma-tint-border-default: var(--border-bisque-strong);
91
+ --magma-tint-default: var(--tone-bisque-seed);
92
+ }
93
+ }