basecoat-css 1.0.0-beta.7 → 1.0.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.
Files changed (57) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +82 -35
  3. package/dist/base/base.css +3 -45
  4. package/dist/basecoat-base.cdn.css +61 -22
  5. package/dist/basecoat-base.cdn.min.css +1 -1
  6. package/dist/basecoat-compat.cdn.css +16 -20
  7. package/dist/basecoat-compat.cdn.min.css +1 -1
  8. package/dist/basecoat-components.css +1 -0
  9. package/dist/basecoat-luma.cdn.css +130 -92
  10. package/dist/basecoat-luma.cdn.min.css +1 -1
  11. package/dist/basecoat-lyra.cdn.css +135 -96
  12. package/dist/basecoat-lyra.cdn.min.css +1 -1
  13. package/dist/basecoat-maia.cdn.css +123 -85
  14. package/dist/basecoat-maia.cdn.min.css +1 -1
  15. package/dist/basecoat-mira.cdn.css +133 -95
  16. package/dist/basecoat-mira.cdn.min.css +1 -1
  17. package/dist/basecoat-nova.cdn.css +135 -96
  18. package/dist/basecoat-nova.cdn.min.css +1 -1
  19. package/dist/basecoat-rhea.cdn.css +130 -92
  20. package/dist/basecoat-rhea.cdn.min.css +1 -1
  21. package/dist/basecoat-sera.cdn.css +110 -71
  22. package/dist/basecoat-sera.cdn.min.css +1 -1
  23. package/dist/basecoat-vega.cdn.css +131 -92
  24. package/dist/basecoat-vega.cdn.min.css +1 -1
  25. package/dist/basecoat.cdn.css +131 -92
  26. package/dist/basecoat.cdn.min.css +1 -1
  27. package/dist/compat/legacy.css +19 -1
  28. package/dist/components/input-group.css +1 -1
  29. package/dist/components/scrollbar.css +46 -0
  30. package/dist/components/select.css +16 -16
  31. package/dist/styles/luma.css +15 -15
  32. package/dist/styles/lyra.css +14 -14
  33. package/dist/styles/maia.css +15 -15
  34. package/dist/styles/mira.css +16 -16
  35. package/dist/styles/nova.css +14 -14
  36. package/dist/styles/rhea.css +15 -15
  37. package/dist/styles/sera.css +16 -16
  38. package/dist/styles/vega.css +14 -14
  39. package/package.json +26 -6
  40. package/templates/jinja/combobox.html.jinja +147 -0
  41. package/templates/jinja/command.html.jinja +210 -0
  42. package/templates/jinja/dialog.html.jinja +97 -0
  43. package/templates/jinja/dropdown-menu.html.jinja +130 -0
  44. package/templates/jinja/popover.html.jinja +51 -0
  45. package/templates/jinja/select.html.jinja +191 -0
  46. package/templates/jinja/sidebar.html.jinja +149 -0
  47. package/templates/jinja/tabs.html.jinja +82 -0
  48. package/templates/jinja/toast.html.jinja +139 -0
  49. package/templates/nunjucks/combobox.njk +157 -0
  50. package/templates/nunjucks/command.njk +203 -0
  51. package/templates/nunjucks/dialog.njk +92 -0
  52. package/templates/nunjucks/dropdown-menu.njk +125 -0
  53. package/templates/nunjucks/popover.njk +48 -0
  54. package/templates/nunjucks/select.njk +184 -0
  55. package/templates/nunjucks/sidebar.njk +144 -0
  56. package/templates/nunjucks/tabs.njk +39 -0
  57. package/templates/nunjucks/toast.njk +137 -0
@@ -3,7 +3,25 @@
3
3
 
4
4
  @layer components {
5
5
  .scrollbar-thin {
6
- @apply scrollbar-sm;
6
+ scrollbar-width: thin;
7
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
8
+
9
+ &::-webkit-scrollbar {
10
+ width: var(--scrollbar-sm-width);
11
+ height: var(--scrollbar-sm-width);
12
+ }
13
+ &::-webkit-scrollbar-track {
14
+ background: var(--scrollbar-track);
15
+ }
16
+ &::-webkit-scrollbar-thumb {
17
+ background: var(--scrollbar-thumb);
18
+ border-radius: var(--scrollbar-radius);
19
+ border: 1px solid transparent;
20
+ background-clip: padding-box;
21
+ }
22
+ &::-webkit-scrollbar-corner {
23
+ background: var(--scrollbar-track);
24
+ }
7
25
  }
8
26
  }
9
27
 
@@ -1,7 +1,7 @@
1
1
  /* Input Group */
2
2
  @layer components {
3
3
  .input-group {
4
- @apply relative isolate flex w-full min-w-0 items-center outline-none;
4
+ @apply relative flex w-full min-w-0 items-center outline-none;
5
5
 
6
6
  &[data-orientation='vertical'],
7
7
  &:has(> [data-align='block-start']),
@@ -0,0 +1,46 @@
1
+ /* Scrollbar */
2
+ @layer components {
3
+ .scrollbar {
4
+ scrollbar-width: auto;
5
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
6
+
7
+ &::-webkit-scrollbar {
8
+ width: var(--scrollbar-width);
9
+ height: var(--scrollbar-width);
10
+ }
11
+ &::-webkit-scrollbar-track {
12
+ background: var(--scrollbar-track);
13
+ }
14
+ &::-webkit-scrollbar-thumb {
15
+ background: var(--scrollbar-thumb);
16
+ border-radius: var(--scrollbar-radius);
17
+ border: 1px solid transparent;
18
+ background-clip: padding-box;
19
+ }
20
+ &::-webkit-scrollbar-corner {
21
+ background: var(--scrollbar-track);
22
+ }
23
+ }
24
+
25
+ .scrollbar-sm {
26
+ scrollbar-width: thin;
27
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
28
+
29
+ &::-webkit-scrollbar {
30
+ width: var(--scrollbar-sm-width);
31
+ height: var(--scrollbar-sm-width);
32
+ }
33
+ &::-webkit-scrollbar-track {
34
+ background: var(--scrollbar-track);
35
+ }
36
+ &::-webkit-scrollbar-thumb {
37
+ background: var(--scrollbar-thumb);
38
+ border-radius: var(--scrollbar-radius);
39
+ border: 1px solid transparent;
40
+ background-clip: padding-box;
41
+ }
42
+ &::-webkit-scrollbar-corner {
43
+ background: var(--scrollbar-track);
44
+ }
45
+ }
46
+ }
@@ -1,64 +1,64 @@
1
1
  /* Select */
2
2
  @layer components {
3
- *:not(select).select {
3
+ .select:not(select) {
4
4
  @apply relative inline-flex;
5
5
  }
6
6
 
7
- *:not(select).select > button {
7
+ .select:not(select) > button {
8
8
  @apply flex w-fit items-center justify-between whitespace-nowrap font-normal outline-hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
9
9
  }
10
10
 
11
- *:not(select).select > button > span {
11
+ .select:not(select) > button > span {
12
12
  @apply flex flex-1 truncate text-start;
13
13
  }
14
14
 
15
- *:not(select).select > button > svg {
15
+ .select:not(select) > button > svg {
16
16
  @apply shrink-0;
17
17
  }
18
18
 
19
- *:not(select).select [data-popover] {
19
+ .select:not(select) [data-popover] {
20
20
  @apply isolate overflow-x-hidden;
21
21
  min-width: max(100%, 9rem);
22
22
  }
23
23
 
24
- *:not(select).select [role='listbox'] {
24
+ .select:not(select) [role='listbox'] {
25
25
  @apply outline-hidden;
26
26
  }
27
27
 
28
- *:not(select).select [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
28
+ .select:not(select) [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
29
29
  @apply hidden;
30
30
  }
31
31
 
32
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
32
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
33
33
  @apply flex items-center justify-center truncate;
34
34
  }
35
35
 
36
- *:not(select).select [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
36
+ .select:not(select) [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
37
37
  @apply content-[attr(data-empty)];
38
38
  }
39
39
 
40
- *:not(select).select [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
40
+ .select:not(select) [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
41
41
  @apply content-['No_results_found'];
42
42
  }
43
43
 
44
- *:not(select).select [role='option'] {
44
+ .select:not(select) [role='option'] {
45
45
  @apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
46
46
  }
47
47
 
48
- *:not(select).select [role='option'][aria-selected='true'] {
48
+ .select:not(select) [role='option'][aria-selected='true'] {
49
49
  @apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
50
50
  }
51
51
 
52
- *:not(select).select [role='option'][aria-selected='true']:dir(rtl) {
52
+ .select:not(select) [role='option'][aria-selected='true']:dir(rtl) {
53
53
  @apply bg-position-[center_left_0.5rem];
54
54
  }
55
55
 
56
- *:not(select).select [role='separator'] {
56
+ .select:not(select) [role='separator'] {
57
57
  @apply border-0;
58
58
  }
59
59
 
60
- *:not(select).select:not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover,
61
- *:not(select).select [role='option'].active {
60
+ .select:not(select):not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover,
61
+ .select:not(select) [role='option'].active {
62
62
  @apply bg-accent text-accent-foreground;
63
63
  }
64
64
  }
@@ -480,51 +480,51 @@
480
480
  @apply mb-1 w-full;
481
481
  }
482
482
  /* Select */
483
- *:not(select).select > button {
483
+ .select:not(select) > button {
484
484
  @apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 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-3xl border px-3 py-2 text-sm transition-[color,box-shadow,background-color] focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
485
485
  }
486
486
 
487
- *:not(select).select > button > span {
487
+ .select:not(select) > button > span {
488
488
  @apply gap-1.5;
489
489
  }
490
490
 
491
- *:not(select).select > button > svg {
491
+ .select:not(select) > button > svg {
492
492
  @apply text-muted-foreground size-4;
493
493
  }
494
494
 
495
- *:not(select).select [data-popover] {
495
+ .select:not(select) [data-popover] {
496
496
  @apply bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
497
497
  }
498
498
 
499
499
 
500
500
 
501
501
 
502
- *:not(select).select [role='listbox'] {
502
+ .select:not(select) [role='listbox'] {
503
503
  @apply scroll-py-1.5;
504
504
  }
505
505
 
506
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
506
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
507
507
  @apply py-6 text-center text-sm;
508
508
  }
509
509
 
510
- *:not(select).select [role='heading'] {
510
+ .select:not(select) [role='heading'] {
511
511
  @apply text-muted-foreground px-3 py-2.5 text-xs;
512
512
  }
513
513
 
514
- *:not(select).select [role='option'] {
514
+ .select:not(select) [role='option'] {
515
515
  @apply gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium [&_svg:not([class*='size-'])]:size-4;
516
516
  }
517
517
 
518
- *:not(select).select [role='option'].active,
519
- *:not(select).select [role='option']:focus-visible {
518
+ .select:not(select) [role='option'].active,
519
+ .select:not(select) [role='option']:focus-visible {
520
520
  @apply bg-muted text-foreground [&_svg]:text-foreground;
521
521
  }
522
522
 
523
- *:not(select).select [role='group'] {
523
+ .select:not(select) [role='group'] {
524
524
  @apply scroll-my-1.5 p-1.5;
525
525
  }
526
526
 
527
- *:not(select).select [role='separator'] {
527
+ .select:not(select) [role='separator'] {
528
528
  @apply bg-border -mx-1.5 my-1.5 h-px;
529
529
  }
530
530
 
@@ -595,7 +595,7 @@
595
595
  }
596
596
 
597
597
  .drawer > * {
598
- @apply before:bg-popover before:border-border relative bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border before:shadow-xl;
598
+ @apply before:bg-popover before:border-border bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border before:shadow-xl;
599
599
  }
600
600
 
601
601
  .drawer > * > header {
@@ -803,11 +803,11 @@
803
803
  @apply bg-background rounded-full shadow-sm not-dark:bg-clip-padding;
804
804
  }
805
805
 
806
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
806
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
807
807
  @apply bg-foreground;
808
808
  }
809
809
 
810
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
810
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
811
811
  @apply bg-primary-foreground;
812
812
  }
813
813
 
@@ -460,51 +460,51 @@
460
460
  @apply mb-1 w-full;
461
461
  }
462
462
  /* Select */
463
- *:not(select).select > button {
463
+ .select:not(select) > button {
464
464
  @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-8 data-[size=sm]:h-7 gap-1.5 rounded-none data-[size=sm]:rounded-none border bg-transparent py-2 ps-2.5 pe-2 text-xs transition-colors select-none focus-visible:ring-1 aria-invalid:ring-1 [&_svg:not([class*='size-'])]:size-4;
465
465
  }
466
466
 
467
- *:not(select).select > button > span {
467
+ .select:not(select) > button > span {
468
468
  @apply gap-1.5;
469
469
  }
470
470
 
471
- *:not(select).select > button > svg {
471
+ .select:not(select) > button > svg {
472
472
  @apply text-muted-foreground size-4;
473
473
  }
474
474
 
475
- *:not(select).select [data-popover] {
475
+ .select:not(select) [data-popover] {
476
476
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-none shadow-md ring-1 duration-100;
477
477
  }
478
478
 
479
479
 
480
480
 
481
481
 
482
- *:not(select).select [role='listbox'] {
482
+ .select:not(select) [role='listbox'] {
483
483
  @apply scroll-py-1;
484
484
  }
485
485
 
486
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
486
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
487
487
  @apply py-6 text-center text-xs;
488
488
  }
489
489
 
490
- *:not(select).select [role='heading'] {
490
+ .select:not(select) [role='heading'] {
491
491
  @apply text-muted-foreground px-2 py-2 text-xs;
492
492
  }
493
493
 
494
- *:not(select).select [role='option'] {
494
+ .select:not(select) [role='option'] {
495
495
  @apply gap-2 rounded-none py-2 ps-2 pe-8 text-xs [&_svg:not([class*='size-'])]:size-4;
496
496
  }
497
497
 
498
- *:not(select).select [role='option'].active,
499
- *:not(select).select [role='option']:focus-visible {
498
+ .select:not(select) [role='option'].active,
499
+ .select:not(select) [role='option']:focus-visible {
500
500
  @apply bg-muted text-foreground [&_svg]:text-foreground;
501
501
  }
502
502
 
503
- *:not(select).select [role='group'] {
503
+ .select:not(select) [role='group'] {
504
504
  @apply scroll-my-1;
505
505
  }
506
506
 
507
- *:not(select).select [role='separator'] {
507
+ .select:not(select) [role='separator'] {
508
508
  @apply bg-border -mx-1 h-px;
509
509
  }
510
510
 
@@ -800,11 +800,11 @@
800
800
  @apply bg-background rounded-full;
801
801
  }
802
802
 
803
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
803
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
804
804
  @apply bg-foreground;
805
805
  }
806
806
 
807
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
807
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
808
808
  @apply bg-primary-foreground;
809
809
  }
810
810
 
@@ -472,51 +472,51 @@
472
472
  @apply mb-1 w-full;
473
473
  }
474
474
  /* Select */
475
- *:not(select).select > button {
475
+ .select:not(select) > button {
476
476
  @apply border-input 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-4xl border px-3 py-2 text-sm transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4;
477
477
  }
478
478
 
479
- *:not(select).select > button > span {
479
+ .select:not(select) > button > span {
480
480
  @apply gap-1.5;
481
481
  }
482
482
 
483
- *:not(select).select > button > svg {
483
+ .select:not(select) > button > svg {
484
484
  @apply text-muted-foreground size-4;
485
485
  }
486
486
 
487
- *:not(select).select [data-popover] {
487
+ .select:not(select) [data-popover] {
488
488
  @apply bg-popover text-popover-foreground ring-foreground/5 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
489
489
  }
490
490
 
491
491
 
492
492
 
493
493
 
494
- *:not(select).select [role='listbox'] {
494
+ .select:not(select) [role='listbox'] {
495
495
  @apply scroll-py-1;
496
496
  }
497
497
 
498
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
498
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
499
499
  @apply py-6 text-center text-sm;
500
500
  }
501
501
 
502
- *:not(select).select [role='heading'] {
502
+ .select:not(select) [role='heading'] {
503
503
  @apply text-muted-foreground px-3 py-2.5 text-xs;
504
504
  }
505
505
 
506
- *:not(select).select [role='option'] {
506
+ .select:not(select) [role='option'] {
507
507
  @apply gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
508
508
  }
509
509
 
510
- *:not(select).select [role='option'].active,
511
- *:not(select).select [role='option']:focus-visible {
510
+ .select:not(select) [role='option'].active,
511
+ .select:not(select) [role='option']:focus-visible {
512
512
  @apply bg-muted text-foreground [&_svg]:text-foreground;
513
513
  }
514
514
 
515
- *:not(select).select [role='group'] {
515
+ .select:not(select) [role='group'] {
516
516
  @apply scroll-my-1 p-1;
517
517
  }
518
518
 
519
- *:not(select).select [role='separator'] {
519
+ .select:not(select) [role='separator'] {
520
520
  @apply bg-border/50 -mx-1 my-1 h-px;
521
521
  }
522
522
 
@@ -583,7 +583,7 @@
583
583
  }
584
584
 
585
585
  .drawer > * {
586
- @apply before:bg-popover text-popover-foreground before:border-border relative bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border;
586
+ @apply before:bg-popover text-popover-foreground before:border-border bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border;
587
587
  }
588
588
 
589
589
  .drawer > * > header {
@@ -791,11 +791,11 @@
791
791
  @apply bg-background rounded-full;
792
792
  }
793
793
 
794
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
794
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
795
795
  @apply bg-foreground;
796
796
  }
797
797
 
798
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
798
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
799
799
  @apply bg-primary-foreground;
800
800
  }
801
801
 
@@ -472,55 +472,55 @@
472
472
  @apply mb-1 w-full;
473
473
  }
474
474
  /* Select */
475
- *:not(select).select > button {
475
+ .select:not(select) > button {
476
476
  @apply border-input bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem] gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed transition-colors focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-3.5;
477
477
  }
478
478
 
479
- *:not(select).select > button > span {
479
+ .select:not(select) > button > span {
480
480
  @apply gap-1.5;
481
481
  }
482
482
 
483
- *:not(select).select > button > svg {
483
+ .select:not(select) > button > svg {
484
484
  @apply text-muted-foreground size-3.5;
485
485
  }
486
486
 
487
- *:not(select).select [data-popover] {
487
+ .select:not(select) [data-popover] {
488
488
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-lg p-1 shadow-md ring-1 duration-100;
489
489
  }
490
490
 
491
491
 
492
492
 
493
493
 
494
- *:not(select).select [role='listbox'] {
494
+ .select:not(select) [role='listbox'] {
495
495
  @apply scroll-py-1;
496
496
  }
497
497
 
498
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
498
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
499
499
  @apply px-3 py-2 text-center text-xs;
500
500
  }
501
501
 
502
- *:not(select).select [role='heading'] {
502
+ .select:not(select) [role='heading'] {
503
503
  @apply text-muted-foreground px-2 py-1.5 text-xs;
504
504
  }
505
505
 
506
- *:not(select).select [role='option'] {
506
+ .select:not(select) [role='option'] {
507
507
  @apply min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5;
508
508
  }
509
509
 
510
- *:not(select).select [role='option'][aria-selected='true'] {
510
+ .select:not(select) [role='option'][aria-selected='true'] {
511
511
  @apply pe-8;
512
512
  }
513
513
 
514
- *:not(select).select [role='option'].active,
515
- *:not(select).select [role='option']:focus-visible {
514
+ .select:not(select) [role='option'].active,
515
+ .select:not(select) [role='option']:focus-visible {
516
516
  @apply bg-muted text-foreground [&_svg]:text-foreground;
517
517
  }
518
518
 
519
- *:not(select).select [role='group'] {
519
+ .select:not(select) [role='group'] {
520
520
  @apply scroll-my-1 p-1;
521
521
  }
522
522
 
523
- *:not(select).select [role='separator'] {
523
+ .select:not(select) [role='separator'] {
524
524
  @apply bg-border/50 -mx-1 my-1 h-px;
525
525
  }
526
526
 
@@ -587,7 +587,7 @@
587
587
  }
588
588
 
589
589
  .drawer > * {
590
- @apply before:bg-popover text-popover-foreground before:border-border relative bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl before:border;
590
+ @apply before:bg-popover text-popover-foreground before:border-border bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl before:border;
591
591
  }
592
592
 
593
593
  .drawer > * > header {
@@ -795,11 +795,11 @@
795
795
  @apply bg-background rounded-full;
796
796
  }
797
797
 
798
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
798
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
799
799
  @apply bg-foreground;
800
800
  }
801
801
 
802
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
802
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
803
803
  @apply bg-primary-foreground;
804
804
  }
805
805
 
@@ -468,51 +468,51 @@
468
468
  @apply mb-1 w-full;
469
469
  }
470
470
  /* Select */
471
- *:not(select).select > button {
471
+ .select:not(select) > button {
472
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-8 data-[size=sm]:h-7 gap-1.5 rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] border bg-transparent py-2 ps-2.5 pe-2 text-sm transition-colors select-none focus-visible:ring-3 aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4;
473
473
  }
474
474
 
475
- *:not(select).select > button > span {
475
+ .select:not(select) > button > span {
476
476
  @apply gap-1.5;
477
477
  }
478
478
 
479
- *:not(select).select > button > svg {
479
+ .select:not(select) > button > svg {
480
480
  @apply text-muted-foreground size-4;
481
481
  }
482
482
 
483
- *:not(select).select [data-popover] {
483
+ .select:not(select) [data-popover] {
484
484
  @apply bg-popover text-popover-foreground ring-foreground/10 rounded-lg p-1 shadow-md ring-1 duration-100;
485
485
  }
486
486
 
487
487
 
488
488
 
489
489
 
490
- *:not(select).select [role='listbox'] {
490
+ .select:not(select) [role='listbox'] {
491
491
  @apply scroll-py-1;
492
492
  }
493
493
 
494
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
494
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
495
495
  @apply py-6 text-center text-sm;
496
496
  }
497
497
 
498
- *:not(select).select [role='heading'] {
498
+ .select:not(select) [role='heading'] {
499
499
  @apply text-muted-foreground px-1.5 py-1 text-xs;
500
500
  }
501
501
 
502
- *:not(select).select [role='option'] {
502
+ .select:not(select) [role='option'] {
503
503
  @apply gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm [&_svg:not([class*='size-'])]:size-4;
504
504
  }
505
505
 
506
- *:not(select).select [role='option'].active,
507
- *:not(select).select [role='option']:focus-visible {
506
+ .select:not(select) [role='option'].active,
507
+ .select:not(select) [role='option']:focus-visible {
508
508
  @apply bg-muted text-foreground [&_svg]:text-foreground;
509
509
  }
510
510
 
511
- *:not(select).select [role='group'] {
511
+ .select:not(select) [role='group'] {
512
512
  @apply scroll-my-1 p-1;
513
513
  }
514
514
 
515
- *:not(select).select [role='separator'] {
515
+ .select:not(select) [role='separator'] {
516
516
  @apply bg-border -mx-1 my-1 h-px;
517
517
  }
518
518
 
@@ -808,11 +808,11 @@
808
808
  @apply bg-background rounded-full;
809
809
  }
810
810
 
811
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
811
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):not(:checked):before {
812
812
  @apply bg-foreground;
813
813
  }
814
814
 
815
- .dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
815
+ html.dark :is(.field > input[type='checkbox'][role='switch'], .input[type='checkbox'][role='switch']):checked:before {
816
816
  @apply bg-primary-foreground;
817
817
  }
818
818