@mlola-ui/tokens 1.0.13 → 1.1.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/generated/recipes.css +30 -3
- package/generated/tokens.css +311 -5
- package/package.json +1 -1
- package/tokens.json +5 -0
package/generated/recipes.css
CHANGED
|
@@ -374,6 +374,18 @@
|
|
|
374
374
|
font-weight: 800;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
+
/* A brand's own logo takes the mark's place: no chip, the text color, the mark's size. */
|
|
378
|
+
.ml-brand-mark[data-kind="logo"] {
|
|
379
|
+
background: none;
|
|
380
|
+
color: var(--ml-text);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ml-brand-mark[data-kind="logo"] > :is(svg, img) {
|
|
384
|
+
width: 100%;
|
|
385
|
+
height: 100%;
|
|
386
|
+
object-fit: contain;
|
|
387
|
+
}
|
|
388
|
+
|
|
377
389
|
.ml-brand-name {
|
|
378
390
|
font-size: var(--ml-type-md);
|
|
379
391
|
letter-spacing: -.02em;
|
|
@@ -1513,6 +1525,7 @@ button.ml-breadcrumb-link {
|
|
|
1513
1525
|
.ml-button {
|
|
1514
1526
|
position: relative;
|
|
1515
1527
|
display: inline-flex;
|
|
1528
|
+
max-width: 100%;
|
|
1516
1529
|
min-height: var(--ml-control-md);
|
|
1517
1530
|
align-items: center;
|
|
1518
1531
|
justify-content: center;
|
|
@@ -1528,7 +1541,6 @@ button.ml-breadcrumb-link {
|
|
|
1528
1541
|
line-height: 1;
|
|
1529
1542
|
letter-spacing: -.006em;
|
|
1530
1543
|
text-decoration: none;
|
|
1531
|
-
white-space: nowrap;
|
|
1532
1544
|
cursor: pointer;
|
|
1533
1545
|
user-select: none;
|
|
1534
1546
|
-webkit-tap-highlight-color: transparent;
|
|
@@ -1649,10 +1661,22 @@ button.ml-breadcrumb-link {
|
|
|
1649
1661
|
padding: 0;
|
|
1650
1662
|
}
|
|
1651
1663
|
|
|
1664
|
+
/* A label too long for the space wraps onto balanced lines instead of
|
|
1665
|
+
spilling out. The taller line height is taken back by the margins, so a
|
|
1666
|
+
one-line button is exactly as tall as before. */
|
|
1652
1667
|
.ml-button-label {
|
|
1653
1668
|
display: inline-flex;
|
|
1654
1669
|
align-items: center;
|
|
1655
1670
|
gap: var(--ml-space-1-5);
|
|
1671
|
+
margin-block: -.1em;
|
|
1672
|
+
line-height: 1.2;
|
|
1673
|
+
text-align: center;
|
|
1674
|
+
text-wrap: balance;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
.ml-button[data-width="full"] {
|
|
1678
|
+
display: flex;
|
|
1679
|
+
width: 100%;
|
|
1656
1680
|
}
|
|
1657
1681
|
|
|
1658
1682
|
.ml-button[data-state="success"] {
|
|
@@ -3493,13 +3517,16 @@ button.ml-breadcrumb-link {
|
|
|
3493
3517
|
font-size: var(--ml-type-md);
|
|
3494
3518
|
}
|
|
3495
3519
|
|
|
3520
|
+
/* A field that is a button or a group says it is invalid with data-invalid: aria-invalid belongs to inputs. */
|
|
3496
3521
|
.ml-input-field[data-invalid] .ml-input,
|
|
3497
|
-
.ml-input[aria-invalid="true"]
|
|
3522
|
+
.ml-input[aria-invalid="true"],
|
|
3523
|
+
.ml-input[data-invalid] {
|
|
3498
3524
|
border-color: var(--ml-danger);
|
|
3499
3525
|
}
|
|
3500
3526
|
|
|
3501
3527
|
.ml-input-field[data-invalid] .ml-input:focus,
|
|
3502
|
-
.ml-input[aria-invalid="true"]:focus
|
|
3528
|
+
.ml-input[aria-invalid="true"]:focus,
|
|
3529
|
+
.ml-input[data-invalid]:focus {
|
|
3503
3530
|
box-shadow: 0 0 0 3px color-mix(in oklab,var(--ml-danger) 20%,transparent);
|
|
3504
3531
|
}
|
|
3505
3532
|
|
package/generated/tokens.css
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
--ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
70
70
|
--ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
71
71
|
--ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
72
|
-
--ml-display-weight:
|
|
72
|
+
--ml-display-weight: 700;
|
|
73
73
|
--ml-body-leading: 1.495;
|
|
74
74
|
--ml-tracking: -0.0088em;
|
|
75
75
|
--ml-icon-stroke: 1.974;
|
|
@@ -200,6 +200,68 @@
|
|
|
200
200
|
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
/* data-mode="system" follows the reader's setting: light by default, dark when they ask for it. */
|
|
204
|
+
@media (prefers-color-scheme: dark) {
|
|
205
|
+
:root[data-mode="system"],
|
|
206
|
+
:root[data-theme="graphite"][data-mode="system"],
|
|
207
|
+
[data-theme="graphite"][data-mode="system"] {
|
|
208
|
+
color-scheme: dark;
|
|
209
|
+
--ml-background: oklch(0.148 0.005 286);
|
|
210
|
+
--ml-background-subtle: oklch(0.206 0.005 286);
|
|
211
|
+
--ml-surface: oklch(0.18 0.005 286);
|
|
212
|
+
--ml-surface-elevated: oklch(0.215 0.005 286);
|
|
213
|
+
--ml-text: oklch(0.959 0.004 286);
|
|
214
|
+
--ml-text-muted: oklch(0.71 0.01 286);
|
|
215
|
+
--ml-text-faint: oklch(0.64 0.008 286);
|
|
216
|
+
--ml-border: oklch(0.31 0.006 286);
|
|
217
|
+
--ml-border-subtle: oklch(0.263 0.005 286);
|
|
218
|
+
--ml-primary: oklch(0.959 0.006 286);
|
|
219
|
+
--ml-primary-foreground: oklch(0.18 0.02 286);
|
|
220
|
+
--ml-primary-hover: oklch(0.862 0.005 286);
|
|
221
|
+
--ml-primary-text: oklch(0.959 0.006 286);
|
|
222
|
+
--ml-primary-subtle: oklch(0.236 0.005 286);
|
|
223
|
+
--ml-success: oklch(0.72 0.15 150);
|
|
224
|
+
--ml-success-foreground: oklch(0.18 0.02 150);
|
|
225
|
+
--ml-success-hover: oklch(0.651 0.132 150);
|
|
226
|
+
--ml-success-text: oklch(0.72 0.15 150);
|
|
227
|
+
--ml-warning: oklch(0.8 0.16 75);
|
|
228
|
+
--ml-warning-foreground: oklch(0.18 0.02 75);
|
|
229
|
+
--ml-warning-hover: oklch(0.722 0.141 75);
|
|
230
|
+
--ml-warning-text: oklch(0.8 0.16 75);
|
|
231
|
+
--ml-danger: oklch(0.7 0.191 25);
|
|
232
|
+
--ml-danger-foreground: oklch(0.18 0.02 25);
|
|
233
|
+
--ml-danger-hover: oklch(0.75 0.151 25);
|
|
234
|
+
--ml-danger-text: oklch(0.72 0.174 25);
|
|
235
|
+
--ml-info: oklch(0.74 0.14 250);
|
|
236
|
+
--ml-info-foreground: oklch(0.18 0.02 250);
|
|
237
|
+
--ml-info-hover: oklch(0.669 0.141 250);
|
|
238
|
+
--ml-info-text: oklch(0.74 0.14 250);
|
|
239
|
+
--ml-chart-1: oklch(0.74 0.136 255);
|
|
240
|
+
--ml-chart-2: oklch(0.74 0.138 50);
|
|
241
|
+
--ml-chart-3: oklch(0.74 0.138 145);
|
|
242
|
+
--ml-chart-4: oklch(0.74 0.138 300);
|
|
243
|
+
--ml-chart-5: oklch(0.74 0.13 185);
|
|
244
|
+
--ml-chart-6: oklch(0.74 0.138 10);
|
|
245
|
+
--ml-shadow-xs: 0 1px 2px oklch(0 0 0 / 0.1087);
|
|
246
|
+
--ml-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.0889), 0 2.052px 5.92px -1px oklch(0 0 0 / 0.1186);
|
|
247
|
+
--ml-shadow-md: 0 1px 2px oklch(0 0 0 / 0.079), 0 4.103px 13.32px -2px oklch(0 0 0 / 0.1581);
|
|
248
|
+
--ml-shadow-lg: 0 2px 4px oklch(0 0 0 / 0.0692), 0 8.206px 23.68px -4px oklch(0 0 0 / 0.1976);
|
|
249
|
+
--ml-shadow-xl: 0 4px 8px oklch(0 0 0 / 0.0593), 0 15.044px 41.44px -8px oklch(0 0 0 / 0.247);
|
|
250
|
+
--ml-shadow-tint: oklch(0 0 0 / 0.1581);
|
|
251
|
+
--ml-focus: var(--ml-primary-text);
|
|
252
|
+
--ml-fill-hover: color-mix(in oklab, var(--ml-text) 5%, transparent);
|
|
253
|
+
--ml-fill-active: color-mix(in oklab, var(--ml-text) 9%, transparent);
|
|
254
|
+
--ml-track: color-mix(in oklab, var(--ml-text) 12%, transparent);
|
|
255
|
+
--ml-control-border: var(--ml-text-faint);
|
|
256
|
+
--ml-ring: 0 0 0 3px color-mix(in oklab, var(--ml-focus) 24%, transparent);
|
|
257
|
+
--ml-scrim: oklch(from var(--ml-background) calc(l * 0.22) c h / calc(0.54 - l * 0.28));
|
|
258
|
+
--ml-highlight: oklch(1 0 0);
|
|
259
|
+
--ml-knob: var(--ml-highlight);
|
|
260
|
+
--ml-knob-shadow: 0 0 0 1px oklch(0 0 0 / 0.25), 0 1px 4px oklch(0 0 0 / 0.3);
|
|
261
|
+
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
203
265
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
204
266
|
:root,
|
|
205
267
|
:root[data-theme="graphite"],
|
|
@@ -235,7 +297,7 @@
|
|
|
235
297
|
--ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
236
298
|
--ml-font-display: var(--font-newsreader, "Newsreader"), "Iowan Old Style", Georgia, serif;
|
|
237
299
|
--ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
238
|
-
--ml-display-weight:
|
|
300
|
+
--ml-display-weight: 800;
|
|
239
301
|
--ml-body-leading: 1.536;
|
|
240
302
|
--ml-tracking: -0.0133em;
|
|
241
303
|
--ml-icon-stroke: 1.687;
|
|
@@ -365,6 +427,67 @@
|
|
|
365
427
|
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
366
428
|
}
|
|
367
429
|
|
|
430
|
+
/* data-mode="system" follows the reader's setting: light by default, dark when they ask for it. */
|
|
431
|
+
@media (prefers-color-scheme: dark) {
|
|
432
|
+
:root[data-theme="atelier"][data-mode="system"],
|
|
433
|
+
[data-theme="atelier"][data-mode="system"] {
|
|
434
|
+
color-scheme: dark;
|
|
435
|
+
--ml-background: oklch(0.134 0.022 260);
|
|
436
|
+
--ml-background-subtle: oklch(0.192 0.024 260);
|
|
437
|
+
--ml-surface: oklch(0.171 0.022 260);
|
|
438
|
+
--ml-surface-elevated: oklch(0.206 0.024 260);
|
|
439
|
+
--ml-text: oklch(0.954 0.01 80);
|
|
440
|
+
--ml-text-muted: oklch(0.705 0.022 80);
|
|
441
|
+
--ml-text-faint: oklch(0.635 0.016 80);
|
|
442
|
+
--ml-border: oklch(0.306 0.028 260);
|
|
443
|
+
--ml-border-subtle: oklch(0.257 0.024 260);
|
|
444
|
+
--ml-primary: oklch(0.75 0.16 68);
|
|
445
|
+
--ml-primary-foreground: oklch(0.18 0.02 68);
|
|
446
|
+
--ml-primary-hover: oklch(0.676 0.141 68);
|
|
447
|
+
--ml-primary-text: oklch(0.75 0.16 68);
|
|
448
|
+
--ml-primary-subtle: oklch(0.222 0.049 68);
|
|
449
|
+
--ml-success: oklch(0.72 0.15 150);
|
|
450
|
+
--ml-success-foreground: oklch(0.18 0.02 150);
|
|
451
|
+
--ml-success-hover: oklch(0.65 0.132 150);
|
|
452
|
+
--ml-success-text: oklch(0.72 0.15 150);
|
|
453
|
+
--ml-warning: oklch(0.8 0.16 75);
|
|
454
|
+
--ml-warning-foreground: oklch(0.18 0.02 75);
|
|
455
|
+
--ml-warning-hover: oklch(0.72 0.141 75);
|
|
456
|
+
--ml-warning-text: oklch(0.8 0.16 75);
|
|
457
|
+
--ml-danger: oklch(0.7 0.191 25);
|
|
458
|
+
--ml-danger-foreground: oklch(0.18 0.02 25);
|
|
459
|
+
--ml-danger-hover: oklch(0.75 0.151 25);
|
|
460
|
+
--ml-danger-text: oklch(0.72 0.174 25);
|
|
461
|
+
--ml-info: oklch(0.74 0.14 250);
|
|
462
|
+
--ml-info-foreground: oklch(0.18 0.02 250);
|
|
463
|
+
--ml-info-hover: oklch(0.667 0.141 250);
|
|
464
|
+
--ml-info-text: oklch(0.74 0.14 250);
|
|
465
|
+
--ml-chart-1: oklch(0.74 0.147 58);
|
|
466
|
+
--ml-chart-2: oklch(0.74 0.136 255);
|
|
467
|
+
--ml-chart-3: oklch(0.74 0.147 145);
|
|
468
|
+
--ml-chart-4: oklch(0.74 0.147 10);
|
|
469
|
+
--ml-chart-5: oklch(0.74 0.147 300);
|
|
470
|
+
--ml-chart-6: oklch(0.74 0.13 185);
|
|
471
|
+
--ml-shadow-xs: 0 1px 2px oklch(0 0 0 / 0.1735);
|
|
472
|
+
--ml-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.142), 0 3.189px 10.974px -1px oklch(0 0 0 / 0.1893);
|
|
473
|
+
--ml-shadow-md: 0 1px 2px oklch(0 0 0 / 0.1262), 0 6.378px 24.692px -2px oklch(0 0 0 / 0.2524);
|
|
474
|
+
--ml-shadow-lg: 0 2px 4px oklch(0 0 0 / 0.1104), 0 12.756px 43.898px -4px oklch(0 0 0 / 0.3155);
|
|
475
|
+
--ml-shadow-xl: 0 4px 8px oklch(0 0 0 / 0.0946), 0 23.387px 76.821px -8px oklch(0 0 0 / 0.3944);
|
|
476
|
+
--ml-shadow-tint: oklch(0 0 0 / 0.2524);
|
|
477
|
+
--ml-focus: var(--ml-primary-text);
|
|
478
|
+
--ml-fill-hover: color-mix(in oklab, var(--ml-text) 5%, transparent);
|
|
479
|
+
--ml-fill-active: color-mix(in oklab, var(--ml-text) 9%, transparent);
|
|
480
|
+
--ml-track: color-mix(in oklab, var(--ml-text) 12%, transparent);
|
|
481
|
+
--ml-control-border: var(--ml-text-faint);
|
|
482
|
+
--ml-ring: 0 0 0 3px color-mix(in oklab, var(--ml-focus) 24%, transparent);
|
|
483
|
+
--ml-scrim: oklch(from var(--ml-background) calc(l * 0.22) c h / calc(0.54 - l * 0.28));
|
|
484
|
+
--ml-highlight: oklch(1 0 0);
|
|
485
|
+
--ml-knob: var(--ml-highlight);
|
|
486
|
+
--ml-knob-shadow: 0 0 0 1px oklch(0 0 0 / 0.25), 0 1px 4px oklch(0 0 0 / 0.3);
|
|
487
|
+
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
368
491
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
369
492
|
:root[data-theme="atelier"],
|
|
370
493
|
[data-theme="atelier"] {
|
|
@@ -399,7 +522,7 @@
|
|
|
399
522
|
--ml-font-sans: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
400
523
|
--ml-font-display: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
401
524
|
--ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
402
|
-
--ml-display-weight:
|
|
525
|
+
--ml-display-weight: 700;
|
|
403
526
|
--ml-body-leading: 1.47;
|
|
404
527
|
--ml-tracking: -0.0076em;
|
|
405
528
|
--ml-icon-stroke: 2.049;
|
|
@@ -529,6 +652,67 @@
|
|
|
529
652
|
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
530
653
|
}
|
|
531
654
|
|
|
655
|
+
/* data-mode="system" follows the reader's setting: light by default, dark when they ask for it. */
|
|
656
|
+
@media (prefers-color-scheme: dark) {
|
|
657
|
+
:root[data-theme="machined"][data-mode="system"],
|
|
658
|
+
[data-theme="machined"][data-mode="system"] {
|
|
659
|
+
color-scheme: dark;
|
|
660
|
+
--ml-background: oklch(0.145 0.012 240);
|
|
661
|
+
--ml-background-subtle: oklch(0.203 0.013 240);
|
|
662
|
+
--ml-surface: oklch(0.177 0.012 240);
|
|
663
|
+
--ml-surface-elevated: oklch(0.212 0.013 240);
|
|
664
|
+
--ml-text: oklch(0.958 0.004 240);
|
|
665
|
+
--ml-text-muted: oklch(0.708 0.01 240);
|
|
666
|
+
--ml-text-faint: oklch(0.638 0.008 240);
|
|
667
|
+
--ml-border: oklch(0.309 0.016 240);
|
|
668
|
+
--ml-border-subtle: oklch(0.261 0.013 240);
|
|
669
|
+
--ml-primary: oklch(0.78 0.135 210);
|
|
670
|
+
--ml-primary-foreground: oklch(0.18 0.02 210);
|
|
671
|
+
--ml-primary-hover: oklch(0.704 0.122 210);
|
|
672
|
+
--ml-primary-text: oklch(0.78 0.135 210);
|
|
673
|
+
--ml-primary-subtle: oklch(0.233 0.04 210);
|
|
674
|
+
--ml-success: oklch(0.72 0.15 150);
|
|
675
|
+
--ml-success-foreground: oklch(0.18 0.02 150);
|
|
676
|
+
--ml-success-hover: oklch(0.651 0.132 150);
|
|
677
|
+
--ml-success-text: oklch(0.72 0.15 150);
|
|
678
|
+
--ml-warning: oklch(0.8 0.16 75);
|
|
679
|
+
--ml-warning-foreground: oklch(0.18 0.02 75);
|
|
680
|
+
--ml-warning-hover: oklch(0.721 0.141 75);
|
|
681
|
+
--ml-warning-text: oklch(0.8 0.16 75);
|
|
682
|
+
--ml-danger: oklch(0.7 0.191 25);
|
|
683
|
+
--ml-danger-foreground: oklch(0.18 0.02 25);
|
|
684
|
+
--ml-danger-hover: oklch(0.75 0.151 25);
|
|
685
|
+
--ml-danger-text: oklch(0.72 0.174 25);
|
|
686
|
+
--ml-info: oklch(0.74 0.14 250);
|
|
687
|
+
--ml-info-foreground: oklch(0.18 0.02 250);
|
|
688
|
+
--ml-info-hover: oklch(0.669 0.141 250);
|
|
689
|
+
--ml-info-text: oklch(0.74 0.14 250);
|
|
690
|
+
--ml-chart-1: oklch(0.74 0.136 255);
|
|
691
|
+
--ml-chart-2: oklch(0.74 0.138 50);
|
|
692
|
+
--ml-chart-3: oklch(0.74 0.138 145);
|
|
693
|
+
--ml-chart-4: oklch(0.74 0.138 300);
|
|
694
|
+
--ml-chart-5: oklch(0.74 0.13 185);
|
|
695
|
+
--ml-chart-6: oklch(0.74 0.138 10);
|
|
696
|
+
--ml-shadow-xs: 0 1px 2px oklch(0 0 0 / 0.1093);
|
|
697
|
+
--ml-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.0894), 0 1.914px 5.925px -1px oklch(0 0 0 / 0.1193);
|
|
698
|
+
--ml-shadow-md: 0 1px 2px oklch(0 0 0 / 0.0795), 0 3.828px 13.331px -2px oklch(0 0 0 / 0.159);
|
|
699
|
+
--ml-shadow-lg: 0 2px 4px oklch(0 0 0 / 0.0696), 0 7.655px 23.699px -4px oklch(0 0 0 / 0.1988);
|
|
700
|
+
--ml-shadow-xl: 0 4px 8px oklch(0 0 0 / 0.0596), 0 14.034px 41.474px -8px oklch(0 0 0 / 0.2485);
|
|
701
|
+
--ml-shadow-tint: oklch(0 0 0 / 0.159);
|
|
702
|
+
--ml-focus: var(--ml-primary-text);
|
|
703
|
+
--ml-fill-hover: color-mix(in oklab, var(--ml-text) 5%, transparent);
|
|
704
|
+
--ml-fill-active: color-mix(in oklab, var(--ml-text) 9%, transparent);
|
|
705
|
+
--ml-track: color-mix(in oklab, var(--ml-text) 12%, transparent);
|
|
706
|
+
--ml-control-border: var(--ml-text-faint);
|
|
707
|
+
--ml-ring: 0 0 0 3px color-mix(in oklab, var(--ml-focus) 24%, transparent);
|
|
708
|
+
--ml-scrim: oklch(from var(--ml-background) calc(l * 0.22) c h / calc(0.54 - l * 0.28));
|
|
709
|
+
--ml-highlight: oklch(1 0 0);
|
|
710
|
+
--ml-knob: var(--ml-highlight);
|
|
711
|
+
--ml-knob-shadow: 0 0 0 1px oklch(0 0 0 / 0.25), 0 1px 4px oklch(0 0 0 / 0.3);
|
|
712
|
+
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
532
716
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
533
717
|
:root[data-theme="machined"],
|
|
534
718
|
[data-theme="machined"] {
|
|
@@ -563,7 +747,7 @@
|
|
|
563
747
|
--ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
564
748
|
--ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
565
749
|
--ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
566
|
-
--ml-display-weight:
|
|
750
|
+
--ml-display-weight: 800;
|
|
567
751
|
--ml-body-leading: 1.558;
|
|
568
752
|
--ml-tracking: -0.009em;
|
|
569
753
|
--ml-icon-stroke: 1.736;
|
|
@@ -693,6 +877,67 @@
|
|
|
693
877
|
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
694
878
|
}
|
|
695
879
|
|
|
880
|
+
/* data-mode="system" follows the reader's setting: light by default, dark when they ask for it. */
|
|
881
|
+
@media (prefers-color-scheme: dark) {
|
|
882
|
+
:root[data-theme="aerogel"][data-mode="system"],
|
|
883
|
+
[data-theme="aerogel"][data-mode="system"] {
|
|
884
|
+
color-scheme: dark;
|
|
885
|
+
--ml-background: oklch(0.141 0.034 270);
|
|
886
|
+
--ml-background-subtle: oklch(0.199 0.037 270);
|
|
887
|
+
--ml-surface: oklch(0.185 0.034 270);
|
|
888
|
+
--ml-surface-elevated: oklch(0.22 0.037 270);
|
|
889
|
+
--ml-text: oklch(0.956 0.01 260);
|
|
890
|
+
--ml-text-muted: oklch(0.712 0.025 260);
|
|
891
|
+
--ml-text-faint: oklch(0.642 0.018 260);
|
|
892
|
+
--ml-border: oklch(0.309 0.044 270);
|
|
893
|
+
--ml-border-subtle: oklch(0.261 0.037 270);
|
|
894
|
+
--ml-primary: oklch(0.75 0.134 285);
|
|
895
|
+
--ml-primary-foreground: oklch(0.18 0.02 285);
|
|
896
|
+
--ml-primary-hover: oklch(0.677 0.176 285);
|
|
897
|
+
--ml-primary-text: oklch(0.75 0.134 285);
|
|
898
|
+
--ml-primary-subtle: oklch(0.229 0.07 285);
|
|
899
|
+
--ml-success: oklch(0.72 0.15 150);
|
|
900
|
+
--ml-success-foreground: oklch(0.18 0.02 150);
|
|
901
|
+
--ml-success-hover: oklch(0.651 0.132 150);
|
|
902
|
+
--ml-success-text: oklch(0.72 0.15 150);
|
|
903
|
+
--ml-warning: oklch(0.8 0.16 75);
|
|
904
|
+
--ml-warning-foreground: oklch(0.18 0.02 75);
|
|
905
|
+
--ml-warning-hover: oklch(0.721 0.141 75);
|
|
906
|
+
--ml-warning-text: oklch(0.8 0.16 75);
|
|
907
|
+
--ml-danger: oklch(0.7 0.191 25);
|
|
908
|
+
--ml-danger-foreground: oklch(0.18 0.02 25);
|
|
909
|
+
--ml-danger-hover: oklch(0.75 0.151 25);
|
|
910
|
+
--ml-danger-text: oklch(0.72 0.174 25);
|
|
911
|
+
--ml-info: oklch(0.74 0.14 250);
|
|
912
|
+
--ml-info-foreground: oklch(0.18 0.02 250);
|
|
913
|
+
--ml-info-hover: oklch(0.668 0.141 250);
|
|
914
|
+
--ml-info-text: oklch(0.74 0.14 250);
|
|
915
|
+
--ml-chart-1: oklch(0.74 0.14 285);
|
|
916
|
+
--ml-chart-2: oklch(0.74 0.156 145);
|
|
917
|
+
--ml-chart-3: oklch(0.74 0.156 50);
|
|
918
|
+
--ml-chart-4: oklch(0.74 0.156 10);
|
|
919
|
+
--ml-chart-5: oklch(0.74 0.13 185);
|
|
920
|
+
--ml-chart-6: oklch(0.74 0.136 255);
|
|
921
|
+
--ml-shadow-xs: 0 1px 2px oklch(0 0 0 / 0.2121);
|
|
922
|
+
--ml-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.1735), 0 4.909px 14.309px -1px oklch(0 0 0 / 0.2313);
|
|
923
|
+
--ml-shadow-md: 0 1px 2px oklch(0 0 0 / 0.1542), 0 9.818px 32.195px -2px oklch(0 0 0 / 0.3084);
|
|
924
|
+
--ml-shadow-lg: 0 2px 4px oklch(0 0 0 / 0.1349), 0 19.636px 57.235px -4px oklch(0 0 0 / 0.3855);
|
|
925
|
+
--ml-shadow-xl: 0 4px 8px oklch(0 0 0 / 0.1157), 0 35.999px 100.162px -8px oklch(0 0 0 / 0.4819);
|
|
926
|
+
--ml-shadow-tint: oklch(0 0 0 / 0.3084);
|
|
927
|
+
--ml-focus: var(--ml-primary-text);
|
|
928
|
+
--ml-fill-hover: color-mix(in oklab, var(--ml-text) 5%, transparent);
|
|
929
|
+
--ml-fill-active: color-mix(in oklab, var(--ml-text) 9%, transparent);
|
|
930
|
+
--ml-track: color-mix(in oklab, var(--ml-text) 12%, transparent);
|
|
931
|
+
--ml-control-border: var(--ml-text-faint);
|
|
932
|
+
--ml-ring: 0 0 0 3px color-mix(in oklab, var(--ml-focus) 24%, transparent);
|
|
933
|
+
--ml-scrim: oklch(from var(--ml-background) calc(l * 0.22) c h / calc(0.54 - l * 0.28));
|
|
934
|
+
--ml-highlight: oklch(1 0 0);
|
|
935
|
+
--ml-knob: var(--ml-highlight);
|
|
936
|
+
--ml-knob-shadow: 0 0 0 1px oklch(0 0 0 / 0.25), 0 1px 4px oklch(0 0 0 / 0.3);
|
|
937
|
+
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
696
941
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
697
942
|
:root[data-theme="aerogel"],
|
|
698
943
|
[data-theme="aerogel"] {
|
|
@@ -727,7 +972,7 @@
|
|
|
727
972
|
--ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
728
973
|
--ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
729
974
|
--ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
730
|
-
--ml-display-weight:
|
|
975
|
+
--ml-display-weight: 800;
|
|
731
976
|
--ml-body-leading: 1.541;
|
|
732
977
|
--ml-tracking: -0.011em;
|
|
733
978
|
--ml-icon-stroke: 1.834;
|
|
@@ -857,6 +1102,67 @@
|
|
|
857
1102
|
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
858
1103
|
}
|
|
859
1104
|
|
|
1105
|
+
/* data-mode="system" follows the reader's setting: light by default, dark when they ask for it. */
|
|
1106
|
+
@media (prefers-color-scheme: dark) {
|
|
1107
|
+
:root[data-theme="nordic"][data-mode="system"],
|
|
1108
|
+
[data-theme="nordic"][data-mode="system"] {
|
|
1109
|
+
color-scheme: dark;
|
|
1110
|
+
--ml-background: oklch(0.133 0.029 145);
|
|
1111
|
+
--ml-background-subtle: oklch(0.191 0.032 145);
|
|
1112
|
+
--ml-surface: oklch(0.167 0.029 145);
|
|
1113
|
+
--ml-surface-elevated: oklch(0.202 0.032 145);
|
|
1114
|
+
--ml-text: oklch(0.953 0.01 135);
|
|
1115
|
+
--ml-text-muted: oklch(0.701 0.025 135);
|
|
1116
|
+
--ml-text-faint: oklch(0.632 0.018 135);
|
|
1117
|
+
--ml-border: oklch(0.302 0.037 145);
|
|
1118
|
+
--ml-border-subtle: oklch(0.255 0.032 145);
|
|
1119
|
+
--ml-primary: oklch(0.72 0.15 150);
|
|
1120
|
+
--ml-primary-foreground: oklch(0.18 0.02 150);
|
|
1121
|
+
--ml-primary-hover: oklch(0.65 0.132 150);
|
|
1122
|
+
--ml-primary-text: oklch(0.72 0.15 150);
|
|
1123
|
+
--ml-primary-subtle: oklch(0.221 0.061 150);
|
|
1124
|
+
--ml-success: oklch(0.72 0.15 150);
|
|
1125
|
+
--ml-success-foreground: oklch(0.18 0.02 150);
|
|
1126
|
+
--ml-success-hover: oklch(0.65 0.132 150);
|
|
1127
|
+
--ml-success-text: oklch(0.72 0.15 150);
|
|
1128
|
+
--ml-warning: oklch(0.8 0.16 75);
|
|
1129
|
+
--ml-warning-foreground: oklch(0.18 0.02 75);
|
|
1130
|
+
--ml-warning-hover: oklch(0.72 0.141 75);
|
|
1131
|
+
--ml-warning-text: oklch(0.8 0.16 75);
|
|
1132
|
+
--ml-danger: oklch(0.7 0.191 25);
|
|
1133
|
+
--ml-danger-foreground: oklch(0.18 0.02 25);
|
|
1134
|
+
--ml-danger-hover: oklch(0.75 0.151 25);
|
|
1135
|
+
--ml-danger-text: oklch(0.72 0.174 25);
|
|
1136
|
+
--ml-info: oklch(0.74 0.14 250);
|
|
1137
|
+
--ml-info-foreground: oklch(0.18 0.02 250);
|
|
1138
|
+
--ml-info-hover: oklch(0.667 0.141 250);
|
|
1139
|
+
--ml-info-text: oklch(0.74 0.14 250);
|
|
1140
|
+
--ml-chart-1: oklch(0.74 0.129 150);
|
|
1141
|
+
--ml-chart-2: oklch(0.74 0.129 300);
|
|
1142
|
+
--ml-chart-3: oklch(0.74 0.129 50);
|
|
1143
|
+
--ml-chart-4: oklch(0.74 0.129 255);
|
|
1144
|
+
--ml-chart-5: oklch(0.74 0.129 10);
|
|
1145
|
+
--ml-chart-6: oklch(0.74 0.129 185);
|
|
1146
|
+
--ml-shadow-xs: 0 1px 2px oklch(0 0 0 / 0.1456);
|
|
1147
|
+
--ml-shadow-sm: 0 1px 2px oklch(0 0 0 / 0.1191), 0 2.444px 8.702px -1px oklch(0 0 0 / 0.1588);
|
|
1148
|
+
--ml-shadow-md: 0 1px 2px oklch(0 0 0 / 0.1059), 0 4.887px 19.58px -2px oklch(0 0 0 / 0.2118);
|
|
1149
|
+
--ml-shadow-lg: 0 2px 4px oklch(0 0 0 / 0.0927), 0 9.775px 34.81px -4px oklch(0 0 0 / 0.2647);
|
|
1150
|
+
--ml-shadow-xl: 0 4px 8px oklch(0 0 0 / 0.0794), 0 17.92px 60.917px -8px oklch(0 0 0 / 0.3309);
|
|
1151
|
+
--ml-shadow-tint: oklch(0 0 0 / 0.2118);
|
|
1152
|
+
--ml-focus: var(--ml-primary-text);
|
|
1153
|
+
--ml-fill-hover: color-mix(in oklab, var(--ml-text) 5%, transparent);
|
|
1154
|
+
--ml-fill-active: color-mix(in oklab, var(--ml-text) 9%, transparent);
|
|
1155
|
+
--ml-track: color-mix(in oklab, var(--ml-text) 12%, transparent);
|
|
1156
|
+
--ml-control-border: var(--ml-text-faint);
|
|
1157
|
+
--ml-ring: 0 0 0 3px color-mix(in oklab, var(--ml-focus) 24%, transparent);
|
|
1158
|
+
--ml-scrim: oklch(from var(--ml-background) calc(l * 0.22) c h / calc(0.54 - l * 0.28));
|
|
1159
|
+
--ml-highlight: oklch(1 0 0);
|
|
1160
|
+
--ml-knob: var(--ml-highlight);
|
|
1161
|
+
--ml-knob-shadow: 0 0 0 1px oklch(0 0 0 / 0.25), 0 1px 4px oklch(0 0 0 / 0.3);
|
|
1162
|
+
--ml-sheen: linear-gradient(135deg, color-mix(in oklab, var(--ml-highlight) 18%, transparent), transparent 46%, oklch(0 0 0 / 0.05));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
860
1166
|
@supports (transition-timing-function: linear(0, 1)) {
|
|
861
1167
|
:root[data-theme="nordic"],
|
|
862
1168
|
[data-theme="nordic"] {
|
package/package.json
CHANGED
package/tokens.json
CHANGED
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
"color": {
|
|
146
146
|
"primary": "oklch(0.21 0.006 286)",
|
|
147
147
|
"primaryDark": null,
|
|
148
|
+
"primaryForeground": "auto",
|
|
148
149
|
"neutral": {
|
|
149
150
|
"hue": 286,
|
|
150
151
|
"chroma": 0.004
|
|
@@ -1187,6 +1188,7 @@
|
|
|
1187
1188
|
"color": {
|
|
1188
1189
|
"primary": "oklch(0.55 0.16 58)",
|
|
1189
1190
|
"primaryDark": "oklch(0.75 0.16 68)",
|
|
1191
|
+
"primaryForeground": "auto",
|
|
1190
1192
|
"neutral": {
|
|
1191
1193
|
"hue": 80,
|
|
1192
1194
|
"chroma": 0.016
|
|
@@ -2232,6 +2234,7 @@
|
|
|
2232
2234
|
"color": {
|
|
2233
2235
|
"primary": "oklch(0.22 0.01 240)",
|
|
2234
2236
|
"primaryDark": "oklch(0.78 0.15 210)",
|
|
2237
|
+
"primaryForeground": "auto",
|
|
2235
2238
|
"neutral": {
|
|
2236
2239
|
"hue": 240,
|
|
2237
2240
|
"chroma": 0.004
|
|
@@ -3277,6 +3280,7 @@
|
|
|
3277
3280
|
"color": {
|
|
3278
3281
|
"primary": "oklch(0.55 0.24 285)",
|
|
3279
3282
|
"primaryDark": "oklch(0.75 0.2 285)",
|
|
3283
|
+
"primaryForeground": "auto",
|
|
3280
3284
|
"neutral": {
|
|
3281
3285
|
"hue": 260,
|
|
3282
3286
|
"chroma": 0.018
|
|
@@ -4322,6 +4326,7 @@
|
|
|
4322
4326
|
"color": {
|
|
4323
4327
|
"primary": "oklch(0.5 0.14 150)",
|
|
4324
4328
|
"primaryDark": "oklch(0.72 0.15 150)",
|
|
4329
|
+
"primaryForeground": "auto",
|
|
4325
4330
|
"neutral": {
|
|
4326
4331
|
"hue": 135,
|
|
4327
4332
|
"chroma": 0.018
|