@auronui/styles 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.
- package/DATA_ATTRIBUTES.md +163 -0
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/base/base.css +40 -0
- package/components/accordion.css +201 -0
- package/components/alert-dialog.css +307 -0
- package/components/alert.css +143 -0
- package/components/aspect-ratio.css +8 -0
- package/components/autocomplete.css +685 -0
- package/components/avatar.css +78 -0
- package/components/badge.css +186 -0
- package/components/breadcrumbs.css +76 -0
- package/components/button-group.css +126 -0
- package/components/button.css +282 -0
- package/components/calendar-year-picker.css +193 -0
- package/components/calendar.css +332 -0
- package/components/card.css +225 -0
- package/components/checkbox-group.css +7 -0
- package/components/checkbox.css +268 -0
- package/components/chip.css +227 -0
- package/components/close-button.css +65 -0
- package/components/collapsible-group.css +7 -0
- package/components/collapsible.css +74 -0
- package/components/color-area.css +81 -0
- package/components/color-field.css +99 -0
- package/components/color-input-group.css +153 -0
- package/components/color-picker.css +121 -0
- package/components/color-slider.css +266 -0
- package/components/color-swatch-picker.css +247 -0
- package/components/color-swatch.css +42 -0
- package/components/combo-box.css +203 -0
- package/components/date-input-group.css +125 -0
- package/components/date-input.css +529 -0
- package/components/date-picker.css +86 -0
- package/components/date-range-field.css +538 -0
- package/components/date-range-picker.css +93 -0
- package/components/description.css +4 -0
- package/components/drawer.css +222 -0
- package/components/dropdown.css +67 -0
- package/components/empty-state.css +4 -0
- package/components/error-message.css +13 -0
- package/components/field-error.css +19 -0
- package/components/fieldset.css +39 -0
- package/components/header.css +7 -0
- package/components/index.css +164 -0
- package/components/input-otp.css +124 -0
- package/components/input.css +603 -0
- package/components/kbd.css +27 -0
- package/components/label.css +28 -0
- package/components/link.css +144 -0
- package/components/list-box-item.css +29 -0
- package/components/list-box-section.css +13 -0
- package/components/list-box.css +11 -0
- package/components/menu-item.css +68 -0
- package/components/menu-section.css +18 -0
- package/components/menu.css +7 -0
- package/components/meter.css +104 -0
- package/components/modal.css +335 -0
- package/components/number-field.css +395 -0
- package/components/pagination.css +157 -0
- package/components/popover.css +96 -0
- package/components/progress-bar.css +126 -0
- package/components/progress-circle.css +82 -0
- package/components/radio-group.css +47 -0
- package/components/radio.css +157 -0
- package/components/range-calendar.css +402 -0
- package/components/scroll-area.css +70 -0
- package/components/scroll-shadow.css +77 -0
- package/components/select.css +649 -0
- package/components/separator.css +59 -0
- package/components/skeleton.css +48 -0
- package/components/slider.css +155 -0
- package/components/spinner.css +42 -0
- package/components/splitter.css +74 -0
- package/components/stepper.css +160 -0
- package/components/surface.css +23 -0
- package/components/switch-group.css +17 -0
- package/components/switch.css +194 -0
- package/components/table.css +341 -0
- package/components/tabs.css +262 -0
- package/components/tag-group.css +66 -0
- package/components/tag.css +99 -0
- package/components/textarea.css +536 -0
- package/components/time-field.css +530 -0
- package/components/toast.css +267 -0
- package/components/toggle-button-group.css +174 -0
- package/components/toggle-button.css +149 -0
- package/components/toolbar.css +32 -0
- package/components/tooltip.css +47 -0
- package/components/tree.css +81 -0
- package/index.css +29 -0
- package/package.json +415 -0
- package/src/components/accordion/accordion.styles.ts +46 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.styles.ts +37 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/alert-dialog/alert-dialog.styles.ts +72 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/aspect-ratio/aspect-ratio.styles.ts +10 -0
- package/src/components/aspect-ratio/index.ts +1 -0
- package/src/components/autocomplete/autocomplete.styles.ts +86 -0
- package/src/components/autocomplete/index.ts +1 -0
- package/src/components/avatar/avatar.styles.ts +53 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/badge.styles.ts +77 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +14 -0
- package/src/components/breadcrumbs/index.ts +1 -0
- package/src/components/button/__tests__/button.styles.test.ts +79 -0
- package/src/components/button/button.styles.ts +65 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/button-group.styles.ts +32 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/calendar/calendar.styles.ts +60 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +15 -0
- package/src/components/calendar-year-picker/index.ts +1 -0
- package/src/components/card/card.styles.ts +65 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/checkbox/checkbox.styles.ts +27 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox-group/checkbox-group.styles.ts +18 -0
- package/src/components/checkbox-group/index.ts +1 -0
- package/src/components/chip/chip.styles.ts +65 -0
- package/src/components/chip/index.ts +1 -0
- package/src/components/close-button/close-button.styles.ts +17 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/collapsible/collapsible.styles.ts +25 -0
- package/src/components/collapsible/index.ts +1 -0
- package/src/components/collapsible-group/collapsible-group.styles.ts +13 -0
- package/src/components/collapsible-group/index.ts +1 -0
- package/src/components/color-area/color-area.styles.ts +23 -0
- package/src/components/color-area/index.ts +1 -0
- package/src/components/color-field/color-field.styles.ts +18 -0
- package/src/components/color-field/index.ts +1 -0
- package/src/components/color-input-group/color-input-group.styles.ts +34 -0
- package/src/components/color-input-group/index.ts +1 -0
- package/src/components/color-picker/color-picker.styles.ts +13 -0
- package/src/components/color-picker/index.ts +1 -0
- package/src/components/color-slider/color-slider.styles.ts +14 -0
- package/src/components/color-slider/index.ts +1 -0
- package/src/components/color-swatch/color-swatch.styles.ts +26 -0
- package/src/components/color-swatch/index.ts +1 -0
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +54 -0
- package/src/components/color-swatch-picker/index.ts +1 -0
- package/src/components/combo-box/combo-box.styles.ts +26 -0
- package/src/components/combo-box/index.ts +1 -0
- package/src/components/date-input/date-input.styles.ts +86 -0
- package/src/components/date-input/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +14 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/date-range-field/date-range-field.styles.ts +87 -0
- package/src/components/date-range-field/index.ts +1 -0
- package/src/components/date-range-picker/date-range-picker.styles.ts +14 -0
- package/src/components/date-range-picker/index.ts +1 -0
- package/src/components/description/description.styles.ts +9 -0
- package/src/components/description/index.ts +1 -0
- package/src/components/drawer/drawer.styles.ts +55 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown/dropdown.styles.ts +14 -0
- package/src/components/dropdown/index.ts +1 -0
- package/src/components/empty-state/empty-state.styles.ts +9 -0
- package/src/components/empty-state/index.ts +1 -0
- package/src/components/error-message/error-message.styles.ts +9 -0
- package/src/components/error-message/index.ts +1 -0
- package/src/components/fieldset/fieldset.styles.ts +29 -0
- package/src/components/fieldset/index.ts +1 -0
- package/src/components/header/header.styles.ts +5 -0
- package/src/components/header/index.ts +1 -0
- package/src/components/index.ts +84 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.styles.ts +87 -0
- package/src/components/input-otp/index.ts +1 -0
- package/src/components/input-otp/input-otp.styles.ts +30 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.styles.ts +20 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.styles.ts +25 -0
- package/src/components/link/index.ts +1 -0
- package/src/components/link/link.styles.ts +38 -0
- package/src/components/list-box/index.ts +1 -0
- package/src/components/list-box/list-box.styles.ts +18 -0
- package/src/components/list-box-item/index.ts +1 -0
- package/src/components/list-box-item/list-box-item.styles.ts +25 -0
- package/src/components/list-box-section/index.ts +1 -0
- package/src/components/list-box-section/list-box-section.styles.ts +13 -0
- package/src/components/menu/index.ts +1 -0
- package/src/components/menu/menu.styles.ts +9 -0
- package/src/components/menu-item/index.ts +1 -0
- package/src/components/menu-item/menu-item.styles.ts +26 -0
- package/src/components/menu-section/index.ts +1 -0
- package/src/components/menu-section/menu-section.styles.ts +14 -0
- package/src/components/meter/index.ts +1 -0
- package/src/components/meter/meter.styles.ts +48 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/modal.styles.ts +70 -0
- package/src/components/number-field/index.ts +1 -0
- package/src/components/number-field/number-field.styles.ts +80 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/pagination.styles.ts +32 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.styles.ts +14 -0
- package/src/components/progress-bar/index.ts +1 -0
- package/src/components/progress-bar/progress-bar.styles.ts +97 -0
- package/src/components/progress-circle/index.ts +1 -0
- package/src/components/progress-circle/progress-circle.styles.ts +74 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio/radio.styles.ts +14 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.styles.ts +18 -0
- package/src/components/range-calendar/index.ts +1 -0
- package/src/components/range-calendar/range-calendar.styles.ts +60 -0
- package/src/components/scroll-shadow/index.ts +1 -0
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +37 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.styles.ts +86 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.styles.ts +25 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.styles.ts +21 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.styles.ts +40 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.styles.ts +28 -0
- package/src/components/splitter/index.ts +1 -0
- package/src/components/splitter/splitter.styles.ts +28 -0
- package/src/components/stepper/index.ts +1 -0
- package/src/components/stepper/stepper.styles.ts +57 -0
- package/src/components/surface/index.ts +1 -0
- package/src/components/surface/surface.styles.ts +20 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.styles.ts +31 -0
- package/src/components/switch-group/index.ts +1 -0
- package/src/components/switch-group/switch-group.styles.ts +25 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/table.styles.ts +47 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.styles.ts +31 -0
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.styles.ts +37 -0
- package/src/components/tag-group/index.ts +1 -0
- package/src/components/tag-group/tag-group.styles.ts +12 -0
- package/src/components/text/index.ts +1 -0
- package/src/components/text/text.styles.ts +29 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.styles.ts +86 -0
- package/src/components/time-field/index.ts +1 -0
- package/src/components/time-field/time-field.styles.ts +86 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.styles.ts +67 -0
- package/src/components/toggle-button/index.ts +1 -0
- package/src/components/toggle-button/toggle-button.styles.ts +28 -0
- package/src/components/toggle-button-group/index.ts +1 -0
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +39 -0
- package/src/components/toolbar/index.ts +1 -0
- package/src/components/toolbar/toolbar.styles.ts +23 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.styles.ts +12 -0
- package/src/components/tree/index.ts +1 -0
- package/src/components/tree/tree.styles.ts +33 -0
- package/src/index.ts +5 -0
- package/src/utils/index.ts +15 -0
- package/themes/default/components/index.css +6 -0
- package/themes/default/index.css +8 -0
- package/themes/default/variables.css +168 -0
- package/themes/shared/theme.css +196 -0
- package/utilities/index.css +244 -0
- package/variants/index.css +106 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* === Focus Ring === */
|
|
2
|
+
@utility focus-ring {
|
|
3
|
+
@apply ring-2 ring-focus ring-offset-0 ring-offset-background outline-none;
|
|
4
|
+
/* Overrides the ring offset from the theme variables */
|
|
5
|
+
--tw-ring-offset-width: var(--ring-offset-width);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@utility focus-field-ring {
|
|
9
|
+
@apply ring-2 ring-focus ring-offset-0 outline-none;
|
|
10
|
+
/* No separation - ring sits directly against the element */
|
|
11
|
+
--tw-ring-offset-width: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@utility invalid-field-ring {
|
|
15
|
+
/* Unfocused: show 1px outline */
|
|
16
|
+
@apply outline-1 outline-danger outline-solid;
|
|
17
|
+
--tw-ring-offset-width: 3px;
|
|
18
|
+
|
|
19
|
+
/* Focused: show 2px ring in danger color, remove outline */
|
|
20
|
+
&:focus,
|
|
21
|
+
&:focus-visible,
|
|
22
|
+
&[data-focused="true"],
|
|
23
|
+
&[data-focus-visible="true"],
|
|
24
|
+
&:focus-within,
|
|
25
|
+
&[data-focus-within="true"] {
|
|
26
|
+
@apply ring-2 ring-danger ring-offset-0;
|
|
27
|
+
--tw-ring-offset-width: 0px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility no-highlight {
|
|
32
|
+
-webkit-tap-highlight-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* === Statuses === */
|
|
36
|
+
@utility status-focused {
|
|
37
|
+
@apply focus-ring;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@utility status-focused-field {
|
|
41
|
+
@apply focus-field-ring;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@utility status-invalid-field {
|
|
45
|
+
@apply invalid-field-ring;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@utility status-disabled {
|
|
49
|
+
opacity: var(--disabled-opacity);
|
|
50
|
+
cursor: var(--cursor-disabled);
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility status-pending {
|
|
55
|
+
@apply pointer-events-none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ==========================================================================
|
|
59
|
+
Shared list utilities — @apply these into component classes.
|
|
60
|
+
Defined here (not in layer(components)) so @apply resolves correctly.
|
|
61
|
+
========================================================================== */
|
|
62
|
+
|
|
63
|
+
@utility list-container {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
width: 100%;
|
|
67
|
+
padding: 0.25rem;
|
|
68
|
+
|
|
69
|
+
& [data-slot="separator"] {
|
|
70
|
+
margin-left: 3%;
|
|
71
|
+
width: 94%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@utility list-section {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
width: 100%;
|
|
79
|
+
gap: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@utility list-section-label {
|
|
83
|
+
@apply px-2 py-1 text-xs text-gray-500 tracking-wider;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@utility list-section-separator {
|
|
87
|
+
@apply h-px bg-muted/25 mx-1 my-1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@utility list-item {
|
|
91
|
+
position: relative;
|
|
92
|
+
display: flex !important;
|
|
93
|
+
width: 100%;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
padding: 0.375rem 0.5rem;
|
|
97
|
+
outline: none;
|
|
98
|
+
-webkit-tap-highlight-color: transparent;
|
|
99
|
+
cursor: var(--cursor-interactive);
|
|
100
|
+
|
|
101
|
+
transition:
|
|
102
|
+
transform 300ms var(--ease-out-quart),
|
|
103
|
+
background-color 200ms var(--ease-smooth);
|
|
104
|
+
|
|
105
|
+
@media (prefers-reduced-motion: reduce) {
|
|
106
|
+
transition: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& [data-slot="label"] {
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
width: fit-content;
|
|
112
|
+
user-select: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& [data-slot="description"] {
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
text-wrap: wrap;
|
|
118
|
+
user-select: none;
|
|
119
|
+
color: var(--color-muted);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:focus-visible:not(:focus),
|
|
123
|
+
&[data-focus-visible="true"] {
|
|
124
|
+
@apply status-focused;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:active,
|
|
128
|
+
&[data-pressed="true"] {
|
|
129
|
+
transform: scale(0.98);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (hover: hover) {
|
|
133
|
+
&:hover,
|
|
134
|
+
&[data-hovered="true"] {
|
|
135
|
+
background-color: var(--color-default);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&[data-disabled] {
|
|
140
|
+
@apply status-disabled;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@utility list-item-indicator {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 50%;
|
|
147
|
+
display: flex;
|
|
148
|
+
width: 1rem;
|
|
149
|
+
height: 1rem;
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
translate: 0 -50%;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
transition: all 300ms;
|
|
155
|
+
|
|
156
|
+
@media (prefers-reduced-motion: reduce) {
|
|
157
|
+
transition: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ==========================================================================
|
|
162
|
+
Picker (Select / Autocomplete / ComboBox) shared utilities
|
|
163
|
+
========================================================================== */
|
|
164
|
+
|
|
165
|
+
@utility picker-helper-wrapper {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
gap: 0.125rem;
|
|
169
|
+
padding: 0 0.25rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@utility picker-description {
|
|
173
|
+
@apply text-xs;
|
|
174
|
+
color: color-mix(in oklab, var(--color-foreground) 60%, transparent);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@utility picker-error-message {
|
|
178
|
+
@apply text-xs;
|
|
179
|
+
color: var(--color-danger);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@utility overlay-popover-scrollbar {
|
|
183
|
+
scrollbar-width: thin;
|
|
184
|
+
scrollbar-color: color-mix(in oklab, var(--foreground) 20%, transparent) transparent;
|
|
185
|
+
|
|
186
|
+
&::-webkit-scrollbar {
|
|
187
|
+
width: 6px;
|
|
188
|
+
}
|
|
189
|
+
&::-webkit-scrollbar-track {
|
|
190
|
+
background: transparent;
|
|
191
|
+
}
|
|
192
|
+
&::-webkit-scrollbar-thumb {
|
|
193
|
+
background: color-mix(in oklab, var(--foreground) 20%, transparent);
|
|
194
|
+
border-radius: 9999px;
|
|
195
|
+
}
|
|
196
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
197
|
+
background: color-mix(in oklab, var(--foreground) 35%, transparent);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:not(:hover):not(:focus-within) {
|
|
201
|
+
scrollbar-color: transparent transparent;
|
|
202
|
+
&::-webkit-scrollbar-thumb {
|
|
203
|
+
background: transparent;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@utility overlay-popover-listbox {
|
|
209
|
+
& [data-slot="list-box"] {
|
|
210
|
+
@apply p-1.5 outline-none;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
& [data-slot="list-box-item"] {
|
|
214
|
+
@apply px-2.5;
|
|
215
|
+
scroll-margin-block: 0.25rem;
|
|
216
|
+
|
|
217
|
+
&[data-highlighted],
|
|
218
|
+
&[data-highlighted="true"] {
|
|
219
|
+
@apply bg-default;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
& [data-slot="list-box"]:not([aria-multiselectable="true"]) [data-slot="list-box-item-indicator"],
|
|
224
|
+
& [data-slot="list-box"]:not([aria-multiselectable="true"])
|
|
225
|
+
[data-slot="list-box-item-indicator"]
|
|
226
|
+
[data-slot="list-box-item-indicator--checkmark"] {
|
|
227
|
+
@apply transition-none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
& [data-slot="empty-state"] {
|
|
231
|
+
@apply text-center text-sm text-overlay-foreground/60;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@utility surface-card {
|
|
236
|
+
background-color: var(--color-surface);
|
|
237
|
+
color: var(--color-surface-foreground);
|
|
238
|
+
border: 1px solid var(--color-border);
|
|
239
|
+
border-radius: calc(var(--radius) * 1.5);
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
--tw-shadow: var(--tw-shadow-colored);
|
|
242
|
+
box-shadow: var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);
|
|
243
|
+
|
|
244
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ================================================================================================
|
|
3
|
+
* Auron UI Custom Tailwind CSS Variants
|
|
4
|
+
* ================================================================================================
|
|
5
|
+
*
|
|
6
|
+
* Custom variants with intelligent fallback: explicit controls override system preferences.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* motion-reduce:opacity-0 - Reduced motion accessibility
|
|
10
|
+
* motion-safe:animate-spin - Full motion effects
|
|
11
|
+
* dark:bg-gray-900 - Dark mode styles
|
|
12
|
+
*
|
|
13
|
+
* Priority: Explicit data attributes/classes → System preferences (fallback)
|
|
14
|
+
* ================================================================================================
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/* -------------------------------------------------------------------------------------------------
|
|
18
|
+
* motion-reduce — Minimize animations for accessibility
|
|
19
|
+
* Priority: data-reduce-motion="true" → prefers-reduced-motion: reduce
|
|
20
|
+
* ------------------------------------------------------------------------------------------------- */
|
|
21
|
+
@custom-variant motion-reduce {
|
|
22
|
+
/* Explicit: data-reduce-motion="true" on element or ancestor */
|
|
23
|
+
&:is([data-reduce-motion="true"], [data-reduce-motion="true"] *) {
|
|
24
|
+
@slot;
|
|
25
|
+
|
|
26
|
+
&::before,
|
|
27
|
+
&::after {
|
|
28
|
+
@slot;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Fallback: system prefers-reduced-motion setting */
|
|
33
|
+
@media (prefers-reduced-motion: reduce) {
|
|
34
|
+
&:not(:is([data-reduce-motion="true"], [data-reduce-motion="true"] *)) {
|
|
35
|
+
@slot;
|
|
36
|
+
|
|
37
|
+
&::before,
|
|
38
|
+
&::after {
|
|
39
|
+
@slot;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* -------------------------------------------------------------------------------------------------
|
|
46
|
+
* motion-safe — Enable full animations and transitions
|
|
47
|
+
* Priority: data-reduce-motion="false" → prefers-reduced-motion: no-preference
|
|
48
|
+
* ------------------------------------------------------------------------------------------------- */
|
|
49
|
+
@custom-variant motion-safe {
|
|
50
|
+
/* Explicit: data-reduce-motion="false" on element or ancestor */
|
|
51
|
+
&:is([data-reduce-motion="false"], [data-reduce-motion="false"] *) {
|
|
52
|
+
@slot;
|
|
53
|
+
|
|
54
|
+
&::before,
|
|
55
|
+
&::after {
|
|
56
|
+
@slot;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Fallback: system has no motion preference set */
|
|
61
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
62
|
+
&:not(
|
|
63
|
+
:is(
|
|
64
|
+
[data-reduce-motion="true"],
|
|
65
|
+
[data-reduce-motion="true"] *,
|
|
66
|
+
[data-reduce-motion="false"],
|
|
67
|
+
[data-reduce-motion="false"] *
|
|
68
|
+
)
|
|
69
|
+
) {
|
|
70
|
+
@slot;
|
|
71
|
+
|
|
72
|
+
&::before,
|
|
73
|
+
&::after {
|
|
74
|
+
@slot;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* -------------------------------------------------------------------------------------------------
|
|
81
|
+
* dark — Dark mode styles
|
|
82
|
+
* Priority: .dark class / data-theme="dark" → prefers-color-scheme: dark
|
|
83
|
+
* ------------------------------------------------------------------------------------------------- */
|
|
84
|
+
@custom-variant dark {
|
|
85
|
+
/* Explicit: .dark class or data-theme="dark" on element or ancestor */
|
|
86
|
+
&:is(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *) {
|
|
87
|
+
@slot;
|
|
88
|
+
|
|
89
|
+
&::before,
|
|
90
|
+
&::after {
|
|
91
|
+
@slot;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Fallback: system prefers dark color scheme */
|
|
96
|
+
@media (prefers-color-scheme: dark) {
|
|
97
|
+
&:not(:is(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)) & {
|
|
98
|
+
@slot;
|
|
99
|
+
|
|
100
|
+
&::before,
|
|
101
|
+
&::after {
|
|
102
|
+
@slot;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|