@maggioli-design-system/styles 15.11.1 → 16.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.
Files changed (46) hide show
  1. package/README.md +59 -8
  2. package/dist/css/animations.css +3 -1
  3. package/dist/css/base.css +109 -67
  4. package/dist/css/colors-hex-brand-rnd.css +39 -37
  5. package/dist/css/colors-hex-brand.css +72 -70
  6. package/dist/css/colors-hex-default.css +732 -664
  7. package/dist/css/colors-hex-label.css +402 -334
  8. package/dist/css/colors-hex-status.css +138 -136
  9. package/dist/css/colors-hex-tones.css +171 -169
  10. package/dist/css/colors-hex.css +897 -2230
  11. package/dist/css/colors-rgb-brand-rnd.css +34 -32
  12. package/dist/css/colors-rgb-brand.css +65 -63
  13. package/dist/css/colors-rgb-default.css +692 -624
  14. package/dist/css/colors-rgb-label.css +399 -331
  15. package/dist/css/colors-rgb-status.css +124 -122
  16. package/dist/css/colors-rgb-tones.css +166 -164
  17. package/dist/css/colors-rgb.css +852 -2185
  18. package/dist/css/globals.css +222 -7
  19. package/dist/css/hydrated.css +2 -0
  20. package/dist/css/layer.css +1 -0
  21. package/dist/css/reset.css +123 -115
  22. package/dist/css/tailwind-theme-color.css +306 -0
  23. package/dist/css/tailwind-theme-typography.css +251 -0
  24. package/dist/css/transitions.css +45 -0
  25. package/dist/css/typography.css +219 -163
  26. package/dist/css/utility-typography.css +254 -0
  27. package/dist/tailwind/base.css +88 -41
  28. package/dist/tailwind/reset.css +116 -99
  29. package/dist/tailwind/theme.css +5 -0
  30. package/dist/tailwind/typography.css +137 -157
  31. package/dist/tailwind/utilities.css +97 -0
  32. package/dist/tailwind3/base.css +51 -0
  33. package/dist/{tailwind → tailwind3}/components.css +5 -4
  34. package/dist/tailwind3/reset.css +114 -0
  35. package/dist/tailwind3/typography.css +140 -0
  36. package/package.json +19 -10
  37. package/postcss.config.js +2 -7
  38. package/tailwind.config.js +11 -10
  39. package/dist/css/colors-hex-brand-apk.css +0 -281
  40. package/dist/css/colors-hex-brand-mindy.css +0 -50
  41. package/dist/css/colors-hex-brand-synbee.css +0 -83
  42. package/dist/css/colors-hex-synbee-v1.css +0 -1025
  43. package/dist/css/colors-rgb-brand-apk.css +0 -281
  44. package/dist/css/colors-rgb-brand-mindy.css +0 -50
  45. package/dist/css/colors-rgb-brand-synbee.css +0 -83
  46. package/dist/css/colors-rgb-synbee-v1.css +0 -1025
@@ -1,10 +1,221 @@
1
+ /*
2
+ Accessibility features
3
+ They are used by Magma web-components to adapt to user preferences
4
+ regarding theme, animation, contrast, and consumption.
5
+ */
6
+
7
+ @property --magma-pref-theme {
8
+ inherits: false;
9
+ initial-value: light;
10
+ syntax: 'light | dark | system';
11
+ }
12
+
13
+ @property --magma-pref-theme-scheme {
14
+ inherits: false;
15
+ initial-value: light;
16
+ syntax: 'light | dark | all';
17
+ }
18
+
19
+ @property --magma-pref-theme-name {
20
+ inherits: false;
21
+ initial-value: 'magma';
22
+ syntax: '<string>';
23
+ }
24
+
25
+ @property --magma-pref-consumption {
26
+ inherits: false;
27
+ initial-value: high;
28
+ syntax: 'high | medium | low';
29
+ }
30
+
31
+ @property --magma-pref-animation {
32
+ inherits: false;
33
+ initial-value: no-preference;
34
+ syntax: 'reduce | no-preference | system';
35
+ }
36
+
37
+ @property --magma-pref-contrast {
38
+ inherits: false;
39
+ initial-value: no-preference;
40
+ syntax: 'more | no-preference | system';
41
+ }
42
+
43
+ /* Animations */
44
+
45
+ @property --magma-backdrop-animation-duration {
46
+ inherits: false;
47
+ initial-value: 300ms;
48
+ syntax: '<time>';
49
+ }
50
+
51
+ @property --magma-outline-animation-duration {
52
+ inherits: false;
53
+ initial-value: 1.5s;
54
+ syntax: '<time>';
55
+ }
56
+
57
+ /* Opacity */
58
+
59
+ @property --magma-backdrop-opacity {
60
+ inherits: true;
61
+ initial-value: 0.1;
62
+ syntax: '<number>';
63
+ }
64
+
65
+ @property --magma-disabled-opacity {
66
+ inherits: true;
67
+ initial-value: 0.5;
68
+ syntax: '<number>';
69
+ }
70
+
71
+ @property --magma-overlay-opacity {
72
+ inherits: true;
73
+ initial-value: 0.5;
74
+ syntax: '<number>';
75
+ }
76
+
77
+ /* Blur */
78
+
79
+ @property --magma-backdrop-blur {
80
+ inherits: false;
81
+ initial-value: 4px;
82
+ syntax: '<length>';
83
+ }
84
+
85
+ @property --magma-outline-blur-offset {
86
+ inherits: false;
87
+ initial-value: 6px;
88
+ syntax: '<length>';
89
+ }
90
+
91
+ @property --magma-outline-focus-offset {
92
+ inherits: false;
93
+ initial-value: 2px;
94
+ syntax: '<length>';
95
+ }
96
+
97
+ /* Colors */
98
+
99
+ @property --magma-backdrop-color {
100
+ inherits: true;
101
+ initial-value: 0 0 0;
102
+ syntax: '<integer>+';
103
+ }
104
+
105
+ @property --magma-outline-blur-color {
106
+ inherits: true;
107
+ initial-value: transparent;
108
+ syntax: '<color>';
109
+ }
110
+
111
+ @property --magma-outline-focus-color {
112
+ inherits: true;
113
+ initial-value: rgb(0 0 0);
114
+ syntax: '<color>';
115
+ }
116
+
117
+ @property --magma-overlay-color {
118
+ inherits: true;
119
+ initial-value: 0 0 0;
120
+ syntax: '<integer>+';
121
+ }
122
+
123
+ @property --magma-selection-background {
124
+ inherits: true;
125
+ initial-value: rgb(0 120 255);
126
+ syntax: '<color>';
127
+ }
128
+
129
+ @property --magma-selection-color {
130
+ inherits: true;
131
+ initial-value: rgb(255 255 255);
132
+ syntax: '<color>';
133
+ }
134
+
135
+ /*
136
+ * corner-shape
137
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/corner-shape
138
+ * also supports superellipse(-1.0 to 1.0) method
139
+ */
140
+
141
+ @property --magma-corner-shape {
142
+ inherits: false;
143
+ initial-value: squircle;
144
+ syntax: 'bevel | notch | round | scoop | square | squircle';
145
+ }
146
+
147
+ /* z-index */
148
+
149
+ @property --magma-header-z-index {
150
+ inherits: false;
151
+ initial-value: 1000;
152
+ syntax: '<integer>';
153
+ }
154
+
155
+ @property --magma-notification-z-index {
156
+ inherits: false;
157
+ initial-value: 2000;
158
+ syntax: '<integer>';
159
+ }
160
+
161
+ @property --magma-modal-z-index {
162
+ inherits: false;
163
+ initial-value: 3000;
164
+ syntax: '<integer>';
165
+ }
166
+
167
+ @property --magma-backdrop-z-index {
168
+ inherits: false;
169
+ initial-value: 4000;
170
+ syntax: '<integer>';
171
+ }
172
+
173
+ @property --magma-dropdown-z-index {
174
+ inherits: false;
175
+ initial-value: 5000;
176
+ syntax: '<integer>';
177
+ }
178
+
179
+ @property --magma-tooltip-z-index {
180
+ inherits: false;
181
+ initial-value: 6000;
182
+ syntax: '<integer>';
183
+ }
184
+
185
+ @property --magma-theme-overlay-z-index {
186
+ inherits: false;
187
+ initial-value: 7000;
188
+ syntax: '<integer>';
189
+ }
190
+
191
+ @property --magma-context-menu-z-index {
192
+ inherits: false;
193
+ initial-value: 8000;
194
+ syntax: '<integer>';
195
+ }
196
+
197
+ /* @view-transition
198
+ * https://developer.chrome.com/docs/web-platform/view-transitions/cross-document?hl=it
199
+ */
200
+
201
+ @property --magma-view-transition-navigation {
202
+ inherits: false;
203
+ initial-value: auto;
204
+ syntax: 'auto | traverse | push | replace';
205
+ }
206
+
1
207
  :root {
208
+ /*
209
+ For browser compatibility reasons we add defaults
210
+ to avoid issues with older browsers that do not support houdini @property
211
+ (can be removed once support is more widespread)
212
+ */
2
213
  --magma-backdrop-animation-duration: 300ms;
214
+ --magma-corner-shape: squircle;
3
215
  --magma-backdrop-blur: 4px;
4
216
  --magma-backdrop-color: 0 0 0;
5
217
  --magma-backdrop-opacity: 0.1;
6
218
  --magma-backdrop-z-index: 4000;
7
- --magma-backdrop: rgb(var(--magma-backdrop-color) / var(--magma-backdrop-opacity));
8
219
  --magma-context-menu-z-index: 8000;
9
220
  --magma-disabled-opacity: 0.5;
10
221
  --magma-dropdown-z-index: 5000;
@@ -14,16 +225,20 @@
14
225
  --magma-outline-animation-duration: 1.5s;
15
226
  --magma-outline-blur-color: transparent;
16
227
  --magma-outline-blur-offset: 6px;
17
- --magma-outline-blur: 2px solid var(--magma-outline-blur-color);
18
- --magma-outline-focus-color: rgb(var(--tone-neutral-04, 0 0 0));
228
+ --magma-outline-focus-color: rgb(var(--tone-neutral-05, 0 0 0));
19
229
  --magma-outline-focus-offset: 2px;
20
- --magma-outline-focus: 2px solid var(--magma-outline-focus-color);
21
- --magma-overlay-blur: var(--magma-backdrop-blur);
22
- --magma-overlay-color: var(--magma-backdrop-color);
23
230
  --magma-overlay-opacity: 0.5;
24
- --magma-overlay: rgb(var(--magma-overlay-color) / var(--magma-overlay-opacity));
25
231
  --magma-selection-background: rgb(var(--label-sky-09));
26
232
  --magma-selection-color: rgb(var(--label-sky-01));
27
233
  --magma-theme-overlay-z-index: 7000;
28
234
  --magma-tooltip-z-index: 6000;
235
+ --magma-view-transition-navigation: auto;
236
+
237
+ /* Derived properties */
238
+ --magma-backdrop: rgb(var(--magma-backdrop-color) / var(--magma-backdrop-opacity));
239
+ --magma-outline-blur: 2px solid var(--magma-outline-blur-color);
240
+ --magma-outline-focus: 2px solid var(--magma-outline-focus-color);
241
+ --magma-overlay-blur: var(--magma-backdrop-blur);
242
+ --magma-overlay-color: var(--magma-backdrop-color);
243
+ --magma-overlay: rgb(var(--magma-overlay-color) / var(--magma-overlay-opacity));
29
244
  }
@@ -71,6 +71,8 @@ mds-pref-contrast:not(:is([hydrated], .hydrated)),
71
71
  mds-pref-language:not(:is([hydrated], .hydrated)),
72
72
  mds-pref-language-item:not(:is([hydrated], .hydrated)),
73
73
  mds-pref-theme:not(:is([hydrated], .hydrated)),
74
+ mds-pref-theme-variant:not(:is([hydrated], .hydrated)),
75
+ mds-pref-theme-variant-item:not(:is([hydrated], .hydrated)),
74
76
  mds-price-table:not(:is([hydrated], .hydrated)),
75
77
  mds-price-table-features:not(:is([hydrated], .hydrated)),
76
78
  mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
@@ -0,0 +1 @@
1
+ @layer reset, vendor, theme, base, components, utilities, overrides;
@@ -1,119 +1,127 @@
1
- html {
2
- color-scheme: dark light;
3
- hanging-punctuation: first last;
4
- interpolate-size: allow-keywords;
5
- transition-duration: 200ms;
6
- transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
7
- }
8
-
9
- *,
10
- *::before,
11
- *::after {
12
- box-sizing: border-box;
13
- overflow-wrap: anywhere;
14
- }
15
-
16
- body,
17
- html {
18
- margin: 0;
19
- }
20
-
21
- body {
22
- -moz-osx-font-smoothing: grayscale;
23
- -webkit-font-smoothing: antialiased;
24
- min-height: 100svh;
25
- -webkit-tap-highlight-color: transparent;
26
- text-rendering: optimizelegibility;
27
- -webkit-text-size-adjust: 100%;
28
- -moz-text-size-adjust: 100%;
29
- text-size-adjust: 100%;
30
- }
31
-
32
- input,
33
- textarea {
34
- -webkit-appearance: none;
35
- -moz-appearance: none;
36
- appearance: none;
37
- font-family: inherit;
38
- }
39
-
40
- a {
41
- font-family: inherit;
42
- font-size: inherit;
43
- font-weight: inherit;
44
- }
45
-
46
- a,
47
- aside,
48
- body,
49
- code,
50
- div,
51
- datalist,
52
- footer,
53
- form,
54
- h1,
55
- h2,
56
- h3,
57
- h4,
58
- h5,
59
- h6,
60
- header,
61
- hr,
62
- html,
63
- input,
64
- li,
65
- main,
66
- section,
67
- span,
68
- ul,
69
- textarea {
70
- box-sizing: border-box;
71
- }
72
-
73
- h1,
74
- h2,
75
- h3,
76
- h4,
77
- h5,
78
- h6 {
79
- margin: 0;
80
- max-width: 30ch;
81
- text-wrap: balance;
82
- }
83
-
84
- p {
85
- margin: 0;
86
- max-width: 75ch;
87
- text-wrap: pretty;
88
- }
89
-
90
- li,
91
- figcaption {
92
- max-width: 75ch;
93
- text-wrap: pretty;
94
- }
95
-
96
- header,
97
- footer,
98
- section,
99
- article {
100
- container-type: inline-size;
101
- }
102
-
103
- img,
104
- picture,
105
- svg,
106
- video {
107
- display: block;
108
- max-width: 100%;
109
- }
110
-
111
- @media (prefers-reduced-motion: no-preference) {
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer reset {
4
+ :root {
5
+ @media (prefers-reduced-motion: no-preference) {
6
+ interpolate-size: allow-keywords;
7
+ }
8
+ }
9
+ html {
10
+ --tw-ease: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
11
+ transition-timing-function: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
12
+ hanging-punctuation: first last;
13
+ interpolate-size: allow-keywords;
14
+ scrollbar-gutter: stable;
15
+ transition-duration: 200ms;
16
+ }
17
+ *,
18
+ *::before,
19
+ *::after {
20
+ box-sizing: border-box;
21
+ overflow-wrap: anywhere;
22
+ }
23
+ body,
112
24
  html {
113
- scroll-behavior: smooth;
25
+ margin: 0;
26
+ }
27
+ body {
28
+ -moz-osx-font-smoothing: grayscale;
29
+ -webkit-font-smoothing: antialiased;
30
+ min-height: 100svh;
31
+ -webkit-tap-highlight-color: transparent;
32
+ text-rendering: optimizelegibility;
33
+ -webkit-text-size-adjust: 100%;
34
+ -moz-text-size-adjust: 100%;
35
+ text-size-adjust: 100%;
36
+ }
37
+ input,
38
+ textarea {
39
+ -webkit-appearance: none;
40
+ -moz-appearance: none;
41
+ appearance: none;
42
+ font-family: inherit;
43
+ }
44
+ a {
45
+ font-family: inherit;
46
+ font-size: inherit;
47
+ font-weight: inherit;
48
+ }
49
+ a,
50
+ aside,
51
+ body,
52
+ code,
53
+ div,
54
+ datalist,
55
+ footer,
56
+ form,
57
+ h1,
58
+ h2,
59
+ h3,
60
+ h4,
61
+ h5,
62
+ h6,
63
+ header,
64
+ hr,
65
+ html,
66
+ input,
67
+ li,
68
+ main,
69
+ section,
70
+ span,
71
+ ul,
72
+ textarea {
73
+ box-sizing: border-box;
74
+ }
75
+ h1,
76
+ h2,
77
+ h3,
78
+ h4,
79
+ h5,
80
+ h6 {
81
+ max-width: var(--spacing-title, 30ch);
82
+ margin: 0;
83
+ text-wrap: balance;
114
84
  }
115
-
116
- :has(:target) {
117
- scroll-behavior: smooth;
85
+ p {
86
+ max-width: var(--spacing-text, 75ch);
87
+ margin: 0;
88
+ text-wrap: pretty;
89
+ }
90
+ li,
91
+ figcaption {
92
+ max-width: var(--spacing-text, 75ch);
93
+ text-wrap: pretty;
94
+ }
95
+ header,
96
+ footer,
97
+ section,
98
+ article {
99
+ container-type: inline-size;
100
+ }
101
+ img,
102
+ picture,
103
+ svg,
104
+ video {
105
+ display: block;
106
+ max-width: 100%;
107
+ }
108
+ @media (prefers-reduced-motion: no-preference) {
109
+ html {
110
+ scroll-behavior: smooth;
111
+ }
112
+ :has(:target) {
113
+ scroll-behavior: smooth;
114
+ }
115
+ }
116
+ }
117
+ @property --tw-ease {
118
+ syntax: "*";
119
+ inherits: false;
120
+ }
121
+ @layer properties {
122
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
123
+ *, ::before, ::after, ::backdrop {
124
+ --tw-ease: initial;
125
+ }
118
126
  }
119
127
  }