basecoat-css 1.0.0-beta.6 → 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 (62) 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 +226 -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 +2 -0
  9. package/dist/basecoat-luma.cdn.css +375 -91
  10. package/dist/basecoat-luma.cdn.min.css +1 -1
  11. package/dist/basecoat-lyra.cdn.css +358 -96
  12. package/dist/basecoat-lyra.cdn.min.css +1 -1
  13. package/dist/basecoat-maia.cdn.css +364 -84
  14. package/dist/basecoat-maia.cdn.min.css +1 -1
  15. package/dist/basecoat-mira.cdn.css +366 -94
  16. package/dist/basecoat-mira.cdn.min.css +1 -1
  17. package/dist/basecoat-nova.cdn.css +369 -96
  18. package/dist/basecoat-nova.cdn.min.css +1 -1
  19. package/dist/basecoat-rhea.cdn.css +376 -91
  20. package/dist/basecoat-rhea.cdn.min.css +1 -1
  21. package/dist/basecoat-sera.cdn.css +342 -71
  22. package/dist/basecoat-sera.cdn.min.css +1 -1
  23. package/dist/basecoat-vega.cdn.css +366 -92
  24. package/dist/basecoat-vega.cdn.min.css +1 -1
  25. package/dist/basecoat.cdn.css +366 -92
  26. package/dist/basecoat.cdn.min.css +1 -1
  27. package/dist/compat/legacy.css +19 -1
  28. package/dist/components/drawer.css +89 -0
  29. package/dist/components/input-group.css +1 -1
  30. package/dist/components/scrollbar.css +46 -0
  31. package/dist/components/select.css +16 -16
  32. package/dist/js/all.js +85 -0
  33. package/dist/js/all.min.js +1 -1
  34. package/dist/js/drawer.js +84 -0
  35. package/dist/js/drawer.min.js +1 -0
  36. package/dist/styles/luma.css +47 -14
  37. package/dist/styles/lyra.css +64 -14
  38. package/dist/styles/maia.css +47 -14
  39. package/dist/styles/mira.css +48 -15
  40. package/dist/styles/nova.css +64 -14
  41. package/dist/styles/rhea.css +47 -14
  42. package/dist/styles/sera.css +66 -16
  43. package/dist/styles/vega.css +64 -14
  44. package/package.json +28 -6
  45. package/templates/jinja/combobox.html.jinja +147 -0
  46. package/templates/jinja/command.html.jinja +210 -0
  47. package/templates/jinja/dialog.html.jinja +97 -0
  48. package/templates/jinja/dropdown-menu.html.jinja +130 -0
  49. package/templates/jinja/popover.html.jinja +51 -0
  50. package/templates/jinja/select.html.jinja +191 -0
  51. package/templates/jinja/sidebar.html.jinja +149 -0
  52. package/templates/jinja/tabs.html.jinja +82 -0
  53. package/templates/jinja/toast.html.jinja +139 -0
  54. package/templates/nunjucks/combobox.njk +157 -0
  55. package/templates/nunjucks/command.njk +203 -0
  56. package/templates/nunjucks/dialog.njk +92 -0
  57. package/templates/nunjucks/dropdown-menu.njk +125 -0
  58. package/templates/nunjucks/popover.njk +48 -0
  59. package/templates/nunjucks/select.njk +184 -0
  60. package/templates/nunjucks/sidebar.njk +144 -0
  61. package/templates/nunjucks/tabs.njk +39 -0
  62. package/templates/nunjucks/toast.njk +137 -0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Ronan Berder
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,70 +1,117 @@
1
- # basecoat-css
1
+ # Basecoat
2
2
 
3
- This package provides the core CSS styles for [Basecoat](https://basecoatui.com), a component library built with Tailwind CSS.
3
+ Basecoat is a Tailwind CSS, vanilla HTML/CSS/JavaScript implementation of the shadcn/ui design system. It provides shadcn-style components for any web stack without React, Radix, or framework runtime dependencies.
4
4
 
5
- ## Prerequisites
5
+ ![screenshot](site/public/assets/images/screenshot.png)
6
6
 
7
- Your project must have [Tailwind CSS](https://tailwindcss.com/docs/installation) installed and configured, as Basecoat relies on Tailwind utility classes and theming.
7
+ ## Features
8
8
 
9
- ## Installation
9
+ - Semantic HTML-first components.
10
+ - Tailwind CSS v4 source files and generated CSS bundles.
11
+ - Small vanilla JavaScript for components that need behavior.
12
+ - Standalone style packs: Vega, Nova, Maia, Lyra, Mira, Luma, Sera, and Rhea.
13
+ - Compatible with shadcn/ui themes.
14
+ - Dark mode.
15
+ - CDN, npm, and template usage paths.
16
+ - Nunjucks and Jinja templates.
10
17
 
11
- Install with any package manager:
18
+ ## Documentation
19
+
20
+ - Website: [basecoatui.com](https://basecoatui.com)
21
+ - Installation: [basecoatui.com/installation](https://basecoatui.com/installation)
22
+ - Customization: [basecoatui.com/customization](https://basecoatui.com/customization)
23
+
24
+ ## Install
12
25
 
13
26
  ```bash
14
- npm install basecoat-css # or pnpm add / yarn add / bun add
27
+ npm install basecoat-css
15
28
  ```
16
29
 
17
- ## Usage
18
-
19
- Add it just after Tailwind in your stylesheet:
30
+ Use the default bundle:
20
31
 
21
32
  ```css
22
33
  @import "tailwindcss";
23
34
  @import "basecoat-css";
24
35
  ```
25
36
 
26
- That's it, you can use any Basecoat class (`btn`, `card`, `input`, etc) in your markup.
37
+ Use a specific style bundle:
38
+
39
+ ```css
40
+ @import "tailwindcss";
41
+ @import "basecoat-css/nova";
42
+ ```
27
43
 
28
- To use a specific style, import its standalone bundle instead:
44
+ Use the styleless base plus a custom style file:
29
45
 
30
46
  ```css
31
47
  @import "tailwindcss";
32
- @import "basecoat-css/sera";
48
+ @import "basecoat-css/base";
49
+ @import "./style-acme.css";
33
50
  ```
34
51
 
35
- ### (Optional) JavaScript files
52
+ ## Repository Layout
53
+
54
+ ```text
55
+ .
56
+ ├── dist/ Generated package output
57
+ ├── scripts/ Build and generation scripts
58
+ ├── site/ ReallySimpleDocs/Astro documentation app
59
+ │ ├── public/ Static site assets
60
+ │ └── src/
61
+ │ ├── components/ RSD component overrides
62
+ │ ├── docs/ Documentation pages and examples
63
+ │ ├── fragments/ Site-only rendered fragments
64
+ │ ├── pages/ Astro routes outside the docs tree
65
+ │ └── scripts/ Site scripts
66
+ ├── src/ Package source
67
+ │ ├── css/
68
+ │ ├── js/
69
+ │ └── templates/
70
+ └── templates/ Generated package template output
71
+ ```
36
72
 
37
- Some interactive components (Dropdown Menu, Popover, Select, Sidebar, Tabs, Toast) need some JavaScript.
73
+ ## CSS Architecture
38
74
 
39
- With a build tool (ESM):
75
+ Basecoat separates structure from style:
40
76
 
41
- ```js
42
- import 'basecoat-css/all';
43
- ```
77
+ - `src/css/base/base.css`: shared tokens and semantic utilities.
78
+ - `src/css/components/*.css`: component layout, structure, accessibility selectors, and behavior hooks.
79
+ - `src/css/styles/*.css`: style-pack visuals such as color, radius, shadow, typography, spacing, variants, and state styles.
44
80
 
45
- Or cherry-pick the components you need:
81
+ Generated source entrypoints are committed for transparency and package imports:
46
82
 
47
- ```js
48
- import 'basecoat-css/tabs';
49
- import 'basecoat-css/popover';
50
- ```
83
+ - `src/css/basecoat.css`: default backward-compatible Vega bundle.
84
+ - `src/css/basecoat-base.css`: base plus components, no style pack.
85
+ - `src/css/basecoat-components.css`: component imports only.
86
+ - `src/css/basecoat-<style>.css`: base plus one style pack.
87
+ - `src/css/basecoat-<style>.cdn.css`: CDN-compatible wrapper.
51
88
 
52
- Without a build tool, copy the files from `node_modules`:
89
+ These entrypoints are generated by `scripts/generate-css-entrypoints.js` and by the build scripts.
53
90
 
54
- ```bash
55
- npx copyfiles -u 1 "node_modules/basecoat-css/dist/js/**/*" public/js/basecoat
56
- ```
91
+ ## JavaScript Lifecycle
57
92
 
58
- Then reference what you need, e.g.
93
+ - `window.basecoat.init(name)` initializes uninitialized components for one registered component.
94
+ - `window.basecoat.initAll()` initializes all uninitialized registered components.
95
+ - `window.basecoat.refresh(element)` asks an initialized component to rescan dynamic children when it supports refresh.
96
+ - Components use internal destroy hooks to clean up listeners when initialized roots are removed from the DOM.
59
97
 
60
- ```html
61
- <script src="/js/basecoat/tabs.min.js" defer></script>
62
- ```
98
+ ## Development
63
99
 
64
- ## Documentation
100
+ ```bash
101
+ # Install dependencies.
102
+ npm i
103
+ npm --prefix site i
104
+
105
+ # Run the ReallySimpleDocs/Astro site.
106
+ npm run docs:dev
65
107
 
66
- For more detailed information on components, their usage, and customization options, please refer to the [Basecoat documentation](https://basecoatui.com/installation/#install-css).
108
+ # Build package assets.
109
+ npm run build
110
+
111
+ # Build the static docs site.
112
+ npm run docs:build
113
+ ```
67
114
 
68
115
  ## License
69
116
 
70
- [MIT](https://github.com/hunvreus/basecoat/blob/main/LICENSE.md)
117
+ [MIT](LICENSE.md)
@@ -1,4 +1,4 @@
1
- @custom-variant dark (&:is(.dark *));
1
+ @custom-variant dark (&:is(html.dark *));
2
2
 
3
3
  :root {
4
4
  --radius: 0.625rem;
@@ -84,6 +84,8 @@
84
84
  }
85
85
 
86
86
  @theme {
87
+ --font-sans: "Geist Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
88
+ --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
87
89
  --radius-sm: calc(var(--radius) - 4px);
88
90
  --radius-md: calc(var(--radius) - 2px);
89
91
  --radius-lg: var(--radius);
@@ -121,50 +123,6 @@
121
123
  --color-sidebar-ring: var(--sidebar-ring);
122
124
  }
123
125
 
124
- @utility scrollbar {
125
- scrollbar-width: auto;
126
- scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
127
-
128
- &::-webkit-scrollbar {
129
- width: var(--scrollbar-width);
130
- height: var(--scrollbar-width);
131
- }
132
- &::-webkit-scrollbar-track {
133
- background: var(--scrollbar-track);
134
- }
135
- &::-webkit-scrollbar-thumb {
136
- background: var(--scrollbar-thumb);
137
- border-radius: var(--scrollbar-radius);
138
- border: 1px solid transparent;
139
- background-clip: padding-box;
140
- }
141
- &::-webkit-scrollbar-corner {
142
- background: var(--scrollbar-track);
143
- }
144
- }
145
-
146
- @utility scrollbar-sm {
147
- scrollbar-width: thin;
148
- scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
149
-
150
- &::-webkit-scrollbar {
151
- width: var(--scrollbar-sm-width);
152
- height: var(--scrollbar-sm-width);
153
- }
154
- &::-webkit-scrollbar-track {
155
- background: var(--scrollbar-track);
156
- }
157
- &::-webkit-scrollbar-thumb {
158
- background: var(--scrollbar-thumb);
159
- border-radius: var(--scrollbar-radius);
160
- border: 1px solid transparent;
161
- background-clip: padding-box;
162
- }
163
- &::-webkit-scrollbar-corner {
164
- background: var(--scrollbar-track);
165
- }
166
- }
167
-
168
126
  @layer base {
169
127
  * {
170
128
  @apply border-border outline-ring/50;
@@ -3,10 +3,8 @@
3
3
  @layer theme, base, components, utilities;
4
4
  @layer theme {
5
5
  :root, :host {
6
- --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
7
- "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
- --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
- "Courier New", monospace;
6
+ --font-sans: "Geist Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
+ --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
10
8
  --color-black: #000;
11
9
  --spacing: 0.25rem;
12
10
  --container-xs: 20rem;
@@ -416,7 +414,7 @@
416
414
  --tw-ring-color: color-mix(in oklab, var(--color-ring) 50%, transparent);
417
415
  }
418
416
  }
419
- &:is(.dark *) {
417
+ &:is(html.dark *) {
420
418
  &::after {
421
419
  content: var(--tw-content);
422
420
  mix-blend-mode: lighten;
@@ -536,7 +534,7 @@
536
534
  --tw-ring-color: color-mix(in oklab, var(--color-destructive) 20%, transparent);
537
535
  }
538
536
  }
539
- &:is(.dark *) {
537
+ &:is(html.dark *) {
540
538
  &[aria-invalid="true"] {
541
539
  --tw-ring-color: var(--color-destructive);
542
540
  @supports (color: color-mix(in lab, red, red)) {
@@ -1508,6 +1506,171 @@
1508
1506
  }
1509
1507
  }
1510
1508
  }
1509
+ @layer components {
1510
+ .drawer {
1511
+ position: fixed;
1512
+ inset: calc(var(--spacing) * 0);
1513
+ margin: calc(var(--spacing) * 0);
1514
+ width: auto;
1515
+ height: auto;
1516
+ max-height: none;
1517
+ max-width: none;
1518
+ overflow: visible;
1519
+ background-color: transparent;
1520
+ padding: calc(var(--spacing) * 0);
1521
+ color: inherit;
1522
+ opacity: 0%;
1523
+ transition-property: all;
1524
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1525
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1526
+ transition-behavior: allow-discrete;
1527
+ --tw-duration: 500ms;
1528
+ transition-duration: 500ms;
1529
+ --tw-ease: cubic-bezier(0.32,0.72,0,1);
1530
+ transition-timing-function: cubic-bezier(0.32,0.72,0,1);
1531
+ &::backdrop {
1532
+ opacity: 0%;
1533
+ }
1534
+ &::backdrop {
1535
+ transition-property: all;
1536
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1537
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1538
+ }
1539
+ &::backdrop {
1540
+ transition-behavior: allow-discrete;
1541
+ }
1542
+ &::backdrop {
1543
+ --tw-duration: 500ms;
1544
+ transition-duration: 500ms;
1545
+ }
1546
+ &::backdrop {
1547
+ --tw-ease: cubic-bezier(0.32,0.72,0,1);
1548
+ transition-timing-function: cubic-bezier(0.32,0.72,0,1);
1549
+ }
1550
+ > * {
1551
+ position: fixed;
1552
+ z-index: 50;
1553
+ display: flex;
1554
+ height: auto;
1555
+ flex-direction: column;
1556
+ --tw-outline-style: none;
1557
+ outline-style: none;
1558
+ @media (forced-colors: active) {
1559
+ outline: 2px solid transparent;
1560
+ outline-offset: 2px;
1561
+ }
1562
+ transition-property: transform, translate, scale, rotate;
1563
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1564
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
1565
+ --tw-duration: 500ms;
1566
+ transition-duration: 500ms;
1567
+ --tw-ease: cubic-bezier(0.32,0.72,0,1);
1568
+ transition-timing-function: cubic-bezier(0.32,0.72,0,1);
1569
+ will-change: transform;
1570
+ }
1571
+ &:not([data-side]) > *, &[data-side='bottom'] > * {
1572
+ inset-inline: calc(var(--spacing) * 0);
1573
+ bottom: calc(var(--spacing) * 0);
1574
+ margin-top: calc(var(--spacing) * 24);
1575
+ max-height: 80vh;
1576
+ --tw-translate-y: 100%;
1577
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1578
+ }
1579
+ &[data-side='top'] > * {
1580
+ inset-inline: calc(var(--spacing) * 0);
1581
+ top: calc(var(--spacing) * 0);
1582
+ margin-bottom: calc(var(--spacing) * 24);
1583
+ max-height: 80vh;
1584
+ --tw-translate-y: -100%;
1585
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1586
+ }
1587
+ &[data-side='left'] > * {
1588
+ inset-block: calc(var(--spacing) * 0);
1589
+ left: calc(var(--spacing) * 0);
1590
+ width: calc(3/4 * 100%);
1591
+ max-width: var(--container-sm);
1592
+ --tw-translate-x: -100%;
1593
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1594
+ }
1595
+ &[data-side='right'] > * {
1596
+ inset-block: calc(var(--spacing) * 0);
1597
+ right: calc(var(--spacing) * 0);
1598
+ width: calc(3/4 * 100%);
1599
+ max-width: var(--container-sm);
1600
+ --tw-translate-x: 100%;
1601
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1602
+ }
1603
+ &[data-closing] {
1604
+ opacity: 0%;
1605
+ &::backdrop {
1606
+ opacity: 0%;
1607
+ }
1608
+ }
1609
+ &[data-closing]:not([data-side]) > *, &[data-closing][data-side='bottom'] > * {
1610
+ --tw-translate-y: 100%;
1611
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1612
+ }
1613
+ &[data-closing][data-side='top'] > * {
1614
+ --tw-translate-y: -100%;
1615
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1616
+ }
1617
+ &[data-closing][data-side='left'] > * {
1618
+ --tw-translate-x: -100%;
1619
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1620
+ }
1621
+ &[data-closing][data-side='right'] > * {
1622
+ --tw-translate-x: 100%;
1623
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1624
+ }
1625
+ &:is([open], :popover-open):not([data-closing]) {
1626
+ opacity: 100%;
1627
+ &::backdrop {
1628
+ opacity: 100%;
1629
+ }
1630
+ > * {
1631
+ --tw-translate-x: calc(var(--spacing) * 0);
1632
+ --tw-translate-y: calc(var(--spacing) * 0);
1633
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1634
+ }
1635
+ @starting-style {
1636
+ opacity: 0%;
1637
+ &::backdrop {
1638
+ opacity: 0%;
1639
+ }
1640
+ &:not([data-side]) > *, &[data-side='bottom'] > * {
1641
+ --tw-translate-y: 100%;
1642
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1643
+ }
1644
+ &[data-side='top'] > * {
1645
+ --tw-translate-y: -100%;
1646
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1647
+ }
1648
+ &[data-side='left'] > * {
1649
+ --tw-translate-x: -100%;
1650
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1651
+ }
1652
+ &[data-side='right'] > * {
1653
+ --tw-translate-x: 100%;
1654
+ translate: var(--tw-translate-x) var(--tw-translate-y);
1655
+ }
1656
+ }
1657
+ }
1658
+ > * > header {
1659
+ display: flex;
1660
+ flex-direction: column;
1661
+ }
1662
+ > * > section {
1663
+ min-height: calc(var(--spacing) * 0);
1664
+ flex: 1;
1665
+ overflow-y: auto;
1666
+ }
1667
+ > * > footer {
1668
+ margin-top: auto;
1669
+ display: flex;
1670
+ flex-direction: column;
1671
+ }
1672
+ }
1673
+ }
1511
1674
  @layer components {
1512
1675
  .dropdown-menu {
1513
1676
  position: relative;
@@ -2258,11 +2421,11 @@
2258
2421
  }
2259
2422
  }
2260
2423
  @layer components {
2261
- *:not(select).select {
2424
+ .select:not(select) {
2262
2425
  position: relative;
2263
2426
  display: inline-flex;
2264
2427
  }
2265
- *:not(select).select > button {
2428
+ .select:not(select) > button {
2266
2429
  display: flex;
2267
2430
  width: fit-content;
2268
2431
  align-items: center;
@@ -2292,7 +2455,7 @@
2292
2455
  flex-shrink: 0;
2293
2456
  }
2294
2457
  }
2295
- *:not(select).select > button > span {
2458
+ .select:not(select) > button > span {
2296
2459
  display: flex;
2297
2460
  flex: 1;
2298
2461
  overflow: hidden;
@@ -2300,15 +2463,15 @@
2300
2463
  white-space: nowrap;
2301
2464
  text-align: start;
2302
2465
  }
2303
- *:not(select).select > button > svg {
2466
+ .select:not(select) > button > svg {
2304
2467
  flex-shrink: 0;
2305
2468
  }
2306
- *:not(select).select [data-popover] {
2469
+ .select:not(select) [data-popover] {
2307
2470
  isolation: isolate;
2308
2471
  overflow-x: hidden;
2309
2472
  min-width: max(100%, 9rem);
2310
2473
  }
2311
- *:not(select).select [role='listbox'] {
2474
+ .select:not(select) [role='listbox'] {
2312
2475
  --tw-outline-style: none;
2313
2476
  outline-style: none;
2314
2477
  @media (forced-colors: active) {
@@ -2316,10 +2479,10 @@
2316
2479
  outline-offset: 2px;
2317
2480
  }
2318
2481
  }
2319
- *:not(select).select [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
2482
+ .select:not(select) [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
2320
2483
  display: none;
2321
2484
  }
2322
- *:not(select).select [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
2485
+ .select:not(select) [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
2323
2486
  display: flex;
2324
2487
  align-items: center;
2325
2488
  justify-content: center;
@@ -2327,15 +2490,15 @@
2327
2490
  text-overflow: ellipsis;
2328
2491
  white-space: nowrap;
2329
2492
  }
2330
- *:not(select).select [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
2493
+ .select:not(select) [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
2331
2494
  --tw-content: attr(data-empty);
2332
2495
  content: var(--tw-content);
2333
2496
  }
2334
- *:not(select).select [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
2497
+ .select:not(select) [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
2335
2498
  --tw-content: 'No results found';
2336
2499
  content: var(--tw-content);
2337
2500
  }
2338
- *:not(select).select [role='option'] {
2501
+ .select:not(select) [role='option'] {
2339
2502
  position: relative;
2340
2503
  display: flex;
2341
2504
  width: 100%;
@@ -2374,20 +2537,20 @@
2374
2537
  flex-shrink: 0;
2375
2538
  }
2376
2539
  }
2377
- *:not(select).select [role='option'][aria-selected='true'] {
2540
+ .select:not(select) [role='option'][aria-selected='true'] {
2378
2541
  background-image: var(--check-icon);
2379
2542
  background-size: 0.875rem;
2380
2543
  background-position: center right 0.5rem;
2381
2544
  background-repeat: no-repeat;
2382
2545
  }
2383
- *:not(select).select [role='option'][aria-selected='true']:dir(rtl) {
2546
+ .select:not(select) [role='option'][aria-selected='true']:dir(rtl) {
2384
2547
  background-position: center left 0.5rem;
2385
2548
  }
2386
- *:not(select).select [role='separator'] {
2549
+ .select:not(select) [role='separator'] {
2387
2550
  border-style: var(--tw-border-style);
2388
2551
  border-width: 0px;
2389
2552
  }
2390
- *:not(select).select:not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover, *:not(select).select [role='option'].active {
2553
+ .select:not(select):not([data-select-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover, .select:not(select) [role='option'].active {
2391
2554
  background-color: var(--color-accent);
2392
2555
  color: var(--color-accent-foreground);
2393
2556
  }
@@ -2619,6 +2782,48 @@
2619
2782
  }
2620
2783
  }
2621
2784
  }
2785
+ @layer components {
2786
+ .scrollbar {
2787
+ scrollbar-width: auto;
2788
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
2789
+ &::-webkit-scrollbar {
2790
+ width: var(--scrollbar-width);
2791
+ height: var(--scrollbar-width);
2792
+ }
2793
+ &::-webkit-scrollbar-track {
2794
+ background: var(--scrollbar-track);
2795
+ }
2796
+ &::-webkit-scrollbar-thumb {
2797
+ background: var(--scrollbar-thumb);
2798
+ border-radius: var(--scrollbar-radius);
2799
+ border: 1px solid transparent;
2800
+ background-clip: padding-box;
2801
+ }
2802
+ &::-webkit-scrollbar-corner {
2803
+ background: var(--scrollbar-track);
2804
+ }
2805
+ }
2806
+ .scrollbar-sm {
2807
+ scrollbar-width: thin;
2808
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
2809
+ &::-webkit-scrollbar {
2810
+ width: var(--scrollbar-sm-width);
2811
+ height: var(--scrollbar-sm-width);
2812
+ }
2813
+ &::-webkit-scrollbar-track {
2814
+ background: var(--scrollbar-track);
2815
+ }
2816
+ &::-webkit-scrollbar-thumb {
2817
+ background: var(--scrollbar-thumb);
2818
+ border-radius: var(--scrollbar-radius);
2819
+ border: 1px solid transparent;
2820
+ background-clip: padding-box;
2821
+ }
2822
+ &::-webkit-scrollbar-corner {
2823
+ background: var(--scrollbar-track);
2824
+ }
2825
+ }
2826
+ }
2622
2827
  @layer components {
2623
2828
  .skeleton {
2624
2829
  animation: var(--animate-pulse);
@@ -2815,7 +3020,6 @@
2815
3020
  @layer components {
2816
3021
  .input-group {
2817
3022
  position: relative;
2818
- isolation: isolate;
2819
3023
  display: flex;
2820
3024
  width: 100%;
2821
3025
  min-width: calc(var(--spacing) * 0);