@maggioli-design-system/styles 16.0.1 → 17.0.1
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.
- package/README.md +142 -85
- package/dist/css/animations.css +2 -2
- package/dist/css/base.css +13 -27
- package/dist/css/colors-hex-brand-rnd.css +25 -25
- package/dist/css/colors-hex-brand.css +46 -46
- package/dist/css/colors-hex-default.css +502 -502
- package/dist/css/colors-hex-label.css +256 -256
- package/dist/css/colors-hex-status.css +88 -88
- package/dist/css/colors-hex-theme.css +271 -0
- package/dist/css/colors-hex-tones.css +139 -139
- package/dist/css/colors-hex.css +883 -631
- package/dist/css/colors-rgb-brand-rnd.css +25 -25
- package/dist/css/colors-rgb-brand.css +46 -46
- package/dist/css/colors-rgb-default.css +502 -502
- package/dist/css/colors-rgb-label.css +256 -256
- package/dist/css/colors-rgb-status.css +88 -88
- package/dist/css/colors-rgb-theme.css +271 -0
- package/dist/css/colors-rgb-tones.css +139 -139
- package/dist/css/colors-rgb.css +883 -631
- package/dist/css/globals.css +3156 -28
- package/dist/css/hydrated.css +2 -2
- package/dist/css/reset.css +4 -6
- package/dist/css/semantic.css +253 -0
- package/dist/css/tailwind-theme-color.css +295 -211
- package/dist/css/tailwind-theme-typography.css +19 -2
- package/dist/css/theme.css +51 -0
- package/dist/css/themes.css +93 -0
- package/dist/css/tokens.editor.css +1792 -0
- package/dist/css/transitions.css +2 -2
- package/dist/css/typography.css +19 -2
- package/dist/css/utility-typography.css +2 -2
- package/dist/tailwind/base.css +31 -23
- package/dist/tailwind/semantic.css +119 -0
- package/dist/tailwind/theme.css +3 -0
- package/dist/tailwind/utilities.css +1 -1
- package/dist/tailwind3/base.css +9 -13
- package/dist/tailwind3/components.css +1 -1
- package/package.json +13 -7
- package/tailwind.config.js +2 -2
package/dist/css/transitions.css
CHANGED
package/dist/css/typography.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@magma-design-system/design-tokens
|
|
2
|
+
@magma-design-system/design-tokens v15.0.1
|
|
3
3
|
Generated by Style Dictionary
|
|
4
4
|
Do not edit directly
|
|
5
|
-
Generated at
|
|
5
|
+
Generated at Sat, 10 Oct 2026 11:46:08 GMT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
:root {
|
|
@@ -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,4 +229,10 @@ 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
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer utilities {
|
|
4
4
|
.focus-zoom {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
.focus-zoom--light.focus-zoom--focused,
|
|
19
19
|
.focus-zoom--light:focus-visible {
|
|
20
|
-
--magma-outline-blur: 2px solid rgb(var(--
|
|
20
|
+
--magma-outline-blur: 2px solid rgb(var(--magma-text-on-emphasis));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
.typography-title-h1 {
|
package/dist/tailwind/base.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@reference "@maggioli-design-system/design-tokens/dist/css/tailwind-theme-typography.css";
|
|
3
3
|
|
|
4
4
|
@layer base {
|
|
5
|
+
|
|
5
6
|
@view-transition {
|
|
6
7
|
navigation: var(--magma-view-transition-navigation, auto);
|
|
7
8
|
}
|
|
@@ -11,44 +12,45 @@
|
|
|
11
12
|
transition-timing-function: var(--ease-out);
|
|
12
13
|
}
|
|
13
14
|
|
|
15
|
+
/* No contrast twin: `text-default` is already the strongest step of the family,
|
|
16
|
+
* and the two rules that used to sit here keyed off `pref-contrast-high`, a
|
|
17
|
+
* class no controller writes, and off a hardcoded `--tone-neutral-01` that
|
|
18
|
+
* resolves to the very same value in both modes. */
|
|
19
|
+
|
|
14
20
|
body {
|
|
15
21
|
@apply font-info
|
|
16
22
|
text-info-detail;
|
|
17
23
|
|
|
18
|
-
background-color: rgb(var(--
|
|
19
|
-
color: rgb(var(--
|
|
24
|
+
background-color: rgb(var(--magma-surface-default));
|
|
25
|
+
color: rgb(var(--magma-text-default));
|
|
20
26
|
}
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
/* color-scheme follows the palette, so the browser's own UI (scrollbars, form
|
|
29
|
+
* controls, autofill) matches the theme. The MODE comes first; a theme that
|
|
30
|
+
* only exists in one scheme (`pref-theme-scheme-light|dark`) comes after and
|
|
31
|
+
* wins, exactly as it overrides the mode in the palette. All the selectors have
|
|
32
|
+
* the same specificity, so the source order is the rule. */
|
|
33
|
+
|
|
34
|
+
/* no controller: the palette follows the OS, and so does the browser */
|
|
35
|
+
:root:not([data-magma-pref]),
|
|
36
|
+
:root.pref-mode-system {
|
|
37
|
+
color-scheme: light dark;
|
|
24
38
|
}
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
:
|
|
28
|
-
color: rgb(var(--tone-neutral-01));
|
|
29
|
-
}
|
|
40
|
+
:root.pref-mode-light {
|
|
41
|
+
color-scheme: light;
|
|
30
42
|
}
|
|
31
43
|
|
|
32
|
-
:root.pref-
|
|
33
|
-
color-scheme:
|
|
44
|
+
:root.pref-mode-dark {
|
|
45
|
+
color-scheme: dark;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
:root.pref-theme-scheme-light {
|
|
37
49
|
color-scheme: only light;
|
|
38
50
|
}
|
|
39
51
|
|
|
40
|
-
:root.pref-theme-scheme-
|
|
41
|
-
color-scheme:
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media (prefers-color-scheme: dark) {
|
|
45
|
-
:root.pref-theme-system {
|
|
46
|
-
color-scheme: dark;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
:root.pref-theme-scheme-all.pref-theme-dark {
|
|
51
|
-
color-scheme: dark;
|
|
52
|
+
:root.pref-theme-scheme-dark {
|
|
53
|
+
color-scheme: only dark;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
::selection {
|
|
@@ -69,7 +71,12 @@
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
a {
|
|
72
|
-
|
|
74
|
+
|
|
75
|
+
/* `--theme-default-02-primary-text` was defined nowhere, so the declaration
|
|
76
|
+
* was invalid at computed-value time and a link inherited the body colour.
|
|
77
|
+
* `accent-emphasis`, not `accent-fg`: 5.04:1 on white and 4.50:1 on the page
|
|
78
|
+
* surface, where fg sits at 3.92 and 3.51. */
|
|
79
|
+
color: rgb(var(--magma-accent-emphasis));
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
h1,
|
|
@@ -86,6 +93,7 @@
|
|
|
86
93
|
}
|
|
87
94
|
|
|
88
95
|
.hydrated {
|
|
96
|
+
|
|
89
97
|
/*
|
|
90
98
|
Revert all styles for hydrated web components
|
|
91
99
|
to avoid tailwind base unwanted overrides
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Tailwind bridge for the semantic color layer.
|
|
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
|
+
@theme {
|
|
8
|
+
--color-surface-sunken: rgb(var(--magma-surface-sunken));
|
|
9
|
+
--color-surface-muted: rgb(var(--magma-surface-muted));
|
|
10
|
+
--color-surface-default: rgb(var(--magma-surface-default));
|
|
11
|
+
--color-surface-raised: rgb(var(--magma-surface-raised));
|
|
12
|
+
--color-surface-overlay: rgb(var(--magma-surface-overlay));
|
|
13
|
+
--color-wash-soft: rgb(var(--magma-wash-soft));
|
|
14
|
+
--color-wash-base: rgb(var(--magma-wash-base));
|
|
15
|
+
--color-wash-strong: rgb(var(--magma-wash-strong));
|
|
16
|
+
--color-shadow-ink: rgb(var(--magma-shadow-ink));
|
|
17
|
+
--color-fg-default: rgb(var(--magma-text-default));
|
|
18
|
+
--color-fg-muted: rgb(var(--magma-text-muted));
|
|
19
|
+
--color-fg-subtle: rgb(var(--magma-text-subtle));
|
|
20
|
+
--color-fg-disabled: rgb(var(--magma-text-disabled));
|
|
21
|
+
--color-fg-on-emphasis: rgb(var(--magma-text-on-emphasis));
|
|
22
|
+
--color-border-muted: rgb(var(--magma-border-muted));
|
|
23
|
+
--color-border-default: rgb(var(--magma-border-default));
|
|
24
|
+
--color-border-strong: rgb(var(--magma-border-strong));
|
|
25
|
+
--color-border-focus: rgb(var(--magma-border-focus));
|
|
26
|
+
--color-info-wash-soft: rgb(var(--magma-info-wash-soft));
|
|
27
|
+
--color-info-wash-base: rgb(var(--magma-info-wash-base));
|
|
28
|
+
--color-info-wash-strong: rgb(var(--magma-info-wash-strong));
|
|
29
|
+
--color-info-fg-default: rgb(var(--magma-info-text-default));
|
|
30
|
+
--color-info-fg-muted: rgb(var(--magma-info-text-muted));
|
|
31
|
+
--color-info-fg-subtle: rgb(var(--magma-info-text-subtle));
|
|
32
|
+
--color-info-fg-disabled: rgb(var(--magma-info-text-disabled));
|
|
33
|
+
--color-info-border-muted: rgb(var(--magma-info-border-muted));
|
|
34
|
+
--color-info-border-default: rgb(var(--magma-info-border-default));
|
|
35
|
+
--color-info-border-strong: rgb(var(--magma-info-border-strong));
|
|
36
|
+
--color-info-emphasis: rgb(var(--magma-info-emphasis));
|
|
37
|
+
--color-info-emphasis-hover: rgb(var(--magma-info-emphasis-hover));
|
|
38
|
+
--color-info-emphasis-active: rgb(var(--magma-info-emphasis-active));
|
|
39
|
+
--color-info-on-emphasis: rgb(var(--magma-info-on-emphasis));
|
|
40
|
+
--color-info-surface: rgb(var(--magma-info-surface));
|
|
41
|
+
--color-info-fg: rgb(var(--magma-info-fg));
|
|
42
|
+
--color-info-border: rgb(var(--magma-info-border));
|
|
43
|
+
--color-success-wash-soft: rgb(var(--magma-success-wash-soft));
|
|
44
|
+
--color-success-wash-base: rgb(var(--magma-success-wash-base));
|
|
45
|
+
--color-success-wash-strong: rgb(var(--magma-success-wash-strong));
|
|
46
|
+
--color-success-fg-default: rgb(var(--magma-success-text-default));
|
|
47
|
+
--color-success-fg-muted: rgb(var(--magma-success-text-muted));
|
|
48
|
+
--color-success-fg-subtle: rgb(var(--magma-success-text-subtle));
|
|
49
|
+
--color-success-fg-disabled: rgb(var(--magma-success-text-disabled));
|
|
50
|
+
--color-success-border-muted: rgb(var(--magma-success-border-muted));
|
|
51
|
+
--color-success-border-default: rgb(var(--magma-success-border-default));
|
|
52
|
+
--color-success-border-strong: rgb(var(--magma-success-border-strong));
|
|
53
|
+
--color-success-emphasis: rgb(var(--magma-success-emphasis));
|
|
54
|
+
--color-success-emphasis-hover: rgb(var(--magma-success-emphasis-hover));
|
|
55
|
+
--color-success-emphasis-active: rgb(var(--magma-success-emphasis-active));
|
|
56
|
+
--color-success-on-emphasis: rgb(var(--magma-success-on-emphasis));
|
|
57
|
+
--color-success-surface: rgb(var(--magma-success-surface));
|
|
58
|
+
--color-success-fg: rgb(var(--magma-success-fg));
|
|
59
|
+
--color-success-border: rgb(var(--magma-success-border));
|
|
60
|
+
--color-warning-wash-soft: rgb(var(--magma-warning-wash-soft));
|
|
61
|
+
--color-warning-wash-base: rgb(var(--magma-warning-wash-base));
|
|
62
|
+
--color-warning-wash-strong: rgb(var(--magma-warning-wash-strong));
|
|
63
|
+
--color-warning-fg-default: rgb(var(--magma-warning-text-default));
|
|
64
|
+
--color-warning-fg-muted: rgb(var(--magma-warning-text-muted));
|
|
65
|
+
--color-warning-fg-subtle: rgb(var(--magma-warning-text-subtle));
|
|
66
|
+
--color-warning-fg-disabled: rgb(var(--magma-warning-text-disabled));
|
|
67
|
+
--color-warning-border-muted: rgb(var(--magma-warning-border-muted));
|
|
68
|
+
--color-warning-border-default: rgb(var(--magma-warning-border-default));
|
|
69
|
+
--color-warning-border-strong: rgb(var(--magma-warning-border-strong));
|
|
70
|
+
--color-warning-emphasis: rgb(var(--magma-warning-emphasis));
|
|
71
|
+
--color-warning-emphasis-hover: rgb(var(--magma-warning-emphasis-hover));
|
|
72
|
+
--color-warning-emphasis-active: rgb(var(--magma-warning-emphasis-active));
|
|
73
|
+
--color-warning-on-emphasis: rgb(var(--magma-warning-on-emphasis));
|
|
74
|
+
--color-warning-surface: rgb(var(--magma-warning-surface));
|
|
75
|
+
--color-warning-fg: rgb(var(--magma-warning-fg));
|
|
76
|
+
--color-warning-border: rgb(var(--magma-warning-border));
|
|
77
|
+
--color-danger-wash-soft: rgb(var(--magma-danger-wash-soft));
|
|
78
|
+
--color-danger-wash-base: rgb(var(--magma-danger-wash-base));
|
|
79
|
+
--color-danger-wash-strong: rgb(var(--magma-danger-wash-strong));
|
|
80
|
+
--color-danger-fg-default: rgb(var(--magma-danger-text-default));
|
|
81
|
+
--color-danger-fg-muted: rgb(var(--magma-danger-text-muted));
|
|
82
|
+
--color-danger-fg-subtle: rgb(var(--magma-danger-text-subtle));
|
|
83
|
+
--color-danger-fg-disabled: rgb(var(--magma-danger-text-disabled));
|
|
84
|
+
--color-danger-border-muted: rgb(var(--magma-danger-border-muted));
|
|
85
|
+
--color-danger-border-default: rgb(var(--magma-danger-border-default));
|
|
86
|
+
--color-danger-border-strong: rgb(var(--magma-danger-border-strong));
|
|
87
|
+
--color-danger-emphasis: rgb(var(--magma-danger-emphasis));
|
|
88
|
+
--color-danger-emphasis-hover: rgb(var(--magma-danger-emphasis-hover));
|
|
89
|
+
--color-danger-emphasis-active: rgb(var(--magma-danger-emphasis-active));
|
|
90
|
+
--color-danger-on-emphasis: rgb(var(--magma-danger-on-emphasis));
|
|
91
|
+
--color-danger-surface: rgb(var(--magma-danger-surface));
|
|
92
|
+
--color-danger-fg: rgb(var(--magma-danger-fg));
|
|
93
|
+
--color-danger-border: rgb(var(--magma-danger-border));
|
|
94
|
+
--color-neutral-fg: rgb(var(--magma-neutral-fg));
|
|
95
|
+
--color-neutral-border: rgb(var(--magma-neutral-border));
|
|
96
|
+
--color-surface-inverse: rgb(var(--magma-surface-inverse));
|
|
97
|
+
--color-surface-inverse-muted: rgb(var(--magma-surface-inverse-muted));
|
|
98
|
+
--color-on-inverse: rgb(var(--magma-on-inverse));
|
|
99
|
+
--color-neutral-emphasis: rgb(var(--magma-neutral-emphasis));
|
|
100
|
+
--color-neutral-on-emphasis: rgb(var(--magma-neutral-on-emphasis));
|
|
101
|
+
--color-accent-surface: rgb(var(--magma-accent-surface));
|
|
102
|
+
--color-accent-fg: rgb(var(--magma-accent-fg));
|
|
103
|
+
--color-accent-border: rgb(var(--magma-accent-border));
|
|
104
|
+
--color-accent-emphasis: rgb(var(--magma-accent-emphasis));
|
|
105
|
+
--color-accent-emphasis-hover: rgb(var(--magma-accent-emphasis-hover));
|
|
106
|
+
--color-accent-emphasis-active: rgb(var(--magma-accent-emphasis-active));
|
|
107
|
+
--color-accent-surface-hover: rgb(var(--magma-accent-surface-hover));
|
|
108
|
+
--color-accent-surface-subtle: rgb(var(--magma-accent-surface-subtle));
|
|
109
|
+
--color-accent-on-emphasis: rgb(var(--magma-accent-on-emphasis));
|
|
110
|
+
--color-accent-ai-surface: rgb(var(--magma-accent-ai-surface));
|
|
111
|
+
--color-accent-ai-fg: rgb(var(--magma-accent-ai-fg));
|
|
112
|
+
--color-accent-ai-border: rgb(var(--magma-accent-ai-border));
|
|
113
|
+
--color-accent-ai-emphasis: rgb(var(--magma-accent-ai-emphasis));
|
|
114
|
+
--color-accent-ai-emphasis-hover: rgb(var(--magma-accent-ai-emphasis-hover));
|
|
115
|
+
--color-accent-ai-emphasis-active: rgb(var(--magma-accent-ai-emphasis-active));
|
|
116
|
+
--color-accent-ai-surface-hover: rgb(var(--magma-accent-ai-surface-hover));
|
|
117
|
+
--color-accent-ai-surface-subtle: rgb(var(--magma-accent-ai-surface-subtle));
|
|
118
|
+
--color-accent-ai-on-emphasis: rgb(var(--magma-accent-ai-on-emphasis));
|
|
119
|
+
}
|
package/dist/tailwind/theme.css
CHANGED
|
@@ -3,3 +3,6 @@
|
|
|
3
3
|
/* @import "./dark-mode.css"; */
|
|
4
4
|
@import '@maggioli-design-system/design-tokens/dist/css/tailwind-theme-color.css' layer(theme);
|
|
5
5
|
@import '@maggioli-design-system/design-tokens/dist/css/tailwind-theme-typography.css';
|
|
6
|
+
|
|
7
|
+
/* semantic color layer bridge (--magma-* -> Tailwind --color-*) */
|
|
8
|
+
@import './semantic.css';
|
package/dist/tailwind3/base.css
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
+
/* See ../tailwind/base.css for the why: the page is the semantic surface, the
|
|
2
|
+
* text role needs no contrast twin, and the fallbacks name the raw family the
|
|
3
|
+
* default theme aliases. */
|
|
1
4
|
body {
|
|
2
5
|
@apply font-info
|
|
3
6
|
text-info-detail;
|
|
4
7
|
|
|
5
|
-
background-color: rgb(var(--
|
|
6
|
-
color: rgb(var(--
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:root.pref-contrast-high body {
|
|
10
|
-
color: rgb(var(--tone-neutral-01, theme('colors.tone-neutral-01')));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@media (prefers-contrast: more) {
|
|
14
|
-
:root.pref-contrast-system body {
|
|
15
|
-
color: rgb(var(--tone-neutral-01, theme('colors.tone-neutral-01')));
|
|
16
|
-
}
|
|
8
|
+
background-color: rgb(var(--magma-surface-default, theme('colors.surface-neutral-default')));
|
|
9
|
+
color: rgb(var(--magma-text-default, theme('colors.text-neutral-default')));
|
|
17
10
|
}
|
|
18
11
|
|
|
19
12
|
::selection {
|
|
@@ -34,7 +27,10 @@ strong {
|
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
a {
|
|
37
|
-
|
|
30
|
+
/* no theme() fallback: the accent roles are theme aliases with no raw twin in
|
|
31
|
+
* the palette, and `colors.theme-default-02-primary-text` never existed there
|
|
32
|
+
* either - the fallback was as dead as the custom property. */
|
|
33
|
+
color: rgb(var(--magma-accent-emphasis));
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
h1,
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.1",
|
|
4
4
|
"description": "This module contains SCSS and CSS styles used by Maggioli Design System, it also makes available a Tailwind config based on Maggioli design tokens.",
|
|
5
5
|
"main": "./tailwind.config.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "npm run clean && npm run copy && npm run hydrated && npm run tailwind.build",
|
|
7
|
+
"build": "npm run clean && npm run semantic && npm run corner && npm run properties && npm run editor.tokens && npm run copy && npm run hydrated && npm run tailwind.build",
|
|
8
8
|
"clean": "tsx scripts/clean.ts",
|
|
9
|
+
"semantic": "tsx scripts/semantic.ts",
|
|
10
|
+
"properties": "tsx scripts/properties.ts",
|
|
11
|
+
"corner": "tsx scripts/corner.ts",
|
|
12
|
+
"editor.tokens": "tsx scripts/editor-tokens.ts",
|
|
9
13
|
"hydrated": "tsx scripts/hydrated.ts",
|
|
10
14
|
"copy": "tsx scripts/copy.ts",
|
|
11
15
|
"tailwind.base": "postcss ./postcss/base.css -o ./dist/css/base.css",
|
|
@@ -55,14 +59,16 @@
|
|
|
55
59
|
"@fontsource/merriweather": "5.1.0",
|
|
56
60
|
"@fontsource/roboto": "5.1.0",
|
|
57
61
|
"@fontsource/roboto-mono": "5.1.0",
|
|
58
|
-
"@maggioli-design-system/design-tokens": "
|
|
62
|
+
"@maggioli-design-system/design-tokens": "^15.0.1",
|
|
59
63
|
"normalize.css": "8.0.1"
|
|
60
64
|
},
|
|
61
65
|
"devDependencies": {
|
|
62
|
-
"
|
|
66
|
+
"@tailwindcss/postcss": "4.3.3",
|
|
67
|
+
"autoprefixer": "10.6.1",
|
|
68
|
+
"handlebars": "4.7.10",
|
|
63
69
|
"postcss-cli": "11.0.1",
|
|
64
|
-
"postcss": "8.5.
|
|
65
|
-
"postcss-import": "16.
|
|
66
|
-
"tailwindcss": "4.
|
|
70
|
+
"postcss": "8.5.29",
|
|
71
|
+
"postcss-import": "16.2.0",
|
|
72
|
+
"tailwindcss": "4.3.3"
|
|
67
73
|
}
|
|
68
74
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -31,8 +31,8 @@ module.exports = {
|
|
|
31
31
|
darkMode: [
|
|
32
32
|
'variant',
|
|
33
33
|
[
|
|
34
|
-
'@media (prefers-color-scheme: dark) { &:is(.pref-
|
|
35
|
-
'&:is(.pref-
|
|
34
|
+
'@media (prefers-color-scheme: dark) { &:is(.pref-mode-system *) }',
|
|
35
|
+
'&:is(.pref-mode-dark *)',
|
|
36
36
|
],
|
|
37
37
|
],
|
|
38
38
|
corePlugins: {
|