@rcarls/rc-theme-tailwind 0.0.0-next-20261103014840

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 (64) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +127 -0
  3. package/bridge.css +245 -0
  4. package/components/accordion.css +18 -0
  5. package/components/adaptive-menu.css +98 -0
  6. package/components/app-bar.css +21 -0
  7. package/components/bottom-sheet.css +90 -0
  8. package/components/breadcrumbs.css +38 -0
  9. package/components/button.css +44 -0
  10. package/components/card.css +51 -0
  11. package/components/carousel.css +31 -0
  12. package/components/chip-group.css +21 -0
  13. package/components/chip.css +20 -0
  14. package/components/combobox.css +55 -0
  15. package/components/data-table.css +55 -0
  16. package/components/dialog.css +39 -0
  17. package/components/disclosure.css +112 -0
  18. package/components/fab-menu.css +36 -0
  19. package/components/fab.css +44 -0
  20. package/components/field.css +154 -0
  21. package/components/icons.css +19 -0
  22. package/components/list-item.css +70 -0
  23. package/components/listbox.css +29 -0
  24. package/components/markdown-editor.css +53 -0
  25. package/components/menu-button.css +18 -0
  26. package/components/menu.css +28 -0
  27. package/components/menubar.css +17 -0
  28. package/components/modes.css +60 -0
  29. package/components/navigation-bar.css +43 -0
  30. package/components/navigation-rail.css +72 -0
  31. package/components/page-turner.css +19 -0
  32. package/components/pagination.css +50 -0
  33. package/components/popover.css +13 -0
  34. package/components/progress.css +11 -0
  35. package/components/range-slider.css +18 -0
  36. package/components/scroller.css +19 -0
  37. package/components/search-bar.css +30 -0
  38. package/components/segmented-button.css +19 -0
  39. package/components/select.css +74 -0
  40. package/components/slider.css +10 -0
  41. package/components/snackbar.css +23 -0
  42. package/components/splitter.css +39 -0
  43. package/components/switch.css +28 -0
  44. package/components/textarea.css +21 -0
  45. package/components/toolbar.css +36 -0
  46. package/components/tooltip.css +15 -0
  47. package/components/transfer-list.css +30 -0
  48. package/components/virtual-canvas.css +18 -0
  49. package/components/virtual-scroller.css +7 -0
  50. package/components.css +49 -0
  51. package/css-components/button.css +66 -0
  52. package/css-components/card.css +14 -0
  53. package/css-components/chip-group.css +9 -0
  54. package/css-components/chip.css +80 -0
  55. package/css-components/disclosure.css +25 -0
  56. package/css-components/list.css +34 -0
  57. package/css-components/select.css +20 -0
  58. package/css-components/textarea.css +22 -0
  59. package/css-components.css +31 -0
  60. package/defaults.css +137 -0
  61. package/layers.css +10 -0
  62. package/native.css +249 -0
  63. package/package.json +49 -0
  64. package/theme.css +3 -0
@@ -0,0 +1,74 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ :is(rc-select, rc-combobox)[popup-mode='dialog']::part(dialog) {
4
+ position: fixed;
5
+ inset: auto;
6
+ top: var(--rc-dialog-visual-viewport-top, 0);
7
+ left: var(--rc-dialog-visual-viewport-left, 0);
8
+ box-sizing: border-box;
9
+ inline-size: var(--rc-dialog-visual-viewport-width, 100dvw);
10
+ block-size: var(--rc-dialog-visual-viewport-height, 100dvh);
11
+ max-inline-size: none;
12
+ max-block-size: none;
13
+ margin: 0;
14
+ padding-block: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-bottom));
15
+ padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
16
+ resize: none;
17
+ overflow: hidden;
18
+ border-radius: 0;
19
+ box-shadow: none;
20
+ transform: none;
21
+ }
22
+
23
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select {
24
+ display: inline-block;
25
+ }
26
+
27
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select::part(trigger) {
28
+ min-block-size: var(--rc-control-block-size, 2.5rem);
29
+ border: var(--rc-border, 1px solid ButtonBorder);
30
+ border-radius: var(--rc-control-radius, 0.5rem);
31
+ background: var(--rc-field, Field);
32
+ color: var(--rc-field-text, FieldText);
33
+ transition:
34
+ border-color var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease),
35
+ box-shadow var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease),
36
+ background-color var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease);
37
+ }
38
+
39
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select::part(trigger):hover {
40
+ border-color: color-mix(in srgb, var(--rc-accent, Highlight) 55%, var(--rc-border-color));
41
+ }
42
+
43
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select::part(trigger):focus-visible,
44
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
45
+ rc-select::part(trigger):is([aria-expanded='true']) {
46
+ outline: var(--rc-focus-ring, 2px solid Highlight);
47
+ outline-offset: var(--rc-focus-ring-offset, 2px);
48
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc-accent, Highlight) 16%, transparent);
49
+ }
50
+
51
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select::part(listbox) {
52
+ --rc-listbox-option-gap: var(--rc-list-item-gap, var(--tailwind-item-gap, 0.5rem));
53
+ --rc-listbox-option-min-block-size: 2.25rem;
54
+ --rc-listbox-option-padding-block: var(--tailwind-item-padding-block, 0.55rem);
55
+ --rc-listbox-option-padding-inline: var(--tailwind-item-padding-inline, 0.75rem);
56
+ --rc-listbox-hover-bg: color-mix(in srgb, var(--rc-accent, Highlight) 10%, transparent);
57
+ --rc-listbox-hover-color: var(--rc-field-text, FieldText);
58
+ --rc-listbox-active-bg: color-mix(in srgb, var(--rc-accent, Highlight) 16%, transparent);
59
+ --rc-listbox-active-color: var(--rc-field-text, FieldText);
60
+ --rc-listbox-selected-bg: var(--rc-highlight, Highlight);
61
+ --rc-listbox-selected-color: var(--rc-highlight-text, HighlightText);
62
+ border: var(--rc-border, 1px solid ButtonBorder);
63
+ border-radius: var(--tailwind-radius-lg, 0.75rem);
64
+ background: var(--tailwind-surface-raised, Canvas);
65
+ box-shadow: var(--rc-shadow, none);
66
+ padding-block: 0.25rem;
67
+ }
68
+
69
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-select::part(chip) {
70
+ border-radius: var(--tailwind-radius-sm, 0.25rem);
71
+ background: var(--rc-highlight, Highlight);
72
+ color: var(--rc-highlight-text, HighlightText);
73
+ }
74
+ }
@@ -0,0 +1,10 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-slider::part(value-display) {
3
+ color: var(--tailwind-on-surface-muted, GrayText);
4
+ font-variant-numeric: tabular-nums;
5
+ }
6
+
7
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-slider input[type='range'] {
8
+ accent-color: var(--rc-accent, Highlight);
9
+ }
10
+ }
@@ -0,0 +1,23 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-snackbar {
3
+ --rc-snackbar-inset-block-end: 1rem;
4
+ --rc-snackbar-min-block-size: 3rem;
5
+ --rc-snackbar-max-inline-size: 30rem;
6
+ --rc-snackbar-padding-block: 0.75rem;
7
+ --rc-snackbar-padding-inline: 1rem;
8
+ --rc-snackbar-border: 0;
9
+ --rc-snackbar-radius: var(--tailwind-radius-md, 0.5rem);
10
+ --rc-snackbar-bg: var(--tailwind-inverse-surface, CanvasText);
11
+ --rc-snackbar-color: var(--tailwind-inverse-on-surface, Canvas);
12
+ --rc-snackbar-action-color: var(--tailwind-inverse-on-surface, Canvas);
13
+ --rc-snackbar-action-border: 0;
14
+ --rc-snackbar-action-radius: 9999px;
15
+ --rc-snackbar-action-padding-block: 0.5rem;
16
+ --rc-snackbar-action-padding-inline: 0.75rem;
17
+ --rc-snackbar-action-bg: transparent;
18
+ --rc-snackbar-action-font: 650 0.875rem / 1.25 var(--rc-font-family, inherit);
19
+ --rc-snackbar-shadow: var(--tailwind-shadow-lg, var(--rc-shadow));
20
+ --rc-snackbar-focus-ring: var(--rc-focus-ring);
21
+ --rc-snackbar-focus-ring-offset: var(--rc-focus-ring-offset);
22
+ }
23
+ }
@@ -0,0 +1,39 @@
1
+ @layer rc-theme-tailwind.components {
2
+ /*
3
+ * Geometry is deliberately left to the component's own defaults here; this
4
+ * theme only paints the splitter. See the matching assertion in
5
+ * components.test.ts.
6
+ */
7
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-splitter {
8
+ /*
9
+ * Both of these used to mix against the bare `Canvas` and `ButtonBorder`
10
+ * system colors, which have no value outside a browser and so could not
11
+ * reach the token export at all. Mixing against the theme's own surface and
12
+ * border keeps the intent and makes the result a real color.
13
+ */
14
+ --rc-splitter-separator-color: color-mix(
15
+ in srgb,
16
+ var(--rc-accent, Highlight) 8%,
17
+ var(--tailwind-surface, Canvas)
18
+ );
19
+ --rc-splitter-handle-color: color-mix(
20
+ in srgb,
21
+ var(--rc-accent, Highlight) 45%,
22
+ var(--tailwind-border-color, ButtonBorder)
23
+ );
24
+
25
+ --rc-splitter-handle-fill: var(--tailwind-border-color, ButtonBorder);
26
+ --rc-splitter-handle-hover-fill: var(--rc-accent, Highlight);
27
+ --rc-splitter-handle-transition: var(--tailwind-motion-effects-duration-default, 160ms);
28
+ --rc-splitter-keyline: var(--rc-border, 1px solid ButtonBorder);
29
+
30
+ --rc-splitter-collapse-button-bg: var(--tailwind-surface-raised, ButtonFace);
31
+ --rc-splitter-collapse-button-hover-bg: color-mix(
32
+ in srgb,
33
+ var(--rc-accent, Highlight) 10%,
34
+ var(--tailwind-surface-raised, ButtonFace)
35
+ );
36
+ --rc-splitter-collapse-button-border: var(--rc-border, 1px solid ButtonBorder);
37
+ --rc-splitter-collapse-button-color: var(--tailwind-on-surface, ButtonText);
38
+ }
39
+ }
@@ -0,0 +1,28 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-switch {
3
+ --rc-switch-native-appearance: none;
4
+ --rc-switch-native-inline-size: 100%;
5
+ --rc-switch-native-block-size: 100%;
6
+ --rc-switch-native-margin: 0;
7
+ --rc-switch-native-opacity: 0;
8
+ --rc-switch-decoration-display: block;
9
+ --rc-switch-icon-display: grid;
10
+ --rc-switch-track-inline-size: 3.25rem;
11
+ --rc-switch-track-block-size: 2rem;
12
+ --rc-switch-track-border: var(--rc-border);
13
+ --rc-switch-track-radius: 9999px;
14
+ --rc-switch-track-bg: var(--tailwind-surface-raised, ButtonFace);
15
+ --rc-switch-thumb-size: 1rem;
16
+ --rc-switch-thumb-offset: 0.375rem;
17
+ --rc-switch-thumb-bg: var(--tailwind-on-surface-muted, ButtonText);
18
+ --rc-switch-selected-track-border-color: var(--rc-accent);
19
+ --rc-switch-selected-track-bg: var(--rc-accent);
20
+ --rc-switch-selected-thumb-size: 1.5rem;
21
+ --rc-switch-selected-thumb-bg: var(--tailwind-on-primary, HighlightText);
22
+ --rc-switch-thumb-translate: 1.125rem;
23
+ --rc-switch-focus-ring: var(--rc-focus-ring);
24
+ --rc-switch-focus-ring-offset: var(--rc-focus-ring-offset);
25
+ --rc-switch-disabled-opacity: var(--rc-disabled-opacity);
26
+ --rc-switch-duration: var(--rc-motion-duration);
27
+ }
28
+ }
@@ -0,0 +1,21 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-textarea {
3
+ --rc-textarea-padding-block: 0.75rem;
4
+ --rc-textarea-padding-inline: 0.75rem;
5
+ --rc-textarea-border: var(--rc-border, 1px solid ButtonBorder);
6
+ --rc-textarea-border-radius: var(--tailwind-radius-lg, 0.75rem);
7
+ --rc-textarea-background: var(--rc-field, Field);
8
+ --rc-textarea-color: var(--rc-field-text, FieldText);
9
+ font-family: var(--rc-font-family, inherit);
10
+ }
11
+
12
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-textarea::part(root) {
13
+ transition:
14
+ border-color var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease),
15
+ box-shadow var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease);
16
+ }
17
+
18
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-textarea::part(root):focus-within {
19
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc-accent, Highlight) 16%, transparent);
20
+ }
21
+ }
@@ -0,0 +1,36 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-toolbar {
3
+ display: inline-block;
4
+
5
+ --rc-toolbar-gap-inline: 0.125rem;
6
+ --rc-toolbar-padding-block: 0.25rem;
7
+ --rc-toolbar-padding-inline: 0.25rem;
8
+ --rc-toolbar-radius: var(--tailwind-radius-md, 0.5rem);
9
+ --rc-toolbar-vertical-radius: var(--tailwind-radius-md, 0.5rem);
10
+ --rc-toolbar-flex-wrap: nowrap;
11
+ }
12
+
13
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-toolbar::part(root) {
14
+ gap: var(--rc-toolbar-gap-inline, 0.125rem);
15
+ }
16
+
17
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-toolbar > button {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ border-radius: var(--tailwind-radius-md, 0.5rem);
22
+ line-height: 1;
23
+ transition:
24
+ background-color var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease),
25
+ color var(--rc-motion-duration, 160ms) var(--tailwind-motion-easing, ease);
26
+ }
27
+
28
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-toolbar > button:hover {
29
+ background: color-mix(in srgb, var(--rc-accent, Highlight) 10%, transparent);
30
+ }
31
+
32
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-toolbar > button[aria-pressed='true'] {
33
+ background: var(--rc-highlight, Highlight);
34
+ color: var(--rc-highlight-text, HighlightText);
35
+ }
36
+ }
@@ -0,0 +1,15 @@
1
+ @layer rc-theme-tailwind.components {
2
+ /*
3
+ * Tooltips use the inverse surface, like snackbars. Declared on the theme
4
+ * root so tooltips inside other shadow roots inherit the same values.
5
+ */
6
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) {
7
+ --rc-tooltip-padding-block: 0.375rem;
8
+ --rc-tooltip-padding-inline: 0.625rem;
9
+ --rc-tooltip-border: 0;
10
+ --rc-tooltip-radius: var(--tailwind-radius-sm, 0.25rem);
11
+ --rc-tooltip-background: var(--tailwind-inverse-surface, CanvasText);
12
+ --rc-tooltip-color: var(--tailwind-inverse-on-surface, Canvas);
13
+ --rc-tooltip-shadow: var(--tailwind-shadow-sm, none);
14
+ }
15
+ }
@@ -0,0 +1,30 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-transfer-list {
3
+ --rc-transfer-list-gap: 1rem;
4
+ --rc-transfer-list-listbox-border: var(--rc-border, 1px solid ButtonBorder);
5
+ --rc-transfer-list-listbox-radius: var(--tailwind-radius-lg, 0.75rem);
6
+ --rc-transfer-list-listbox-bg: var(--tailwind-surface-raised, Canvas);
7
+ }
8
+
9
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-transfer-list::part(panel),
10
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-transfer-list::part(listbox) {
11
+ box-shadow: var(--tailwind-shadow-sm, none);
12
+ }
13
+
14
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-transfer-list::part(listbox) {
15
+ --rc-listbox-option-gap: var(--rc-list-item-gap, var(--tailwind-item-gap, 0.5rem));
16
+ --rc-listbox-option-min-block-size: 2.25rem;
17
+ --rc-listbox-option-padding-block: var(--tailwind-item-padding-block, 0.55rem);
18
+ --rc-listbox-option-padding-inline: var(--tailwind-item-padding-inline, 0.75rem);
19
+ --rc-listbox-hover-bg: color-mix(in srgb, var(--rc-accent, Highlight) 10%, transparent);
20
+ --rc-listbox-hover-color: var(--rc-field-text, FieldText);
21
+ --rc-listbox-active-bg: color-mix(in srgb, var(--rc-accent, Highlight) 16%, transparent);
22
+ --rc-listbox-active-color: var(--rc-field-text, FieldText);
23
+ --rc-listbox-selected-bg: var(--rc-highlight, Highlight);
24
+ --rc-listbox-selected-color: var(--rc-highlight-text, HighlightText);
25
+ }
26
+
27
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-transfer-list::part(button) {
28
+ border-radius: var(--rc-control-radius, 0.5rem);
29
+ }
30
+ }
@@ -0,0 +1,18 @@
1
+ @layer rc-theme-tailwind.components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) rc-virtual-canvas {
3
+ overflow: hidden;
4
+ border: var(--rc-border, 1px solid ButtonBorder);
5
+ border-radius: var(--tailwind-radius-lg, 0.75rem);
6
+ background: var(--tailwind-surface, Canvas);
7
+
8
+ --rc-virtual-canvas-scrollbar-size: 0.75rem;
9
+ --rc-virtual-canvas-scrollbar-width: thin;
10
+ --rc-virtual-canvas-scrollbar-track-background: transparent;
11
+ --rc-virtual-canvas-scrollbar-thumb-background: color-mix(
12
+ in srgb,
13
+ var(--tailwind-on-surface-muted, GrayText) 45%,
14
+ transparent
15
+ );
16
+ --rc-virtual-canvas-scrollbar-button-background: var(--tailwind-surface-raised, ButtonFace);
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ @layer rc-theme-tailwind.components {
2
+ /*
3
+ * rc-virtual-scroller has no decorative surface of its own: the two
4
+ * spacer parts carry no paint, and every visual opinion belongs to the
5
+ * consumer's slotted list or grid. Nothing in Tailwind maps onto it.
6
+ */
7
+ }
package/components.css ADDED
@@ -0,0 +1,49 @@
1
+ @layer rc-base, rc-theme-tailwind.defaults, rc-theme-tailwind.bridge, rc-theme-tailwind.native, rc-theme-tailwind.components, rc-theme-tailwind.css-components,
2
+ rc-theme-tailwind.overrides;
3
+
4
+ @import './components/icons.css';
5
+ @import './components/listbox.css';
6
+ @import './components/select.css';
7
+ @import './components/combobox.css';
8
+ @import './components/search-bar.css';
9
+ @import './components/field.css';
10
+ @import './components/bottom-sheet.css';
11
+ @import './components/textarea.css';
12
+ @import './components/markdown-editor.css';
13
+ @import './components/transfer-list.css';
14
+ @import './components/button.css';
15
+ @import './components/card.css';
16
+ @import './components/chip.css';
17
+ @import './components/list-item.css';
18
+ @import './components/fab.css';
19
+ @import './components/fab-menu.css';
20
+ @import './components/app-bar.css';
21
+ @import './components/menu.css';
22
+ @import './components/menu-button.css';
23
+ @import './components/menubar.css';
24
+ @import './components/navigation-bar.css';
25
+ @import './components/navigation-rail.css';
26
+ @import './components/toolbar.css';
27
+ @import './components/segmented-button.css';
28
+ @import './components/slider.css';
29
+ @import './components/progress.css';
30
+ @import './components/snackbar.css';
31
+ @import './components/range-slider.css';
32
+ @import './components/splitter.css';
33
+ @import './components/switch.css';
34
+ @import './components/dialog.css';
35
+ @import './components/disclosure.css';
36
+ @import './components/accordion.css';
37
+ @import './components/breadcrumbs.css';
38
+ @import './components/data-table.css';
39
+ @import './components/pagination.css';
40
+ @import './components/virtual-canvas.css';
41
+ @import './components/adaptive-menu.css';
42
+ @import './components/carousel.css';
43
+ @import './components/page-turner.css';
44
+ @import './components/chip-group.css';
45
+ @import './components/scroller.css';
46
+ @import './components/virtual-scroller.css';
47
+ @import './components/tooltip.css';
48
+ @import './components/popover.css';
49
+ @import './components/modes.css';
@@ -0,0 +1,66 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ :where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
4
+ :where(rc-button > a)
5
+ ) {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: var(--rc-button-gap, 0.5rem);
10
+ min-block-size: var(--rc-button-block-size, 2.5rem);
11
+ padding-block: var(--rc-button-padding-block, 0.5rem);
12
+ padding-inline: var(--rc-button-padding-inline, 1.5rem);
13
+ border: var(--rc-button-border, var(--rc-border, 1px solid ButtonBorder));
14
+ border-radius: var(--rc-button-radius, var(--rc-control-radius, 999px));
15
+ background: var(--rc-button-bg, ButtonFace);
16
+ color: var(--rc-button-color, var(--rc-button-text, ButtonText));
17
+ font: var(--rc-button-font, inherit);
18
+ text-decoration: var(--rc-button-text-decoration, none);
19
+ cursor: pointer;
20
+ user-select: none;
21
+ }
22
+
23
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
24
+ :where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
25
+ :where(rc-button > a)
26
+ ):hover:not(:where(:disabled)) {
27
+ background: color-mix(in srgb, currentColor 8%, var(--rc-button-bg, ButtonFace));
28
+ }
29
+
30
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
31
+ :where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
32
+ :where(rc-button > a)
33
+ ):active:not(:where(:disabled)),
34
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
35
+ :where(button.rc-button, a[href].rc-button)[aria-pressed='true']:not(
36
+ :where(rc-button > button)
37
+ ):not(:where(rc-button > a)) {
38
+ background: var(--rc-highlight, Highlight);
39
+ color: var(--rc-highlight-text, HighlightText);
40
+ }
41
+
42
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
43
+ :where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
44
+ :where(rc-button > a)
45
+ ):focus-visible {
46
+ outline: var(--rc-focus-ring, 2px solid Highlight);
47
+ outline-offset: var(--rc-focus-ring-offset, 2px);
48
+ }
49
+
50
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
51
+ :where(button.rc-button, a[href].rc-button):is(:disabled, [aria-disabled='true']) {
52
+ color: var(--rc-text-disabled, GrayText);
53
+ cursor: not-allowed;
54
+ }
55
+
56
+ @media (forced-colors: active) {
57
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
58
+ :where(button.rc-button, a[href].rc-button)[aria-pressed='true'] {
59
+ border-color: Highlight;
60
+ outline: 1px solid Highlight;
61
+ outline-offset: -1px;
62
+ background: Highlight;
63
+ color: HighlightText;
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,14 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-card {
3
+ display: grid;
4
+ gap: var(--rc-card-actions-gap, 0.5rem);
5
+ box-sizing: border-box;
6
+ padding-block: var(--rc-card-padding-block, 1rem);
7
+ padding-inline: var(--rc-card-padding-inline, 1rem);
8
+ border: var(--rc-border, 1px solid ButtonBorder);
9
+ border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
10
+ background: var(--rc-card-bg, var(--rc-surface, Canvas));
11
+ color: var(--rc-card-color, CanvasText);
12
+ box-shadow: var(--rc-shadow, none);
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-chip-group {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ align-items: center;
6
+ gap: var(--rc-chip-group-row-gap, var(--rc-control-gap, 0.5rem))
7
+ var(--rc-chip-group-column-gap, var(--rc-control-gap, 0.5rem));
8
+ }
9
+ }
@@ -0,0 +1,80 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
4
+ :where(rc-chip > a)
5
+ ):not(:where(rc-chip > label)) {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: var(--rc-chip-gap, 0.25rem);
10
+ min-block-size: var(--rc-chip-block-size, 2rem);
11
+ padding-block: var(--rc-chip-padding-block, 0.25rem);
12
+ padding-inline: var(--rc-chip-padding-inline, 1rem);
13
+ border: var(--rc-chip-border, var(--rc-border, 1px solid ButtonBorder));
14
+ border-radius: var(--rc-chip-radius, 0.5rem);
15
+ background: var(--rc-chip-bg, ButtonFace);
16
+ color: var(--rc-chip-color, ButtonText);
17
+ font: var(--rc-chip-font, inherit);
18
+ text-decoration: var(--rc-chip-text-decoration, none);
19
+ cursor: pointer;
20
+ }
21
+
22
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
23
+ label.rc-chip
24
+ > :where(input[type='checkbox'], input[type='radio']) {
25
+ position: absolute;
26
+ inline-size: 1px;
27
+ block-size: 1px;
28
+ overflow: hidden;
29
+ clip-path: inset(50%);
30
+ white-space: nowrap;
31
+ }
32
+
33
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
34
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
35
+ :where(rc-chip > a)
36
+ ):not(:where(rc-chip > label)):hover:not(:where(:disabled)):not(:has(input:disabled)) {
37
+ background: color-mix(in srgb, currentColor 8%, var(--rc-chip-bg, ButtonFace));
38
+ }
39
+
40
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
41
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
42
+ :where(rc-chip > a)
43
+ ):not(:where(rc-chip > label)):has(input:checked) {
44
+ background: var(--rc-chip-selected-bg, Highlight);
45
+ color: var(--rc-highlight-text, HighlightText);
46
+ }
47
+
48
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
49
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
50
+ :where(rc-chip > a)
51
+ ):not(:where(rc-chip > label)):is(:focus-visible, :has(input:focus-visible)) {
52
+ outline: var(--rc-focus-ring, 2px solid Highlight);
53
+ outline-offset: var(--rc-focus-ring-offset, 2px);
54
+ }
55
+
56
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
57
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
58
+ :where(rc-chip > a)
59
+ ):not(:where(rc-chip > label)):has(input:disabled) {
60
+ color: var(--rc-text-disabled, GrayText);
61
+ cursor: not-allowed;
62
+ }
63
+
64
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
65
+ :where(button.rc-chip, a[href].rc-chip):is(:disabled, [aria-disabled='true']) {
66
+ color: var(--rc-text-disabled, GrayText);
67
+ cursor: not-allowed;
68
+ }
69
+
70
+ @media (forced-colors: active) {
71
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
72
+ :where(button.rc-chip, a[href].rc-chip, label.rc-chip):has(input:checked) {
73
+ border-color: Highlight;
74
+ outline: 1px solid Highlight;
75
+ outline-offset: -1px;
76
+ background: Highlight;
77
+ color: HighlightText;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,25 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ details.rc-disclosure:not(:where(rc-disclosure > details)) {
4
+ padding-block: var(--rc-control-padding-block, 0.5rem);
5
+ padding-inline: var(--rc-control-padding-inline, 1rem);
6
+ border: var(--rc-border, 1px solid ButtonBorder);
7
+ border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
8
+ background: var(--rc-surface, Canvas);
9
+ color: var(--rc-field-text, CanvasText);
10
+ }
11
+
12
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
13
+ details.rc-disclosure:not(:where(rc-disclosure > details))
14
+ > summary {
15
+ cursor: pointer;
16
+ font-weight: 500;
17
+ }
18
+
19
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
20
+ details.rc-disclosure:not(:where(rc-disclosure > details))
21
+ > summary:focus-visible {
22
+ outline: var(--rc-focus-ring, 2px solid Highlight);
23
+ outline-offset: var(--rc-focus-ring-offset, 2px);
24
+ }
25
+ }
@@ -0,0 +1,34 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-list {
3
+ display: grid;
4
+ gap: var(--rc-list-item-gap, 0.5rem);
5
+ margin-block: 0;
6
+ padding-inline-start: 0;
7
+ list-style: none;
8
+ }
9
+
10
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-list > li {
11
+ display: flex;
12
+ align-items: center;
13
+ min-block-size: var(--rc-list-item-min-block-size, 3rem);
14
+ padding-block: var(--rc-list-item-padding-block, 0.5rem);
15
+ padding-inline: var(--rc-list-item-padding-inline, 1rem);
16
+ border-radius: var(--rc-control-radius, 0.5rem);
17
+ }
18
+
19
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-list > li[aria-selected='true'],
20
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind)) .rc-list > li:has(input:checked) {
21
+ background: var(--rc-list-item-selected-bg, Highlight);
22
+ color: var(--rc-list-item-selected-color, HighlightText);
23
+ }
24
+
25
+ @media (forced-colors: active) {
26
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
27
+ .rc-list
28
+ > li:is([aria-selected='true'], :has(input:checked)) {
29
+ border-color: Highlight;
30
+ outline: 1px solid Highlight;
31
+ outline-offset: -1px;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,20 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ select.rc-select:not(:where(rc-select > select)) {
4
+ box-sizing: border-box;
5
+ min-block-size: var(--rc-select-control-block-size, var(--rc-control-block-size, 2.5rem));
6
+ padding-block: var(--rc-select-padding-block, var(--rc-control-padding-block, 0.5rem));
7
+ padding-inline: var(--rc-select-padding-inline, var(--rc-control-padding-inline, 1rem));
8
+ border: var(--rc-select-border, var(--rc-border, 1px solid ButtonBorder));
9
+ border-radius: var(--rc-select-radius, var(--rc-control-radius, 0.5rem));
10
+ background: var(--rc-field, Field);
11
+ color: var(--rc-field-text, FieldText);
12
+ font: inherit;
13
+ }
14
+
15
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
16
+ select.rc-select:not(:where(rc-select > select)):focus-visible {
17
+ outline: var(--rc-focus-ring, 2px solid Highlight);
18
+ outline-offset: var(--rc-focus-ring-offset, 2px);
19
+ }
20
+ }
@@ -0,0 +1,22 @@
1
+ @layer rc-theme-tailwind.css-components {
2
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
3
+ textarea.rc-textarea:not(:where(rc-textarea > textarea)) {
4
+ box-sizing: border-box;
5
+ min-block-size: var(--rc-control-block-size, 2.5rem);
6
+ padding-block: var(--rc-control-padding-block, 0.5rem);
7
+ padding-inline: var(--rc-control-padding-inline, 1rem);
8
+ border: var(--rc-textarea-border, var(--rc-border, 1px solid ButtonBorder));
9
+ border-radius: var(--rc-textarea-border-radius, var(--rc-control-radius, 0.5rem));
10
+ background: var(--rc-textarea-background, var(--rc-field, Field));
11
+ color: var(--rc-textarea-color, var(--rc-field-text, FieldText));
12
+ caret-color: var(--rc-textarea-caret-color, var(--rc-accent, AccentColor));
13
+ font: inherit;
14
+ resize: block;
15
+ }
16
+
17
+ :where(.rc-theme-tailwind, :host(.rc-theme-tailwind))
18
+ textarea.rc-textarea:not(:where(rc-textarea > textarea)):focus-visible {
19
+ outline: var(--rc-textarea-focus-outline, var(--rc-focus-ring, 2px solid Highlight));
20
+ outline-offset: var(--rc-focus-ring-offset, 2px);
21
+ }
22
+ }