basecoat-css 1.0.0-beta.4 → 1.0.0-beta.6

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 (53) hide show
  1. package/dist/base/base.css +1 -1
  2. package/dist/basecoat-base.cdn.css +275 -27
  3. package/dist/basecoat-base.cdn.min.css +1 -1
  4. package/dist/basecoat-components.css +2 -0
  5. package/dist/basecoat-luma.cdn.css +494 -56
  6. package/dist/basecoat-luma.cdn.min.css +1 -1
  7. package/dist/basecoat-lyra.cdn.css +491 -53
  8. package/dist/basecoat-lyra.cdn.min.css +1 -1
  9. package/dist/basecoat-maia.cdn.css +483 -56
  10. package/dist/basecoat-maia.cdn.min.css +1 -1
  11. package/dist/basecoat-mira.cdn.css +480 -56
  12. package/dist/basecoat-mira.cdn.min.css +1 -1
  13. package/dist/basecoat-nova.cdn.css +499 -56
  14. package/dist/basecoat-nova.cdn.min.css +1 -1
  15. package/dist/basecoat-rhea.cdn.css +504 -67
  16. package/dist/basecoat-rhea.cdn.min.css +1 -1
  17. package/dist/basecoat-sera.cdn.css +484 -54
  18. package/dist/basecoat-sera.cdn.min.css +1 -1
  19. package/dist/basecoat-vega.cdn.css +488 -55
  20. package/dist/basecoat-vega.cdn.min.css +1 -1
  21. package/dist/basecoat.cdn.css +488 -55
  22. package/dist/basecoat.cdn.min.css +1 -1
  23. package/dist/components/accordion.css +27 -0
  24. package/dist/components/alert.css +12 -0
  25. package/dist/components/avatar.css +6 -6
  26. package/dist/components/breadcrumb.css +30 -0
  27. package/dist/components/card.css +4 -0
  28. package/dist/components/combobox.css +23 -2
  29. package/dist/components/command.css +19 -12
  30. package/dist/components/dialog.css +30 -1
  31. package/dist/components/dropdown-menu.css +1 -1
  32. package/dist/components/popover.css +27 -1
  33. package/dist/js/accordion.js +68 -0
  34. package/dist/js/accordion.min.js +1 -0
  35. package/dist/js/all.js +245 -41
  36. package/dist/js/all.min.js +1 -1
  37. package/dist/js/combobox.js +115 -26
  38. package/dist/js/combobox.min.js +1 -1
  39. package/dist/js/command.js +3 -1
  40. package/dist/js/command.min.js +1 -1
  41. package/dist/js/dropdown-menu.js +12 -1
  42. package/dist/js/dropdown-menu.min.js +1 -1
  43. package/dist/js/select.js +46 -13
  44. package/dist/js/select.min.js +1 -1
  45. package/dist/styles/luma.css +105 -15
  46. package/dist/styles/lyra.css +96 -14
  47. package/dist/styles/maia.css +105 -15
  48. package/dist/styles/mira.css +105 -15
  49. package/dist/styles/nova.css +103 -17
  50. package/dist/styles/rhea.css +109 -19
  51. package/dist/styles/sera.css +100 -14
  52. package/dist/styles/vega.css +102 -16
  53. package/package.json +1 -1
@@ -1,5 +1,22 @@
1
- /* Button */
1
+ /* Accordion */
2
2
  @layer components {
3
+ .accordion > details {
4
+ @apply not-last:border-b;
5
+ }
6
+
7
+ .accordion > details > summary {
8
+ @apply focus-visible:ring-ring/30 focus-visible:border-ring rounded-none gap-6 py-4 text-left text-sm font-semibold hover:underline focus-visible:ring-2;
9
+ }
10
+
11
+ .accordion > details > summary > svg:last-child {
12
+ @apply text-muted-foreground ms-auto size-3.5;
13
+ }
14
+
15
+ .accordion > details > :not(summary) {
16
+ @apply pt-0 pb-4 text-sm;
17
+ }
18
+
19
+ /* Button */
3
20
  .btn {
4
21
  @apply rounded-none border border-transparent bg-clip-padding text-xs font-semibold uppercase tracking-widest focus-visible:border-ring focus-visible:ring-ring/30 focus-visible:ring-[2px] aria-invalid:border-destructive aria-invalid:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-3.5;
5
22
  }
@@ -263,7 +280,7 @@
263
280
  @apply size-10;
264
281
  }
265
282
 
266
- .avatar > span:not([data-badge]) {
283
+ .avatar > span:not(.avatar-badge) {
267
284
  @apply bg-muted text-muted-foreground rounded-[inherit];
268
285
  }
269
286
 
@@ -271,7 +288,7 @@
271
288
  @apply rounded-[inherit];
272
289
  }
273
290
 
274
- .avatar > [data-badge] {
291
+ .avatar > .avatar-badge {
275
292
  @apply bg-primary text-primary-foreground ring-background;
276
293
  }
277
294
 
@@ -317,17 +334,42 @@
317
334
  @apply text-foreground underline-offset-4 hover:underline;
318
335
  }
319
336
 
337
+ /* Breadcrumb */
338
+ .breadcrumb > ol {
339
+ @apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
340
+ }
341
+
342
+ .breadcrumb li {
343
+ @apply gap-1.5;
344
+ }
345
+
346
+ .breadcrumb a {
347
+ @apply transition-colors hover:text-foreground;
348
+ }
349
+
350
+ .breadcrumb [aria-current='page'] {
351
+ @apply font-normal text-foreground;
352
+ }
353
+
354
+ .breadcrumb li[aria-hidden='true'] > svg {
355
+ @apply size-3.5;
356
+ }
357
+
358
+ .breadcrumb li > span[aria-hidden='true'] {
359
+ @apply size-5 [&>svg]:size-4;
360
+ }
361
+
320
362
  /* Command */
321
363
  .command {
322
364
  @apply bg-popover text-popover-foreground rounded-none;
323
365
  }
324
366
 
325
- .command-dialog > * {
326
- @apply rounded-none p-0;
367
+ .command-dialog > .command {
368
+ @apply bg-popover text-popover-foreground ring-foreground/10 rounded-none shadow-md ring-1 duration-100;
327
369
  }
328
370
 
329
371
  .command > header {
330
- @apply m-1 gap-2 border-b border-b-input bg-transparent px-3;
372
+ @apply m-1 gap-0 border-b border-b-input bg-transparent px-3;
331
373
  }
332
374
 
333
375
  .command > header svg {
@@ -335,7 +377,7 @@
335
377
  }
336
378
 
337
379
  .command > header input {
338
- @apply h-9 px-2 text-sm placeholder:text-muted-foreground;
380
+ @apply h-9 ps-1.5 pe-2 text-sm placeholder:text-muted-foreground;
339
381
  }
340
382
 
341
383
  .command [role='menu'] {
@@ -363,7 +405,7 @@
363
405
  }
364
406
 
365
407
  .command [role='menuitem'].active {
366
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
408
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
367
409
  }
368
410
 
369
411
  .command [data-shortcut] {
@@ -386,11 +428,15 @@
386
428
  }
387
429
 
388
430
  .combobox [data-popover] {
389
- @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-none p-1.5 shadow-md ring-1 duration-100;
431
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-none p-0 shadow-md ring-1 duration-100;
390
432
  }
391
433
 
392
434
  .combobox [role='listbox'] {
393
- @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto;
435
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1.5 overflow-y-auto p-1.5;
436
+ }
437
+
438
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
439
+ @apply p-0;
394
440
  }
395
441
 
396
442
  .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
@@ -407,7 +453,7 @@
407
453
 
408
454
  .combobox [role='option'].active,
409
455
  .combobox [role='option']:focus-visible {
410
- @apply bg-muted text-foreground [&_svg]:text-foreground;
456
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
411
457
  }
412
458
 
413
459
  .combobox [role='group'] {
@@ -429,6 +475,14 @@
429
475
  .combobox-chip-remove {
430
476
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
431
477
  }
478
+
479
+ .combobox [data-popover] > .input-group {
480
+ @apply m-1.5 mb-0 h-8 w-auto border-transparent border-b-input bg-transparent px-2.5 shadow-none focus-within:border-transparent focus-within:ring-0;
481
+ }
482
+
483
+ .combobox [data-popover] > input[role='combobox'] {
484
+ @apply mb-1 w-full;
485
+ }
432
486
  /* Select */
433
487
  *:not(select).select > button {
434
488
  @apply border-transparent border-b-input bg-transparent focus-visible:border-b-ring aria-invalid:border-b-destructive dark:aria-invalid:border-b-destructive/50 h-10 data-[size=sm]:h-9 gap-1.5 rounded-none border px-0 py-2 text-sm transition-[color,border-color] [&_svg:not([class*='size-'])]:size-3.5;
@@ -481,10 +535,15 @@
481
535
 
482
536
  /* Dialog */
483
537
  .dialog::backdrop,
538
+ .alert-dialog::backdrop,
484
539
  .command-dialog::backdrop {
485
540
  @apply bg-black/20 backdrop-blur-sm duration-100;
486
541
  }
487
542
 
543
+ .alert-dialog > * {
544
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-none p-6 shadow-md ring-1 duration-100 sm:max-w-md;
545
+ }
546
+
488
547
  .dialog > * {
489
548
  @apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-none p-6 text-sm shadow-md ring-1 duration-100 sm:max-w-md;
490
549
  }
@@ -501,6 +560,15 @@
501
560
  @apply gap-2;
502
561
  }
503
562
 
563
+ .alert-dialog > * > header {
564
+ @apply gap-x-6 gap-y-1.5;
565
+ }
566
+
567
+ .alert-dialog > * > header > figure {
568
+ @apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-none [&>svg:not([class*='size-'])]:size-8;
569
+ }
570
+
571
+ .alert-dialog > * > footer,
504
572
  .dialog > * > footer {
505
573
  @apply gap-2;
506
574
  }
@@ -510,11 +578,21 @@
510
578
  @apply text-lg leading-none font-semibold tracking-wider uppercase;
511
579
  }
512
580
 
581
+ .alert-dialog > * > header > h2,
582
+ .alert-dialog > * > [data-title] {
583
+ @apply text-lg font-semibold tracking-wider uppercase;
584
+ }
585
+
513
586
  .dialog > * > header > p,
514
587
  .dialog > * > [data-description] {
515
588
  @apply text-muted-foreground mt-0.5 text-sm leading-relaxed [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
516
589
  }
517
590
 
591
+ .alert-dialog > * > header > p,
592
+ .alert-dialog > * > [data-description] {
593
+ @apply text-muted-foreground mt-0.5 text-sm leading-relaxed text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
594
+ }
595
+
518
596
  /* Dropdown Menu */
519
597
  .dropdown-menu > [data-popover] {
520
598
  @apply bg-popover text-popover-foreground ring-foreground/10 min-w-48 gap-0 overflow-x-hidden overflow-y-auto rounded-none p-1.5 shadow-md ring-1 duration-100;
@@ -561,11 +639,11 @@
561
639
  @apply bg-border/50 -mx-1.5 my-1.5 h-px;
562
640
  }
563
641
 
564
- .dropdown-menu :is([data-shortcut], kbd:last-child) {
642
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
565
643
  @apply text-muted-foreground font-sans text-xs tracking-widest;
566
644
  }
567
645
 
568
- .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
646
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
569
647
  @apply text-accent-foreground;
570
648
  }
571
649
 
@@ -693,7 +771,15 @@
693
771
  }
694
772
 
695
773
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
696
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground;
774
+ @apply bg-background;
775
+ }
776
+
777
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
778
+ @apply bg-foreground;
779
+ }
780
+
781
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
782
+ @apply bg-primary-foreground;
697
783
  }
698
784
 
699
785
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
@@ -1,5 +1,22 @@
1
- /* Button */
1
+ /* Accordion */
2
2
  @layer components {
3
+ .accordion > details {
4
+ @apply not-last:border-b;
5
+ }
6
+
7
+ .accordion > details > summary {
8
+ @apply focus-visible:ring-ring/50 focus-visible:border-ring rounded-md py-4 text-left text-sm font-medium hover:underline focus-visible:ring-3;
9
+ }
10
+
11
+ .accordion > details > summary > svg:last-child {
12
+ @apply text-muted-foreground ms-auto size-4;
13
+ }
14
+
15
+ .accordion > details > :not(summary) {
16
+ @apply pt-0 pb-4 text-sm;
17
+ }
18
+
19
+ /* Button */
3
20
  .btn {
4
21
  @apply rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:border-destructive aria-invalid:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*='size-'])]:size-4;
5
22
  }
@@ -247,7 +264,7 @@
247
264
  @apply size-10;
248
265
  }
249
266
 
250
- .avatar > span:not([data-badge]) {
267
+ .avatar > span:not(.avatar-badge) {
251
268
  @apply bg-muted text-muted-foreground rounded-[inherit];
252
269
  }
253
270
 
@@ -255,7 +272,7 @@
255
272
  @apply rounded-[inherit];
256
273
  }
257
274
 
258
- .avatar > [data-badge] {
275
+ .avatar > .avatar-badge {
259
276
  @apply bg-primary text-primary-foreground ring-background;
260
277
  }
261
278
 
@@ -301,17 +318,42 @@
301
318
  @apply text-primary underline-offset-4 hover:underline;
302
319
  }
303
320
 
321
+ /* Breadcrumb */
322
+ .breadcrumb > ol {
323
+ @apply text-muted-foreground gap-1.5 text-sm sm:gap-2.5;
324
+ }
325
+
326
+ .breadcrumb li {
327
+ @apply gap-1.5;
328
+ }
329
+
330
+ .breadcrumb a {
331
+ @apply transition-colors hover:text-foreground;
332
+ }
333
+
334
+ .breadcrumb [aria-current='page'] {
335
+ @apply font-normal text-foreground;
336
+ }
337
+
338
+ .breadcrumb li[aria-hidden='true'] > svg {
339
+ @apply size-3.5;
340
+ }
341
+
342
+ .breadcrumb li > span[aria-hidden='true'] {
343
+ @apply size-5 [&>svg]:size-4;
344
+ }
345
+
304
346
  /* Command */
305
347
  .command {
306
- @apply bg-popover text-popover-foreground rounded-xl p-1;
348
+ @apply bg-popover text-popover-foreground rounded-xl! p-1;
307
349
  }
308
350
 
309
- .command-dialog > * {
310
- @apply rounded-xl p-0;
351
+ .command-dialog > .command {
352
+ @apply bg-popover text-popover-foreground ring-foreground/10 rounded-xl! ring-1 duration-100;
311
353
  }
312
354
 
313
355
  .command > header {
314
- @apply m-1 mb-0 h-8 gap-2 rounded-lg border border-input/30 bg-input/30 px-2;
356
+ @apply m-1 mb-0 h-8 gap-0 rounded-lg border border-input/30 bg-input/30 px-2;
315
357
  }
316
358
 
317
359
  .command > header svg {
@@ -319,7 +361,7 @@
319
361
  }
320
362
 
321
363
  .command > header input {
322
- @apply h-full text-sm placeholder:text-muted-foreground;
364
+ @apply ps-1.5 text-sm placeholder:text-muted-foreground;
323
365
  }
324
366
 
325
367
  .command [role='menu'] {
@@ -343,11 +385,11 @@
343
385
  }
344
386
 
345
387
  .command [role='menuitem'] {
346
- @apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4;
388
+ @apply gap-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 in-[.command-dialog]:rounded-lg;
347
389
  }
348
390
 
349
391
  .command [role='menuitem'].active {
350
- @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
392
+ @apply bg-muted text-foreground [&_svg]:text-foreground;
351
393
  }
352
394
 
353
395
  .command [data-shortcut] {
@@ -370,11 +412,15 @@
370
412
  }
371
413
 
372
414
  .combobox [data-popover] {
373
- @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 rounded-md p-1 shadow-md ring-1 duration-100;
415
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-h-72 gap-0 rounded-md p-0 shadow-md ring-1 duration-100;
374
416
  }
375
417
 
376
418
  .combobox [role='listbox'] {
377
- @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto;
419
+ @apply max-h-[min(18rem,var(--available-height,18rem))] scroll-py-1 overflow-y-auto p-1;
420
+ }
421
+
422
+ .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true']))) {
423
+ @apply p-0;
378
424
  }
379
425
 
380
426
  .combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
@@ -391,7 +437,7 @@
391
437
 
392
438
  .combobox [role='option'].active,
393
439
  .combobox [role='option']:focus-visible {
394
- @apply bg-muted text-foreground [&_svg]:text-foreground;
440
+ @apply bg-accent text-accent-foreground [&_svg]:text-accent-foreground;
395
441
  }
396
442
 
397
443
  .combobox [role='group'] {
@@ -413,6 +459,14 @@
413
459
  .combobox-chip-remove {
414
460
  @apply -ms-1 opacity-50 hover:opacity-100 [&_svg]:size-3.5;
415
461
  }
462
+
463
+ .combobox [data-popover] > .input-group {
464
+ @apply m-1 mb-0 h-8 w-auto border-input/30 bg-input/30 shadow-none focus-within:border-inherit focus-within:ring-0;
465
+ }
466
+
467
+ .combobox [data-popover] > input[role='combobox'] {
468
+ @apply mb-1 w-full;
469
+ }
416
470
  /* Select */
417
471
  *:not(select).select > button {
418
472
  @apply border-input dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 data-[size=sm]:h-8 gap-1.5 rounded-md border bg-transparent py-2 ps-2.5 pe-2 text-sm shadow-xs transition-[color,box-shadow] focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
@@ -465,10 +519,15 @@
465
519
 
466
520
  /* Dialog */
467
521
  .dialog::backdrop,
522
+ .alert-dialog::backdrop,
468
523
  .command-dialog::backdrop {
469
524
  @apply bg-black/10 backdrop-blur-xs duration-100;
470
525
  }
471
526
 
527
+ .alert-dialog > * {
528
+ @apply bg-popover text-popover-foreground ring-foreground/10 max-w-xs gap-6 rounded-xl p-6 ring-1 duration-100 sm:max-w-lg;
529
+ }
530
+
472
531
  .dialog > * {
473
532
  @apply bg-popover text-popover-foreground ring-foreground/10 max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md;
474
533
  }
@@ -481,6 +540,15 @@
481
540
  @apply gap-2;
482
541
  }
483
542
 
543
+ .alert-dialog > * > header {
544
+ @apply gap-x-6 gap-y-1.5;
545
+ }
546
+
547
+ .alert-dialog > * > header > figure {
548
+ @apply bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md [&>svg:not([class*='size-'])]:size-8;
549
+ }
550
+
551
+ .alert-dialog > * > footer,
484
552
  .dialog > * > footer {
485
553
  @apply gap-2;
486
554
  }
@@ -490,11 +558,21 @@
490
558
  @apply leading-none font-medium;
491
559
  }
492
560
 
561
+ .alert-dialog > * > header > h2,
562
+ .alert-dialog > * > [data-title] {
563
+ @apply text-lg font-medium;
564
+ }
565
+
493
566
  .dialog > * > header > p,
494
567
  .dialog > * > [data-description] {
495
568
  @apply text-muted-foreground text-sm leading-normal [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
496
569
  }
497
570
 
571
+ .alert-dialog > * > header > p,
572
+ .alert-dialog > * > [data-description] {
573
+ @apply text-muted-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a:hover]:text-foreground;
574
+ }
575
+
498
576
  /* Dropdown Menu */
499
577
  .dropdown-menu > [data-popover] {
500
578
  @apply bg-popover text-popover-foreground ring-foreground/10 gap-0 overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100;
@@ -541,11 +619,11 @@
541
619
  @apply bg-border -mx-1 my-1 h-px;
542
620
  }
543
621
 
544
- .dropdown-menu :is([data-shortcut], kbd:last-child) {
622
+ .dropdown-menu :is([data-shortcut], kbd:last-child, .kbd:last-child) {
545
623
  @apply text-muted-foreground font-sans text-xs tracking-widest;
546
624
  }
547
625
 
548
- .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child) {
626
+ .dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, .active) :is([data-shortcut], kbd:last-child, .kbd:last-child) {
549
627
  @apply text-accent-foreground;
550
628
  }
551
629
 
@@ -677,7 +755,15 @@
677
755
  }
678
756
 
679
757
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):before {
680
- @apply bg-background dark:not-checked:bg-foreground dark:checked:bg-primary-foreground rounded-full;
758
+ @apply bg-background rounded-full;
759
+ }
760
+
761
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
762
+ @apply bg-foreground;
763
+ }
764
+
765
+ .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
766
+ @apply bg-primary-foreground;
681
767
  }
682
768
 
683
769
  :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not([data-size='sm']):before {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basecoat-css",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Tailwind CSS for Basecoat components",
5
5
  "author": {
6
6
  "name": "hunvreus",