@fusion.dev/helix-styles 0.235.1 → 0.237.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/dist/base.css CHANGED
@@ -30,6 +30,7 @@ body {
30
30
  line-height: var(--helix-leading-heading);
31
31
  }
32
32
  :where([data-prose] h1) {
33
+ font-family: var(--helix-font-display);
33
34
  font-size: var(--helix-text-3xl);
34
35
  }
35
36
  :where([data-prose] h2) {
@@ -40,12 +41,13 @@ body {
40
41
  }
41
42
  :where([data-prose] h4) {
42
43
  font-size: var(--helix-text-lg);
44
+ letter-spacing: var(--helix-tracking-normal);
43
45
  }
44
- :where([data-prose] h5) {
46
+ :where([data-prose] h5, [data-prose] h6) {
45
47
  font-size: var(--helix-text-md);
46
- }
47
- :where([data-prose] h6) {
48
- font-size: var(--helix-text-sm);
48
+ font-weight: var(--helix-weight-medium);
49
+ letter-spacing: var(--helix-tracking-normal);
50
+ line-height: var(--helix-leading-normal);
49
51
  }
50
52
  :where(p, figure, blockquote, dl, dd) {
51
53
  margin: 0;
@@ -77,7 +79,7 @@ helix-card > [slot="media"] {
77
79
  color: var(--helix-color-primary);
78
80
  text-decoration: underline;
79
81
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
80
- text-decoration-thickness: 1px;
82
+ text-decoration-thickness: var(--helix-border-thin);
81
83
  text-underline-offset: 0.25em;
82
84
  transition:
83
85
  color var(--helix-duration-fast) var(--helix-easing-standard),
@@ -181,7 +183,7 @@ helix-card > [slot="media"] {
181
183
  }
182
184
  [data-text="code"] {
183
185
  font-family: var(--helix-font-mono);
184
- font-size: var(--helix-text-xs);
186
+ font-size: var(--helix-text-sm);
185
187
  font-weight: var(--helix-weight-regular);
186
188
  letter-spacing: var(--helix-tracking-normal);
187
189
  line-height: var(--helix-leading-normal);
@@ -247,14 +249,8 @@ helix-text[tone="warning"][emphasis="muted"] {
247
249
  --_button-ink: color-mix(in oklab, var(--_button-tone) 78%, var(--helix-color-foreground));
248
250
  --_button-on-tone: var(--helix-color-background);
249
251
  --_button-tone: var(--helix-color-foreground);
250
- --_button-tone-hover: light-dark(
251
- color-mix(in oklab, var(--helix-color-foreground) 72%, var(--helix-color-background)),
252
- color-mix(in oklab, var(--helix-color-foreground) 90%, var(--helix-color-background))
253
- );
254
- --_button-fill-press: light-dark(
255
- color-mix(in oklab, var(--helix-color-foreground) 60%, var(--helix-color-background)),
256
- color-mix(in oklab, var(--helix-color-foreground) 80%, var(--helix-color-background))
257
- );
252
+ --_button-tone-hover: var(--helix-color-neutral-surface-hover);
253
+ --_button-fill-press: var(--helix-color-neutral-surface-active);
258
254
  align-items: center;
259
255
  background-color: var(--button-background-color, transparent);
260
256
  block-size: var(--button-size, var(--helix-size-control));
@@ -278,8 +274,16 @@ helix-text[tone="warning"][emphasis="muted"] {
278
274
  color var(--helix-duration-fast) var(--helix-easing-standard);
279
275
  white-space: nowrap;
280
276
  }
277
+ :where([data-button]) {
278
+ position: relative;
279
+ }
280
+ [data-button]::after {
281
+ content: "";
282
+ inset: calc((var(--helix-size-target) - 100%) / -2);
283
+ position: absolute;
284
+ }
281
285
  [data-button] helix-icon {
282
- --icon-size: 1.15em;
286
+ --icon-size: round(down, 1.15em, 2px);
283
287
  }
284
288
  [data-button][data-button-tone="primary"] {
285
289
  --_button-edge: var(--helix-color-primary);
@@ -294,7 +298,7 @@ helix-text[tone="warning"][emphasis="muted"] {
294
298
  --_button-edge: var(--helix-color-accent);
295
299
  --_button-fill: var(--helix-color-accent-surface);
296
300
  --_button-fill-hover: var(--helix-color-accent-surface-hover);
297
- --_button-fill-press: oklch(from var(--helix-color-accent-surface-hover) calc(l - 0.05) c h);
301
+ --_button-fill-press: var(--helix-color-accent-surface-active);
298
302
  --_button-on-tone: var(--helix-color-foreground-on-accent);
299
303
  --_button-tone: var(--helix-color-accent);
300
304
  --_button-tone-hover: var(--helix-color-accent-hover);
@@ -303,8 +307,9 @@ helix-text[tone="warning"][emphasis="muted"] {
303
307
  --_button-edge: var(--helix-color-danger);
304
308
  --_button-fill: var(--helix-color-danger-surface);
305
309
  --_button-fill-hover: var(--helix-color-danger-surface-hover);
306
- --_button-fill-press: oklch(from var(--helix-color-danger-surface-hover) calc(l - 0.05) c h);
310
+ --_button-fill-press: var(--helix-color-danger-surface-active);
307
311
  --_button-on-tone: var(--helix-color-foreground-on-status);
312
+ --_button-subtle-dark: 22%;
308
313
  --_button-tone: var(--helix-color-danger);
309
314
  --_button-tone-hover: color-mix(
310
315
  in oklab,
@@ -316,8 +321,9 @@ helix-text[tone="warning"][emphasis="muted"] {
316
321
  --_button-edge: var(--helix-color-info);
317
322
  --_button-fill: var(--helix-color-info-surface);
318
323
  --_button-fill-hover: var(--helix-color-info-surface-hover);
319
- --_button-fill-press: oklch(from var(--helix-color-info-surface-hover) calc(l - 0.05) c h);
324
+ --_button-fill-press: var(--helix-color-info-surface-active);
320
325
  --_button-on-tone: var(--helix-color-foreground-on-status);
326
+ --_button-subtle-dark: 22%;
321
327
  --_button-tone: var(--helix-color-info);
322
328
  --_button-tone-hover: color-mix(
323
329
  in oklab,
@@ -329,8 +335,9 @@ helix-text[tone="warning"][emphasis="muted"] {
329
335
  --_button-edge: var(--helix-color-success);
330
336
  --_button-fill: var(--helix-color-success-surface);
331
337
  --_button-fill-hover: var(--helix-color-success-surface-hover);
332
- --_button-fill-press: oklch(from var(--helix-color-success-surface-hover) calc(l - 0.05) c h);
338
+ --_button-fill-press: var(--helix-color-success-surface-active);
333
339
  --_button-on-tone: var(--helix-color-foreground-on-status);
340
+ --_button-subtle-dark: 22%;
334
341
  --_button-tone: var(--helix-color-success);
335
342
  --_button-tone-hover: color-mix(
336
343
  in oklab,
@@ -340,10 +347,11 @@ helix-text[tone="warning"][emphasis="muted"] {
340
347
  }
341
348
  [data-button][data-button-tone="warning"] {
342
349
  --_button-edge: var(--helix-color-warning);
343
- --_button-fill: var(--helix-color-warning-surface);
344
- --_button-fill-hover: var(--helix-color-warning-surface-hover);
345
- --_button-fill-press: oklch(from var(--helix-color-warning-surface-hover) calc(l - 0.05) c h);
346
- --_button-on-tone: var(--helix-color-foreground-on-status);
350
+ --_button-fill: var(--helix-color-warning-solid);
351
+ --_button-fill-hover: oklch(from var(--helix-color-warning-solid) calc(l - 0.03) c h);
352
+ --_button-fill-press: oklch(from var(--helix-color-warning-solid) calc(l - 0.06) c h);
353
+ --_button-on-tone: var(--helix-color-background);
354
+ --_button-subtle-dark: 22%;
347
355
  --_button-tone: var(--helix-color-warning);
348
356
  --_button-tone-hover: color-mix(
349
357
  in oklab,
@@ -361,7 +369,10 @@ helix-text[tone="warning"][emphasis="muted"] {
361
369
  [data-button]:not(:disabled):active {
362
370
  background-color: var(
363
371
  --button-background-color,
364
- color-mix(in oklab, var(--_button-tone) 16%, transparent)
372
+ light-dark(
373
+ color-mix(in oklab, var(--_button-tone) 16%, transparent),
374
+ color-mix(in oklab, var(--_button-tone) 20%, transparent)
375
+ )
365
376
  );
366
377
  }
367
378
  [data-button][data-button-width="full"] {
@@ -384,7 +395,10 @@ helix-text[tone="warning"][emphasis="muted"] {
384
395
  [data-button="subtle"] {
385
396
  background-color: var(
386
397
  --button-background-color,
387
- color-mix(in oklab, var(--_button-tone) 14%, transparent)
398
+ light-dark(
399
+ color-mix(in oklab, var(--_button-tone) 14%, transparent),
400
+ color-mix(in oklab, var(--_button-tone) var(--_button-subtle-dark, 14%), transparent)
401
+ )
388
402
  );
389
403
  border-color: transparent;
390
404
  color: var(--button-foreground-color, var(--_button-ink));
@@ -392,7 +406,17 @@ helix-text[tone="warning"][emphasis="muted"] {
392
406
  [data-button="subtle"]:not(:disabled):hover {
393
407
  background-color: var(
394
408
  --button-background-color-hover,
395
- var(--button-background-color, color-mix(in oklab, var(--_button-tone) 22%, transparent))
409
+ var(
410
+ --button-background-color,
411
+ light-dark(
412
+ color-mix(in oklab, var(--_button-tone) 22%, transparent),
413
+ color-mix(
414
+ in oklab,
415
+ var(--_button-tone) calc(var(--_button-subtle-dark, 14%) + 8%),
416
+ transparent
417
+ )
418
+ )
419
+ )
396
420
  );
397
421
  border-color: transparent;
398
422
  }
@@ -450,7 +474,13 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
450
474
  [data-button="ghost"]:not(:disabled):hover {
451
475
  background-color: var(
452
476
  --button-background-color-hover,
453
- var(--button-background-color, color-mix(in oklab, var(--_button-tone) 8%, transparent))
477
+ var(
478
+ --button-background-color,
479
+ light-dark(
480
+ color-mix(in oklab, var(--_button-tone) 8%, transparent),
481
+ color-mix(in oklab, var(--_button-tone) 12%, transparent)
482
+ )
483
+ )
454
484
  );
455
485
  border-color: transparent;
456
486
  color: var(--button-foreground-color, var(--_button-ink));
@@ -462,38 +492,175 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
462
492
  [data-button="subtle"]:not(:disabled):active {
463
493
  background-color: var(
464
494
  --button-background-color,
465
- color-mix(in oklab, var(--_button-tone) 30%, transparent)
495
+ light-dark(
496
+ color-mix(in oklab, var(--_button-tone) 30%, transparent),
497
+ color-mix(
498
+ in oklab,
499
+ var(--_button-tone) calc(var(--_button-subtle-dark, 14%) + 16%),
500
+ transparent
501
+ )
502
+ )
466
503
  );
467
504
  }
468
505
  [data-button="ghost"]:not(:disabled):active {
469
506
  background-color: var(
470
507
  --button-background-color,
471
- color-mix(in oklab, var(--_button-tone) 16%, transparent)
508
+ light-dark(
509
+ color-mix(in oklab, var(--_button-tone) 16%, transparent),
510
+ color-mix(in oklab, var(--_button-tone) 20%, transparent)
511
+ )
472
512
  );
473
513
  }
514
+ @media (forced-colors: active) {[data-button="solid"],
515
+ [data-button="solid"]:not(:disabled):active {
516
+ forced-color-adjust: none;
517
+ background-color: ButtonText;
518
+ border-color: ButtonText;
519
+ color: ButtonFace;
520
+ }
521
+ @media (hover: hover) {
522
+ [data-button="solid"]:not(:disabled):hover {
523
+ forced-color-adjust: none;
524
+ background-color: ButtonText;
525
+ border-color: ButtonText;
526
+ color: ButtonFace;
527
+ }
528
+ }
529
+ [data-button][aria-disabled="true"] {
530
+ border-color: GrayText;
531
+ color: GrayText;
532
+ opacity: 1;
533
+ }
534
+ [data-button="solid"]:disabled,
535
+ [data-button="solid"][aria-disabled="true"] {
536
+ background-color: GrayText;
537
+ border-color: GrayText;
538
+ color: ButtonFace;
539
+ }[data-button="ghost"] {
540
+ border-color: Canvas;
541
+ }
542
+ @media (hover: hover) {
543
+ [data-button="ghost"]:not(:disabled):hover {
544
+ border-color: Canvas;
545
+ }
546
+ }
547
+ }
474
548
  [data-button][aria-disabled="true"] {
475
549
  cursor: not-allowed;
476
550
  opacity: var(--helix-opacity-disabled);
477
551
  }
478
552
  [data-density] {
479
553
  --helix-size-control-tight: round(calc(var(--helix-size-control) * 0.8), 1px);
480
- --helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
481
- --helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
482
- --helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
483
- --helix-size-checkbox-tight: calc(var(--helix-size-checkbox) * 0.8);
484
- --helix-size-checkbox-loose: calc(var(--helix-size-checkbox) * 1.2);
554
+ --helix-size-control-loose: round(calc(var(--helix-size-control) * 1.2), 1px);
555
+ --helix-size-icon-tight: round(calc(var(--helix-size-icon) * 0.8), 2px);
556
+ --helix-size-icon-loose: round(calc(var(--helix-size-icon) * 1.2), 2px);
557
+ --helix-size-checkbox-tight: round(calc(var(--helix-size-checkbox) * 0.8), 1px);
558
+ --helix-size-checkbox-loose: round(calc(var(--helix-size-checkbox) * 1.2), 1px);
485
559
  }
486
560
  [data-density] {
487
- --helix-text-control: calc(var(--helix-text-control-md) * var(--helix-density, 1));
488
- --helix-space-control: calc(var(--helix-space-md) * var(--helix-density, 1));
489
- --helix-text-field: calc(var(--helix-text-md) * var(--helix-density, 1));
490
- --helix-text-field-label: calc(var(--helix-text-sm) * var(--helix-density, 1));
491
- --helix-space-field: calc(var(--helix-space-sm) * var(--helix-density, 1));
492
- --helix-size-checkbox: calc(var(--helix-size-checkbox-md) * var(--helix-density, 1));
493
- --helix-size-icon: calc(var(--helix-size-icon-md) * var(--helix-density, 1));
494
- --helix-size-control: calc(var(--helix-size-control-md) * var(--helix-density, 1));
495
- --helix-size-switch: calc(var(--helix-size-switch-md) * var(--helix-density, 1));
496
- --helix-size-tag: calc(var(--helix-size-tag-md) * var(--helix-density, 1));
561
+ --_helix-density-down: min(calc((var(--helix-density, 1) - 1) * 5), 0);
562
+ --_helix-density-up: max(calc((var(--helix-density, 1) - 1) * 5), 0);
563
+ --helix-text-control: round(
564
+ calc(
565
+ var(--helix-text-control-md) +
566
+ var(--_helix-density-down) *
567
+ (var(--helix-text-control-md) - var(--helix-text-control-sm)) +
568
+ var(--_helix-density-up) *
569
+ (var(--helix-text-control-lg) - var(--helix-text-control-md))
570
+ ),
571
+ 1px
572
+ );
573
+ --helix-space-control: round(
574
+ calc(
575
+ var(--helix-space-md) +
576
+ var(--_helix-density-down) *
577
+ (var(--helix-space-md) - var(--helix-space-sm)) +
578
+ var(--_helix-density-up) *
579
+ (var(--helix-space-lg) - var(--helix-space-md))
580
+ ),
581
+ 1px
582
+ );
583
+ --helix-text-field: round(
584
+ calc(
585
+ var(--helix-text-md) +
586
+ var(--_helix-density-down) *
587
+ (var(--helix-text-md) - var(--helix-text-sm)) +
588
+ var(--_helix-density-up) *
589
+ (var(--helix-text-md) - var(--helix-text-md))
590
+ ),
591
+ 1px
592
+ );
593
+ --helix-text-field-label: round(
594
+ calc(
595
+ var(--helix-text-sm) +
596
+ var(--_helix-density-down) *
597
+ (var(--helix-text-sm) - var(--helix-text-xs)) +
598
+ var(--_helix-density-up) *
599
+ (var(--helix-text-sm) - var(--helix-text-sm))
600
+ ),
601
+ 1px
602
+ );
603
+ --helix-space-field: round(
604
+ calc(
605
+ var(--helix-space-sm) +
606
+ var(--_helix-density-down) *
607
+ (var(--helix-space-sm) - var(--helix-space-xs)) +
608
+ var(--_helix-density-up) *
609
+ (var(--helix-space-md) - var(--helix-space-sm))
610
+ ),
611
+ 1px
612
+ );
613
+ --helix-space-row-bleed: round(calc(var(--helix-space-xs) * var(--helix-density, 1)), 1px);
614
+ --helix-size-checkbox: round(
615
+ calc(
616
+ var(--helix-size-checkbox-md) +
617
+ var(--_helix-density-down) *
618
+ (var(--helix-size-checkbox-md) - var(--helix-size-checkbox-sm)) +
619
+ var(--_helix-density-up) *
620
+ (var(--helix-size-checkbox-lg) - var(--helix-size-checkbox-md))
621
+ ),
622
+ 1px
623
+ );
624
+ --helix-size-icon: round(
625
+ calc(
626
+ var(--helix-size-icon-md) +
627
+ var(--_helix-density-down) *
628
+ (var(--helix-size-icon-md) - var(--helix-size-icon-sm)) +
629
+ var(--_helix-density-up) *
630
+ (var(--helix-size-icon-lg) - var(--helix-size-icon-md))
631
+ ),
632
+ 2px
633
+ );
634
+ --helix-size-control: round(
635
+ calc(
636
+ var(--helix-size-control-md) +
637
+ var(--_helix-density-down) *
638
+ (var(--helix-size-control-md) - var(--helix-size-control-sm)) +
639
+ var(--_helix-density-up) *
640
+ (var(--helix-size-control-lg) - var(--helix-size-control-md))
641
+ ),
642
+ 1px
643
+ );
644
+ --helix-size-switch: round(
645
+ calc(
646
+ var(--helix-size-switch-md) +
647
+ var(--_helix-density-down) *
648
+ (var(--helix-size-switch-md) - var(--helix-size-switch-sm)) +
649
+ var(--_helix-density-up) *
650
+ (var(--helix-size-switch-lg) - var(--helix-size-switch-md))
651
+ ),
652
+ 1px
653
+ );
654
+ --helix-size-tag: round(
655
+ calc(
656
+ var(--helix-size-tag-md) +
657
+ var(--_helix-density-down) *
658
+ (var(--helix-size-tag-md) - var(--helix-size-tag-sm)) +
659
+ var(--_helix-density-up) *
660
+ (var(--helix-size-tag-lg) - var(--helix-size-tag-md))
661
+ ),
662
+ 1px
663
+ );
497
664
  }
498
665
  [data-density="sm"] {
499
666
  --helix-text-control: var(--helix-text-control-sm);
@@ -501,6 +668,7 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
501
668
  --helix-text-field: var(--helix-text-sm);
502
669
  --helix-text-field-label: var(--helix-text-xs);
503
670
  --helix-space-field: var(--helix-space-xs);
671
+ --helix-space-row-bleed: var(--helix-space-2xs);
504
672
  --helix-size-checkbox: var(--helix-size-checkbox-sm);
505
673
  --helix-size-icon: var(--helix-size-icon-sm);
506
674
  --helix-size-control: var(--helix-size-control-sm);
@@ -513,6 +681,7 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
513
681
  --helix-text-field: var(--helix-text-md);
514
682
  --helix-text-field-label: var(--helix-text-sm);
515
683
  --helix-space-field: var(--helix-space-sm);
684
+ --helix-space-row-bleed: var(--helix-space-xs);
516
685
  --helix-size-checkbox: var(--helix-size-checkbox-md);
517
686
  --helix-size-icon: var(--helix-size-icon-md);
518
687
  --helix-size-control: var(--helix-size-control-md);
@@ -525,12 +694,21 @@ helix-button-group[orientation="vertical"]:not([layout="spaced"]) > button:not(:
525
694
  --helix-text-field: var(--helix-text-md);
526
695
  --helix-text-field-label: var(--helix-text-sm);
527
696
  --helix-space-field: var(--helix-space-md);
697
+ --helix-space-row-bleed: var(--helix-space-sm);
528
698
  --helix-size-checkbox: var(--helix-size-checkbox-lg);
529
699
  --helix-size-icon: var(--helix-size-icon-lg);
530
700
  --helix-size-control: var(--helix-size-control-lg);
531
701
  --helix-size-switch: var(--helix-size-switch-lg);
532
702
  --helix-size-tag: var(--helix-size-tag-lg);
533
703
  }
704
+ @media (pointer: coarse) {
705
+ [data-density="sm"] {
706
+ --helix-size-icon-tight: max(
707
+ round(calc(var(--helix-size-icon) * 0.8), 2px),
708
+ var(--helix-size-icon-sm)
709
+ );
710
+ }
711
+ }
534
712
  helix-toggle::part(item) {
535
713
  align-items: center;
536
714
  background: none;
@@ -555,6 +733,11 @@ helix-toggle::part(item) {
555
733
  background-color var(--helix-duration-fast) var(--helix-easing-standard),
556
734
  color var(--helix-duration-fast) var(--helix-easing-standard);
557
735
  white-space: nowrap;
736
+ }
737
+ @media (pointer: coarse) {
738
+ helix-toggle::part(item) {
739
+ overflow: visible;
740
+ }
558
741
  }@media (hover: hover) {
559
742
  helix-toggle:not([disabled])::part(item):hover {
560
743
  background-color: color-mix(in oklab, var(--helix-color-foreground) 5%, transparent);
@@ -610,6 +793,19 @@ helix-toggle[disabled]::part(item) {
610
793
  :where(helix-navigation[orientation="vertical"]) :where([data-navigation-item], a) {
611
794
  justify-content: start;
612
795
  }
796
+ :where(helix-navigation[orientation="vertical"]) :where([data-navigation-item], a) {
797
+ align-content: center;
798
+ display: block;
799
+ min-inline-size: 0;
800
+ overflow: hidden;
801
+ text-overflow: ellipsis;
802
+ }
803
+ :where(helix-navigation[orientation="vertical"])
804
+ :where([data-navigation-item], a)
805
+ > :where(helix-icon) {
806
+ margin-inline-end: var(--helix-space-xs);
807
+ vertical-align: round(calc(0.5cap - var(--icon-size, var(--helix-size-icon)) / 2), 1px);
808
+ }
613
809
  :where(helix-navigation:not([orientation="vertical"])) :where([data-navigation-item], a) {
614
810
  position: relative;
615
811
  }
@@ -626,12 +822,6 @@ helix-toggle[disabled]::part(item) {
626
822
  }
627
823
  :where(helix-navigation[marker="segmented"]) :where([data-navigation-item], a) {
628
824
  min-block-size: 0;
629
- }
630
- :where(helix-navigation[orientation="vertical"]) :where(li) > :where([data-navigation-item], a) {
631
- display: flex;
632
- }
633
- :where([data-navigation-item], helix-navigation a):active {
634
- background-color: var(--helix-color-press);
635
825
  }@media (hover: hover) {
636
826
  :where([data-navigation-item], helix-navigation a):hover {
637
827
  background-color: var(
@@ -641,6 +831,9 @@ helix-toggle[disabled]::part(item) {
641
831
  color: var(--navigation-item-hover-color, var(--helix-color-foreground));
642
832
  }
643
833
  }
834
+ :where([data-navigation-item], helix-navigation a):active {
835
+ background-color: var(--helix-color-press);
836
+ }
644
837
  :where(helix-outline) :where(ul, ol) {
645
838
  list-style: none;
646
839
  margin: 0;
@@ -824,7 +1017,7 @@ helix-toggle[disabled]::part(item) {
824
1017
  }
825
1018
  [data-material="glass"] {
826
1019
  backdrop-filter: var(--helix-material-backdrop);
827
- background-color: var(--helix-material-translucent);
1020
+ background-color: var(--helix-material-panel);
828
1021
  border: var(--helix-border-thin) solid var(--helix-material-border);
829
1022
  }
830
1023
  [data-material="frosted"] {
@@ -838,13 +1031,13 @@ helix-toggle[disabled]::part(item) {
838
1031
  border-color: transparent;
839
1032
  }
840
1033
  [data-separation="elevated"] {
841
- background-color: var(--helix-color-surface);
1034
+ background-color: light-dark(var(--helix-color-surface), var(--helix-color-surface-overlay));
842
1035
  border-color: transparent;
843
1036
  border-radius: var(--helix-radii-sm);
844
1037
  box-shadow: var(--helix-shadow-md);
845
1038
  }
846
1039
  [data-separation="filled"] {
847
- background-color: var(--helix-color-surface);
1040
+ background-color: var(--helix-color-surface-filled);
848
1041
  border-radius: var(--helix-radii-sm);
849
1042
  color: var(--helix-color-foreground);
850
1043
  }
@@ -857,6 +1050,37 @@ helix-toggle[disabled]::part(item) {
857
1050
  border-color: transparent;
858
1051
  box-shadow: none;
859
1052
  }
1053
+ [data-surface="sunken"] {
1054
+ background-color: var(--helix-color-surface-sunken);
1055
+ --helix-color-border: light-dark(
1056
+ color-mix(in oklab, var(--helix-color-foreground) 7%, var(--helix-color-surface-sunken)),
1057
+ color-mix(in oklab, var(--helix-color-foreground) 12%, var(--helix-color-surface-sunken))
1058
+ );
1059
+ --_helix-sunken-surface: var(--helix-color-surface);
1060
+ --_helix-sunken-raised: var(--helix-color-surface-raised);
1061
+ --_helix-sunken-overlay: var(--helix-color-surface-overlay);
1062
+ }
1063
+ :where([data-surface="sunken"] > *) {
1064
+ --helix-color-surface: light-dark(var(--_helix-sunken-surface), var(--_helix-sunken-raised));
1065
+ --helix-color-surface-raised: light-dark(
1066
+ var(--_helix-sunken-raised),
1067
+ color-mix(in oklab, var(--helix-color-foreground) 5%, var(--_helix-sunken-overlay))
1068
+ );
1069
+ --helix-color-surface-overlay: light-dark(
1070
+ var(--_helix-sunken-overlay),
1071
+ color-mix(in oklab, var(--helix-color-foreground) 8%, var(--_helix-sunken-overlay))
1072
+ );
1073
+ --helix-color-surface-filled: light-dark(
1074
+ color-mix(in oklab, var(--helix-color-foreground) 5%, transparent),
1075
+ color-mix(in oklab, var(--helix-color-foreground) 6%, transparent)
1076
+ );
1077
+ }
1078
+ :where(helix-dialog, helix-drawer, helix-popover) {
1079
+ --helix-color-surface-filled: light-dark(
1080
+ color-mix(in oklab, var(--helix-color-foreground) 5%, transparent),
1081
+ color-mix(in oklab, var(--helix-color-foreground) 6%, transparent)
1082
+ );
1083
+ }
860
1084
  :where([data-card]) {
861
1085
  border-radius: var(--card-radius, var(--helix-radii-md));
862
1086
  color: inherit;
@@ -867,8 +1091,11 @@ helix-toggle[disabled]::part(item) {
867
1091
  transition: outline-color var(--helix-duration-fast) var(--helix-easing-standard);
868
1092
  }@media (hover: hover) {
869
1093
  :where([data-card]):hover {
870
- --card-border-color: var(--helix-color-primary);
871
- outline-color: var(--helix-color-primary);
1094
+ --card-border-color: var(--helix-color-border-hover);
1095
+ }
1096
+ }@media (hover: hover) {
1097
+ :where([data-card]:not(:has(> helix-card))):hover {
1098
+ outline-color: var(--helix-color-border-hover);
872
1099
  }
873
1100
  }
874
1101
  :where([data-card])[aria-current] {
@@ -884,6 +1111,27 @@ helix-toast:not([data-color-mode]) {
884
1111
  :where([data-prose] blockquote, [data-prose] helix-callout) {
885
1112
  margin-block: var(--helix-space-none) var(--helix-space-sm);
886
1113
  }
1114
+ :where([data-prose] p, [data-prose] ul, [data-prose] ol, [data-prose] blockquote) {
1115
+ max-inline-size: 50ch;
1116
+ }
1117
+ :where([data-prose="reading"]) {
1118
+ font-size: var(--helix-text-lg);
1119
+ line-height: var(--helix-leading-normal);
1120
+ }
1121
+ :where([data-prose="reading"])
1122
+ :where(p, ul, ol, pre, table, blockquote, helix-code-block, helix-table, helix-callout) {
1123
+ margin-block: var(--helix-space-none) var(--helix-space-md);
1124
+ }
1125
+ :where([data-prose="reading"]) :where(p, ul, ol, blockquote) {
1126
+ max-inline-size: 34em;
1127
+ }
1128
+ :where([data-prose="reading"]) :where(table, helix-table) {
1129
+ --helix-text-control: calc((var(--helix-text-md) + var(--helix-text-lg)) / 2);
1130
+ font-size: var(--helix-text-control);
1131
+ }
1132
+ :where([data-prose="reading"]) :where(h5, h6) {
1133
+ font-size: 1em;
1134
+ }
887
1135
  :where([data-prose] > :last-child),
888
1136
  :where([data-prose] :is(blockquote, helix-callout, li, td, th) > :last-child) {
889
1137
  margin-block-end: var(--helix-space-none);
@@ -940,6 +1188,9 @@ helix-toast:not([data-color-mode]) {
940
1188
  max-inline-size: 100%;
941
1189
  overflow-x: auto;
942
1190
  }
1191
+ :where([data-prose="reading"] [data-table]:not(:last-child)) {
1192
+ margin-block-end: var(--helix-space-md);
1193
+ }
943
1194
  :where([data-prose] [data-table] > table) {
944
1195
  display: table;
945
1196
  inline-size: 100%;
@@ -985,6 +1236,14 @@ helix-toast:not([data-color-mode]) {
985
1236
  margin-inline: calc(var(--helix-space-md) * -1) var(--helix-space-2xs);
986
1237
  vertical-align: middle;
987
1238
  }
1239
+ :where([data-prose] code, [data-prose] samp, [data-prose] pre) {
1240
+ font-size: calc(var(--helix-text-sm) / var(--helix-text-md) * 1em);
1241
+ font-variant-ligatures: none;
1242
+ }
1243
+ :where([data-prose]) :where(:not(pre) > code) {
1244
+ display: inline-block;
1245
+ max-inline-size: 100%;
1246
+ }
988
1247
  :where([data-prose] pre) {
989
1248
  background-color: var(--helix-color-surface-sunken);
990
1249
  border-radius: var(--helix-radii-sm);
@@ -996,11 +1255,26 @@ helix-toast:not([data-color-mode]) {
996
1255
  font-size: inherit;
997
1256
  padding: var(--helix-space-none);
998
1257
  }
1258
+ :where([data-prose="reading"]) {
1259
+ --code-block-font-size: calc(
1260
+ var(--helix-text-sm) /
1261
+ var(--helix-text-md) *
1262
+ (var(--helix-text-md) + var(--helix-text-lg)) /
1263
+ 2
1264
+ );
1265
+ }
1266
+ :where([data-prose="reading"]) :where(p, li, blockquote, table, helix-table) {
1267
+ --code-size: var(--code-block-font-size);
1268
+ }
1269
+ :where([data-prose="reading"]) :where(p, li, blockquote, table) :where(code, samp),
1270
+ :where([data-prose="reading"]) :where(pre) {
1271
+ font-size: var(--code-block-font-size);
1272
+ }
999
1273
  :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table, pre),
1000
1274
  :where(helix-chat-message) :where(helix-table) {
1001
1275
  background-color: var(--helix-color-surface-sunken);
1002
1276
  border: var(--helix-border-thin) solid var(--helix-color-border);
1003
- border-radius: var(--helix-radii-lg);
1277
+ border-radius: var(--helix-radii-sm);
1004
1278
  }
1005
1279
  :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table),
1006
1280
  :where(helix-chat-message) :where(helix-table) {
@@ -1133,10 +1407,12 @@ helix-toast:not([data-color-mode]) {
1133
1407
  }
1134
1408
  }
1135
1409
  ::highlight(helix-filter-match) {
1136
- background-color: light-dark(
1137
- color-mix(in oklab, var(--helix-color-primary) 22%, transparent),
1138
- color-mix(in oklab, var(--helix-color-primary) 32%, transparent)
1139
- );
1410
+ background-color: transparent;
1411
+ color: var(--helix-color-foreground);
1412
+ text-decoration-color: var(--helix-color-primary);
1413
+ text-decoration-line: underline;
1414
+ text-decoration-thickness: var(--helix-border-thick);
1415
+ text-underline-offset: 0.2em;
1140
1416
  }
1141
1417
  ::highlight(helix-find-match) {
1142
1418
  background-color: light-dark(