@maggioli-design-system/styles 17.3.0 → 17.5.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.
- package/CHANGELOG.md +34 -0
- package/LICENSE +21 -0
- package/README.md +58 -4
- package/dist/css/base.css +52 -4
- package/dist/css/colors-hex-brand-rnd.css +2 -2
- package/dist/css/colors-hex-brand.css +2 -2
- package/dist/css/colors-hex-default.css +2 -2
- package/dist/css/colors-hex-label.css +2 -2
- package/dist/css/colors-hex-status.css +2 -2
- package/dist/css/colors-hex-theme.css +2 -2
- package/dist/css/colors-hex-tones.css +2 -2
- package/dist/css/colors-hex.css +2 -2
- package/dist/css/colors-rgb-brand-rnd.css +2 -2
- package/dist/css/colors-rgb-brand.css +2 -2
- package/dist/css/colors-rgb-default.css +2 -2
- package/dist/css/colors-rgb-label.css +2 -2
- package/dist/css/colors-rgb-status.css +2 -2
- package/dist/css/colors-rgb-theme.css +2 -2
- package/dist/css/colors-rgb-tones.css +2 -2
- package/dist/css/colors-rgb.css +2 -2
- package/dist/css/globals.css +45 -2
- package/dist/css/hydrated.css +2 -0
- package/dist/css/reset.css +4 -4
- package/dist/css/tailwind-theme-color.css +2 -2
- package/dist/css/tailwind-theme-typography.css +37 -3
- package/dist/css/tokens.editor.css +107 -61
- package/dist/css/transitions.css +2 -2
- package/dist/css/typography.css +40 -3
- package/dist/css/utility-typography.css +126 -2
- package/dist/dtcg/globals.tokens.json +81 -8
- package/dist/tailwind/base.css +75 -2
- package/dist/tailwind/consumption.json +335 -24
- package/dist/tailwind/dark-mode.css +16 -0
- package/dist/tailwind/theme.css +3 -1
- package/dist/tailwind/typography.css +39 -0
- package/dist/tailwind/utilities.css +70 -0
- package/package.json +9 -8
|
@@ -1,44 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"magma": {
|
|
3
|
+
"$description": "The semantic layer: the roles UI code paints with. The colour roles follow the mode, the named theme and the contrast preference; rhythm and width are the spaces and the widths of the design language.",
|
|
3
4
|
"pref": {
|
|
5
|
+
"$description": "The preferences the mds-pref components write on the html element: read them to adapt, never set them by hand.",
|
|
4
6
|
"$extensions": {
|
|
5
7
|
"it.maggioli.magma": {
|
|
6
8
|
"cssOnly": [
|
|
7
9
|
{
|
|
8
10
|
"css": "--magma-pref-mode",
|
|
9
|
-
"value": "light"
|
|
11
|
+
"value": "light",
|
|
12
|
+
"description": "The active mode preference, as the mds-pref components write it: read it, never set it."
|
|
10
13
|
},
|
|
11
14
|
{
|
|
12
15
|
"css": "--magma-pref-theme-scheme",
|
|
13
|
-
"value": "light"
|
|
16
|
+
"value": "light",
|
|
17
|
+
"description": "The active theme-scheme preference, as the mds-pref components write it: read it, never set it."
|
|
14
18
|
},
|
|
15
19
|
{
|
|
16
20
|
"css": "--magma-pref-theme",
|
|
17
|
-
"value": "default"
|
|
21
|
+
"value": "default",
|
|
22
|
+
"description": "The active theme preference, as the mds-pref components write it: read it, never set it."
|
|
18
23
|
},
|
|
19
24
|
{
|
|
20
25
|
"css": "--magma-pref-consumption",
|
|
21
|
-
"value": "high"
|
|
26
|
+
"value": "high",
|
|
27
|
+
"description": "The active consumption preference, as the mds-pref components write it: read it, never set it."
|
|
22
28
|
},
|
|
23
29
|
{
|
|
24
30
|
"css": "--magma-pref-animation",
|
|
25
|
-
"value": "no-preference"
|
|
31
|
+
"value": "no-preference",
|
|
32
|
+
"description": "The active animation preference, as the mds-pref components write it: read it, never set it."
|
|
26
33
|
},
|
|
27
34
|
{
|
|
28
35
|
"css": "--magma-pref-contrast",
|
|
29
|
-
"value": "no-preference"
|
|
36
|
+
"value": "no-preference",
|
|
37
|
+
"description": "The active contrast preference, as the mds-pref components write it: read it, never set it."
|
|
30
38
|
}
|
|
31
39
|
]
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
},
|
|
35
43
|
"backdrop": {
|
|
44
|
+
"$description": "The scrim behind modals and drawers: its colour, opacity, blur, entrance and stacking level.",
|
|
36
45
|
"animation-duration": {
|
|
37
46
|
"$type": "duration",
|
|
38
47
|
"$value": {
|
|
39
48
|
"value": 300,
|
|
40
49
|
"unit": "ms"
|
|
41
50
|
},
|
|
51
|
+
"$description": "How long the scrim takes to fade in.",
|
|
42
52
|
"$extensions": {
|
|
43
53
|
"it.maggioli.magma": {
|
|
44
54
|
"css": "--magma-backdrop-animation-duration",
|
|
@@ -49,6 +59,7 @@
|
|
|
49
59
|
"opacity": {
|
|
50
60
|
"$type": "number",
|
|
51
61
|
"$value": 0.1,
|
|
62
|
+
"$description": "How much the scrim darkens the page.",
|
|
52
63
|
"$extensions": {
|
|
53
64
|
"it.maggioli.magma": {
|
|
54
65
|
"css": "--magma-backdrop-opacity",
|
|
@@ -62,6 +73,7 @@
|
|
|
62
73
|
"value": 4,
|
|
63
74
|
"unit": "px"
|
|
64
75
|
},
|
|
76
|
+
"$description": "How much the scrim blurs the page behind it.",
|
|
65
77
|
"$extensions": {
|
|
66
78
|
"it.maggioli.magma": {
|
|
67
79
|
"css": "--magma-backdrop-blur",
|
|
@@ -80,6 +92,7 @@
|
|
|
80
92
|
],
|
|
81
93
|
"hex": "#000000"
|
|
82
94
|
},
|
|
95
|
+
"$description": "The colour of the scrim, black in both modes; the elevation shadows draw with it too.",
|
|
83
96
|
"$extensions": {
|
|
84
97
|
"it.maggioli.magma": {
|
|
85
98
|
"css": "--magma-backdrop-color",
|
|
@@ -90,6 +103,7 @@
|
|
|
90
103
|
"z-index": {
|
|
91
104
|
"$type": "number",
|
|
92
105
|
"$value": 4000,
|
|
106
|
+
"$description": "The stacking level of the scrim, between modals and dropdowns.",
|
|
93
107
|
"$extensions": {
|
|
94
108
|
"it.maggioli.magma": {
|
|
95
109
|
"css": "--magma-backdrop-z-index",
|
|
@@ -109,6 +123,7 @@
|
|
|
109
123
|
"hex": "#000000",
|
|
110
124
|
"alpha": 0.1
|
|
111
125
|
},
|
|
126
|
+
"$description": "The scrim as one colour, with its opacity.",
|
|
112
127
|
"$extensions": {
|
|
113
128
|
"it.maggioli.magma": {
|
|
114
129
|
"css": "--magma-backdrop",
|
|
@@ -119,12 +134,14 @@
|
|
|
119
134
|
}
|
|
120
135
|
},
|
|
121
136
|
"outline": {
|
|
137
|
+
"$description": "The focus ring, and the transparent ring of an element without focus: the focus effects move between the two.",
|
|
122
138
|
"animation-duration": {
|
|
123
139
|
"$type": "duration",
|
|
124
140
|
"$value": {
|
|
125
141
|
"value": 1.5,
|
|
126
142
|
"unit": "s"
|
|
127
143
|
},
|
|
144
|
+
"$description": "How long one pulse of the focus ring takes.",
|
|
128
145
|
"$extensions": {
|
|
129
146
|
"it.maggioli.magma": {
|
|
130
147
|
"css": "--magma-outline-animation-duration",
|
|
@@ -138,6 +155,7 @@
|
|
|
138
155
|
"value": 6,
|
|
139
156
|
"unit": "px"
|
|
140
157
|
},
|
|
158
|
+
"$description": "The gap of the ring without focus, wider than the focus one: the focus ring closes in from it, or pulses out to it.",
|
|
141
159
|
"$extensions": {
|
|
142
160
|
"it.maggioli.magma": {
|
|
143
161
|
"css": "--magma-outline-blur-offset",
|
|
@@ -151,6 +169,7 @@
|
|
|
151
169
|
"value": 2,
|
|
152
170
|
"unit": "px"
|
|
153
171
|
},
|
|
172
|
+
"$description": "The gap between the focus ring and the element.",
|
|
154
173
|
"$extensions": {
|
|
155
174
|
"it.maggioli.magma": {
|
|
156
175
|
"css": "--magma-outline-focus-offset",
|
|
@@ -170,6 +189,7 @@
|
|
|
170
189
|
"hex": "#000000",
|
|
171
190
|
"alpha": 0
|
|
172
191
|
},
|
|
192
|
+
"$description": "The colour of the ring without focus: transparent.",
|
|
173
193
|
"$extensions": {
|
|
174
194
|
"it.maggioli.magma": {
|
|
175
195
|
"css": "--magma-outline-blur-color",
|
|
@@ -180,6 +200,7 @@
|
|
|
180
200
|
"focus-color": {
|
|
181
201
|
"$type": "color",
|
|
182
202
|
"$value": "{palette.tone.neutral.05}",
|
|
203
|
+
"$description": "The colour of the focus ring.",
|
|
183
204
|
"$extensions": {
|
|
184
205
|
"it.maggioli.magma": {
|
|
185
206
|
"css": "--magma-outline-focus-color",
|
|
@@ -197,6 +218,7 @@
|
|
|
197
218
|
},
|
|
198
219
|
"style": "solid"
|
|
199
220
|
},
|
|
221
|
+
"$description": "The ring of an element without focus: transparent.",
|
|
200
222
|
"$extensions": {
|
|
201
223
|
"it.maggioli.magma": {
|
|
202
224
|
"css": "--magma-outline-blur",
|
|
@@ -214,6 +236,7 @@
|
|
|
214
236
|
},
|
|
215
237
|
"style": "solid"
|
|
216
238
|
},
|
|
239
|
+
"$description": "The focus ring: width, style and colour.",
|
|
217
240
|
"$extensions": {
|
|
218
241
|
"it.maggioli.magma": {
|
|
219
242
|
"css": "--magma-outline-focus",
|
|
@@ -223,9 +246,11 @@
|
|
|
223
246
|
}
|
|
224
247
|
},
|
|
225
248
|
"disabled": {
|
|
249
|
+
"$description": "How disabled components fade.",
|
|
226
250
|
"opacity": {
|
|
227
251
|
"$type": "number",
|
|
228
252
|
"$value": 0.5,
|
|
253
|
+
"$description": "The opacity of disabled components.",
|
|
229
254
|
"$extensions": {
|
|
230
255
|
"it.maggioli.magma": {
|
|
231
256
|
"css": "--magma-disabled-opacity",
|
|
@@ -235,9 +260,11 @@
|
|
|
235
260
|
}
|
|
236
261
|
},
|
|
237
262
|
"overlay": {
|
|
263
|
+
"$description": "The scrim of mds-modal: its colour and blur are the backdrop ones, its opacity is its own.",
|
|
238
264
|
"opacity": {
|
|
239
265
|
"$type": "number",
|
|
240
266
|
"$value": 0.5,
|
|
267
|
+
"$description": "How much the modal scrim darkens the page.",
|
|
241
268
|
"$extensions": {
|
|
242
269
|
"it.maggioli.magma": {
|
|
243
270
|
"css": "--magma-overlay-opacity",
|
|
@@ -248,6 +275,7 @@
|
|
|
248
275
|
"color": {
|
|
249
276
|
"$type": "color",
|
|
250
277
|
"$value": "{magma.backdrop.color}",
|
|
278
|
+
"$description": "The colour of the modal scrim: the backdrop colour.",
|
|
251
279
|
"$extensions": {
|
|
252
280
|
"it.maggioli.magma": {
|
|
253
281
|
"css": "--magma-overlay-color",
|
|
@@ -258,6 +286,7 @@
|
|
|
258
286
|
"blur": {
|
|
259
287
|
"$type": "dimension",
|
|
260
288
|
"$value": "{magma.backdrop.blur}",
|
|
289
|
+
"$description": "How much the modal scrim blurs the page: the backdrop blur.",
|
|
261
290
|
"$extensions": {
|
|
262
291
|
"it.maggioli.magma": {
|
|
263
292
|
"css": "--magma-overlay-blur",
|
|
@@ -277,6 +306,7 @@
|
|
|
277
306
|
"hex": "#000000",
|
|
278
307
|
"alpha": 0.5
|
|
279
308
|
},
|
|
309
|
+
"$description": "The scrim of mds-modal as one colour, with its opacity.",
|
|
280
310
|
"$extensions": {
|
|
281
311
|
"it.maggioli.magma": {
|
|
282
312
|
"css": "--magma-overlay",
|
|
@@ -287,6 +317,7 @@
|
|
|
287
317
|
}
|
|
288
318
|
},
|
|
289
319
|
"on": {
|
|
320
|
+
"$description": "Ink on the scrims.",
|
|
290
321
|
"backdrop": {
|
|
291
322
|
"$type": "color",
|
|
292
323
|
"$value": {
|
|
@@ -298,6 +329,7 @@
|
|
|
298
329
|
],
|
|
299
330
|
"hex": "#fcfcfc"
|
|
300
331
|
},
|
|
332
|
+
"$description": "Text and icons on the scrim, such as the close icon of a modal: light in both modes, as the scrim is black in both.",
|
|
301
333
|
"$extensions": {
|
|
302
334
|
"it.maggioli.magma": {
|
|
303
335
|
"css": "--magma-on-backdrop",
|
|
@@ -307,9 +339,11 @@
|
|
|
307
339
|
}
|
|
308
340
|
},
|
|
309
341
|
"selection": {
|
|
342
|
+
"$description": "The colours of selected text.",
|
|
310
343
|
"background": {
|
|
311
344
|
"$type": "color",
|
|
312
345
|
"$value": "{palette.label.sky.09}",
|
|
346
|
+
"$description": "The background of selected text.",
|
|
313
347
|
"$extensions": {
|
|
314
348
|
"it.maggioli.magma": {
|
|
315
349
|
"css": "--magma-selection-background",
|
|
@@ -320,6 +354,7 @@
|
|
|
320
354
|
"color": {
|
|
321
355
|
"$type": "color",
|
|
322
356
|
"$value": "{palette.label.sky.01}",
|
|
357
|
+
"$description": "The colour of selected text.",
|
|
323
358
|
"$extensions": {
|
|
324
359
|
"it.maggioli.magma": {
|
|
325
360
|
"css": "--magma-selection-color",
|
|
@@ -329,12 +364,14 @@
|
|
|
329
364
|
}
|
|
330
365
|
},
|
|
331
366
|
"corner": {
|
|
367
|
+
"$description": "The corner axis: the shape of the corners, and how much of its height a corner may take.",
|
|
332
368
|
"$extensions": {
|
|
333
369
|
"it.maggioli.magma": {
|
|
334
370
|
"cssOnly": [
|
|
335
371
|
{
|
|
336
372
|
"css": "--magma-corner-shape",
|
|
337
|
-
"value": "squircle"
|
|
373
|
+
"value": "squircle",
|
|
374
|
+
"description": "The shape of the corners: set it through data-corner-shape, which changes the radius scale with it."
|
|
338
375
|
}
|
|
339
376
|
]
|
|
340
377
|
}
|
|
@@ -342,6 +379,7 @@
|
|
|
342
379
|
"cap": {
|
|
343
380
|
"$type": "number",
|
|
344
381
|
"$value": 0.5,
|
|
382
|
+
"$description": "The part of its height a corner may take, for the controls whose radius is past half their height.",
|
|
345
383
|
"$extensions": {
|
|
346
384
|
"it.maggioli.magma": {
|
|
347
385
|
"css": "--magma-corner-cap",
|
|
@@ -351,9 +389,11 @@
|
|
|
351
389
|
}
|
|
352
390
|
},
|
|
353
391
|
"header": {
|
|
392
|
+
"$description": "The stacking level of the header.",
|
|
354
393
|
"z-index": {
|
|
355
394
|
"$type": "number",
|
|
356
395
|
"$value": 1000,
|
|
396
|
+
"$description": "The z-index of the header, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
357
397
|
"$extensions": {
|
|
358
398
|
"it.maggioli.magma": {
|
|
359
399
|
"css": "--magma-header-z-index",
|
|
@@ -363,9 +403,11 @@
|
|
|
363
403
|
}
|
|
364
404
|
},
|
|
365
405
|
"notification": {
|
|
406
|
+
"$description": "The stacking level of notifications.",
|
|
366
407
|
"z-index": {
|
|
367
408
|
"$type": "number",
|
|
368
409
|
"$value": 2000,
|
|
410
|
+
"$description": "The z-index of notifications, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
369
411
|
"$extensions": {
|
|
370
412
|
"it.maggioli.magma": {
|
|
371
413
|
"css": "--magma-notification-z-index",
|
|
@@ -375,9 +417,11 @@
|
|
|
375
417
|
}
|
|
376
418
|
},
|
|
377
419
|
"modal": {
|
|
420
|
+
"$description": "The stacking level of modals.",
|
|
378
421
|
"z-index": {
|
|
379
422
|
"$type": "number",
|
|
380
423
|
"$value": 3000,
|
|
424
|
+
"$description": "The z-index of modals, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
381
425
|
"$extensions": {
|
|
382
426
|
"it.maggioli.magma": {
|
|
383
427
|
"css": "--magma-modal-z-index",
|
|
@@ -387,9 +431,11 @@
|
|
|
387
431
|
}
|
|
388
432
|
},
|
|
389
433
|
"dropdown": {
|
|
434
|
+
"$description": "The stacking level of dropdowns.",
|
|
390
435
|
"z-index": {
|
|
391
436
|
"$type": "number",
|
|
392
437
|
"$value": 5000,
|
|
438
|
+
"$description": "The z-index of dropdowns, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
393
439
|
"$extensions": {
|
|
394
440
|
"it.maggioli.magma": {
|
|
395
441
|
"css": "--magma-dropdown-z-index",
|
|
@@ -399,9 +445,11 @@
|
|
|
399
445
|
}
|
|
400
446
|
},
|
|
401
447
|
"tooltip": {
|
|
448
|
+
"$description": "The stacking level of tooltips.",
|
|
402
449
|
"z-index": {
|
|
403
450
|
"$type": "number",
|
|
404
451
|
"$value": 6000,
|
|
452
|
+
"$description": "The z-index of tooltips, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
405
453
|
"$extensions": {
|
|
406
454
|
"it.maggioli.magma": {
|
|
407
455
|
"css": "--magma-tooltip-z-index",
|
|
@@ -411,9 +459,11 @@
|
|
|
411
459
|
}
|
|
412
460
|
},
|
|
413
461
|
"theme": {
|
|
462
|
+
"$description": "The stacking level of the theme overlay.",
|
|
414
463
|
"overlay-z-index": {
|
|
415
464
|
"$type": "number",
|
|
416
465
|
"$value": 7000,
|
|
466
|
+
"$description": "The z-index of the theme overlay, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
417
467
|
"$extensions": {
|
|
418
468
|
"it.maggioli.magma": {
|
|
419
469
|
"css": "--magma-theme-overlay-z-index",
|
|
@@ -423,9 +473,11 @@
|
|
|
423
473
|
}
|
|
424
474
|
},
|
|
425
475
|
"context": {
|
|
476
|
+
"$description": "The stacking level of context menus.",
|
|
426
477
|
"menu-z-index": {
|
|
427
478
|
"$type": "number",
|
|
428
479
|
"$value": 8000,
|
|
480
|
+
"$description": "The z-index of context menus, on the stacking scale of the floating layers: slot your own layers between its steps.",
|
|
429
481
|
"$extensions": {
|
|
430
482
|
"it.maggioli.magma": {
|
|
431
483
|
"css": "--magma-context-menu-z-index",
|
|
@@ -435,21 +487,25 @@
|
|
|
435
487
|
}
|
|
436
488
|
},
|
|
437
489
|
"view": {
|
|
490
|
+
"$description": "The view transitions between pages.",
|
|
438
491
|
"$extensions": {
|
|
439
492
|
"it.maggioli.magma": {
|
|
440
493
|
"cssOnly": [
|
|
441
494
|
{
|
|
442
495
|
"css": "--magma-view-transition-navigation",
|
|
443
|
-
"value": "auto"
|
|
496
|
+
"value": "auto",
|
|
497
|
+
"description": "Whether a navigation between pages animates as a view transition."
|
|
444
498
|
}
|
|
445
499
|
]
|
|
446
500
|
}
|
|
447
501
|
}
|
|
448
502
|
},
|
|
449
503
|
"radius": {
|
|
504
|
+
"$description": "The radius scale of the active corner shape: what components and UI code round corners with.",
|
|
450
505
|
"none": {
|
|
451
506
|
"$type": "dimension",
|
|
452
507
|
"$value": "{radius.none}",
|
|
508
|
+
"$description": "No rounding.",
|
|
453
509
|
"$extensions": {
|
|
454
510
|
"it.maggioli.magma": {
|
|
455
511
|
"css": "--magma-radius-none",
|
|
@@ -460,6 +516,7 @@
|
|
|
460
516
|
"3xs": {
|
|
461
517
|
"$type": "dimension",
|
|
462
518
|
"$value": "{radius.squircle-3xs}",
|
|
519
|
+
"$description": "The 3xs corner radius, on the scale of the active corner shape.",
|
|
463
520
|
"$extensions": {
|
|
464
521
|
"it.maggioli.magma": {
|
|
465
522
|
"css": "--magma-radius-3xs",
|
|
@@ -470,6 +527,7 @@
|
|
|
470
527
|
"2xs": {
|
|
471
528
|
"$type": "dimension",
|
|
472
529
|
"$value": "{radius.squircle-2xs}",
|
|
530
|
+
"$description": "The 2xs corner radius, on the scale of the active corner shape.",
|
|
473
531
|
"$extensions": {
|
|
474
532
|
"it.maggioli.magma": {
|
|
475
533
|
"css": "--magma-radius-2xs",
|
|
@@ -480,6 +538,7 @@
|
|
|
480
538
|
"xs": {
|
|
481
539
|
"$type": "dimension",
|
|
482
540
|
"$value": "{radius.squircle-xs}",
|
|
541
|
+
"$description": "The xs corner radius, on the scale of the active corner shape.",
|
|
483
542
|
"$extensions": {
|
|
484
543
|
"it.maggioli.magma": {
|
|
485
544
|
"css": "--magma-radius-xs",
|
|
@@ -490,6 +549,7 @@
|
|
|
490
549
|
"sm": {
|
|
491
550
|
"$type": "dimension",
|
|
492
551
|
"$value": "{radius.squircle-sm}",
|
|
552
|
+
"$description": "The sm corner radius, on the scale of the active corner shape.",
|
|
493
553
|
"$extensions": {
|
|
494
554
|
"it.maggioli.magma": {
|
|
495
555
|
"css": "--magma-radius-sm",
|
|
@@ -500,6 +560,7 @@
|
|
|
500
560
|
"md": {
|
|
501
561
|
"$type": "dimension",
|
|
502
562
|
"$value": "{radius.squircle-md}",
|
|
563
|
+
"$description": "The md corner radius, on the scale of the active corner shape.",
|
|
503
564
|
"$extensions": {
|
|
504
565
|
"it.maggioli.magma": {
|
|
505
566
|
"css": "--magma-radius-md",
|
|
@@ -510,6 +571,7 @@
|
|
|
510
571
|
"lg": {
|
|
511
572
|
"$type": "dimension",
|
|
512
573
|
"$value": "{radius.squircle-lg}",
|
|
574
|
+
"$description": "The lg corner radius, on the scale of the active corner shape.",
|
|
513
575
|
"$extensions": {
|
|
514
576
|
"it.maggioli.magma": {
|
|
515
577
|
"css": "--magma-radius-lg",
|
|
@@ -520,6 +582,7 @@
|
|
|
520
582
|
"xl": {
|
|
521
583
|
"$type": "dimension",
|
|
522
584
|
"$value": "{radius.squircle-xl}",
|
|
585
|
+
"$description": "The xl corner radius, on the scale of the active corner shape.",
|
|
523
586
|
"$extensions": {
|
|
524
587
|
"it.maggioli.magma": {
|
|
525
588
|
"css": "--magma-radius-xl",
|
|
@@ -530,6 +593,7 @@
|
|
|
530
593
|
"2xl": {
|
|
531
594
|
"$type": "dimension",
|
|
532
595
|
"$value": "{radius.squircle-2xl}",
|
|
596
|
+
"$description": "The 2xl corner radius, on the scale of the active corner shape.",
|
|
533
597
|
"$extensions": {
|
|
534
598
|
"it.maggioli.magma": {
|
|
535
599
|
"css": "--magma-radius-2xl",
|
|
@@ -540,6 +604,7 @@
|
|
|
540
604
|
"3xl": {
|
|
541
605
|
"$type": "dimension",
|
|
542
606
|
"$value": "{radius.squircle-3xl}",
|
|
607
|
+
"$description": "The 3xl corner radius, on the scale of the active corner shape.",
|
|
543
608
|
"$extensions": {
|
|
544
609
|
"it.maggioli.magma": {
|
|
545
610
|
"css": "--magma-radius-3xl",
|
|
@@ -550,6 +615,7 @@
|
|
|
550
615
|
"4xl": {
|
|
551
616
|
"$type": "dimension",
|
|
552
617
|
"$value": "{radius.squircle-4xl}",
|
|
618
|
+
"$description": "The 4xl corner radius, on the scale of the active corner shape.",
|
|
553
619
|
"$extensions": {
|
|
554
620
|
"it.maggioli.magma": {
|
|
555
621
|
"css": "--magma-radius-4xl",
|
|
@@ -560,6 +626,7 @@
|
|
|
560
626
|
"5xl": {
|
|
561
627
|
"$type": "dimension",
|
|
562
628
|
"$value": "{radius.squircle-5xl}",
|
|
629
|
+
"$description": "The 5xl corner radius, on the scale of the active corner shape.",
|
|
563
630
|
"$extensions": {
|
|
564
631
|
"it.maggioli.magma": {
|
|
565
632
|
"css": "--magma-radius-5xl",
|
|
@@ -570,6 +637,7 @@
|
|
|
570
637
|
"full": {
|
|
571
638
|
"$type": "dimension",
|
|
572
639
|
"$value": "{radius.full}",
|
|
640
|
+
"$description": "The pill, the same under every corner shape.",
|
|
573
641
|
"$extensions": {
|
|
574
642
|
"it.maggioli.magma": {
|
|
575
643
|
"css": "--magma-radius-full",
|
|
@@ -582,6 +650,7 @@
|
|
|
582
650
|
"depth": {
|
|
583
651
|
"$type": "number",
|
|
584
652
|
"$value": 1,
|
|
653
|
+
"$description": "The depth axis, from 0 to 1: how strong the elevation shadows are. data-theme-depth=\"flat\" sets it to 0.",
|
|
585
654
|
"$extensions": {
|
|
586
655
|
"it.maggioli.magma": {
|
|
587
656
|
"css": "--depth",
|
|
@@ -590,7 +659,9 @@
|
|
|
590
659
|
}
|
|
591
660
|
},
|
|
592
661
|
"mds": {
|
|
662
|
+
"$description": "Globals the components share.",
|
|
593
663
|
"elevation": {
|
|
664
|
+
"$description": "The shadows of the raised and overlay surfaces, scaled by the depth axis.",
|
|
594
665
|
"raised": {
|
|
595
666
|
"$type": "shadow",
|
|
596
667
|
"$value": [
|
|
@@ -651,6 +722,7 @@
|
|
|
651
722
|
}
|
|
652
723
|
}
|
|
653
724
|
],
|
|
725
|
+
"$description": "The shadow of a raised surface, such as a card.",
|
|
654
726
|
"$extensions": {
|
|
655
727
|
"it.maggioli.magma": {
|
|
656
728
|
"css": "--mds-elevation-raised",
|
|
@@ -719,6 +791,7 @@
|
|
|
719
791
|
}
|
|
720
792
|
}
|
|
721
793
|
],
|
|
794
|
+
"$description": "The shadow of an overlay surface, such as a dropdown or a popover.",
|
|
722
795
|
"$extensions": {
|
|
723
796
|
"it.maggioli.magma": {
|
|
724
797
|
"css": "--mds-elevation-overlay",
|
package/dist/tailwind/base.css
CHANGED
|
@@ -88,8 +88,81 @@
|
|
|
88
88
|
@apply max-w-title;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
p
|
|
92
|
-
|
|
91
|
+
/* p takes the cap of the reset, max-w-text (the reading measure, #1204): a cap written
|
|
92
|
+
* here, in a later layer, would win over it. */
|
|
93
|
+
|
|
94
|
+
/* The room of mds-status-bar (#1203): while a bar is visible at the end of the window, the page
|
|
95
|
+
* ends that far above it, and a field reached with Tab stops above it too (WCAG 2.4.11). No
|
|
96
|
+
* script measures the bar: the room is its tallest for its content, from its own sheet, plus
|
|
97
|
+
* rhythm/between-fields. It is a box after the body, not a padding of html: a page that zeroes
|
|
98
|
+
* the padding of html out of any layer, as many resets do, wins over every layer and would drop
|
|
99
|
+
* it. A page that scrolls in a box of its own reads the same room from --magma-status-bar-room.
|
|
100
|
+
* A shorter bar leaves the rest empty, never covered.
|
|
101
|
+
*
|
|
102
|
+
* The tallest bar: the margin of its area (800), the inset of the bar (600 twice), the
|
|
103
|
+
* description on a line of its own (one line of caption, the limit of its content), the gap to
|
|
104
|
+
* the actions (400) and their row (a button, 900). Up to 480px the bar takes the width of the
|
|
105
|
+
* window and its actions stack (actions/stacked): each action after the first adds a button and
|
|
106
|
+
* rhythm/inline, up to three (actions/at-most-three). */
|
|
107
|
+
|
|
108
|
+
html:has(mds-status-bar[visible]) {
|
|
109
|
+
--magma-status-bar-room: calc(
|
|
110
|
+
--spacing(800) + 2 * --spacing(600) + var(--text-size-info-caption--line-height) +
|
|
111
|
+
--spacing(400) + --spacing(900) + var(--magma-rhythm-between-fields)
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
scroll-padding-bottom: var(--magma-status-bar-room);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
html:has(mds-status-bar[visible])::after {
|
|
118
|
+
content: '';
|
|
119
|
+
display: block;
|
|
120
|
+
height: var(--magma-status-bar-room);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (width <= 480px) {
|
|
124
|
+
html:has(mds-status-bar[visible] > :nth-child(2)) {
|
|
125
|
+
--magma-status-bar-room: calc(
|
|
126
|
+
--spacing(800) + 2 * --spacing(600) + var(--text-size-info-caption--line-height) +
|
|
127
|
+
--spacing(400) + 2 * --spacing(900) + var(--magma-rhythm-inline) +
|
|
128
|
+
var(--magma-rhythm-between-fields)
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
html:has(mds-status-bar[visible] > :nth-child(3)) {
|
|
133
|
+
--magma-status-bar-room: calc(
|
|
134
|
+
--spacing(800) + 2 * --spacing(600) + var(--text-size-info-caption--line-height) +
|
|
135
|
+
--spacing(400) + 3 * --spacing(900) + 2 * var(--magma-rhythm-inline) +
|
|
136
|
+
var(--magma-rhythm-between-fields)
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* The bar of mds-header (#1189, surfaces/band): the header stands in the flow, sticky, so the
|
|
142
|
+
* page starts under it by itself; while it stays put it covers the top of the window, and a
|
|
143
|
+
* field reached with Shift+Tab stops under it (WCAG 2.4.11), rhythm/between-fields lower, as at
|
|
144
|
+
* the bar of mds-status-bar. No script measures the bar: it is one row, its inset (400 twice) and
|
|
145
|
+
* a button (900); the floating bar (`inline`) stands its margin lower, 600, and 400 up to 767px
|
|
146
|
+
* (--mds-header-inline-margin, -mobile). */
|
|
147
|
+
|
|
148
|
+
html:has(mds-header) {
|
|
149
|
+
scroll-padding-top: calc(
|
|
150
|
+
2 * --spacing(400) + --spacing(900) + var(--magma-rhythm-between-fields)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
html:has(mds-header[appearance='inline']) {
|
|
155
|
+
scroll-padding-top: calc(
|
|
156
|
+
--spacing(600) + 2 * --spacing(400) + --spacing(900) + var(--magma-rhythm-between-fields)
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@media (width <= 767px) {
|
|
161
|
+
html:has(mds-header[appearance='inline']) {
|
|
162
|
+
scroll-padding-top: calc(
|
|
163
|
+
--spacing(400) + 2 * --spacing(400) + --spacing(900) + var(--magma-rhythm-between-fields)
|
|
164
|
+
);
|
|
165
|
+
}
|
|
93
166
|
}
|
|
94
167
|
|
|
95
168
|
/* The box of the hydrated components (against Tailwind's preflight) is kept by
|