@brumaombra/ui-vintage 0.7.13 → 0.8.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/COMPONENTS.md +3602 -0
- package/README.md +49 -9
- package/package.json +29 -8
- package/skills/ui-vintage/SKILL.md +42 -0
- package/src/components/blog/BlogFAQSection.vue +2 -2
- package/src/components/blog/BlogHeaderSection.vue +2 -2
- package/src/components/blog/BlogInfoSection.vue +3 -3
- package/src/components/blog/BlogProgressBar.vue +7 -6
- package/src/components/blog/BlogSectionTitle.vue +1 -1
- package/src/components/blog/BlogTagsSection.vue +22 -0
- package/src/components/blog/CategoryCard.vue +1 -1
- package/src/components/blog/HeaderCarousel.vue +6 -6
- package/src/components/blog/PostCard.vue +2 -2
- package/src/components/blog/SocialShareSidebar.vue +1 -1
- package/src/components/blog/TableOfContents.vue +6 -6
- package/src/components/blog/index.ts +1 -0
- package/src/components/busy-indicator/busy-indicator-state.ts +3 -2
- package/src/components/chip/Chip.vue +9 -5
- package/src/components/confirm-dialog/ConfirmDialog.vue +17 -6
- package/src/components/confirm-dialog/confirm-dialog-state.ts +4 -3
- package/src/components/content/BlogList.vue +3 -3
- package/src/components/content/BlogTable.vue +7 -7
- package/src/components/content/CodeBlock.vue +4 -4
- package/src/components/content/Flow.vue +3 -3
- package/src/components/content/ProseHr.vue +2 -2
- package/src/components/content/Terminal.vue +4 -4
- package/src/components/dashboard-shell/DashboardShell.vue +3 -3
- package/src/components/empty-state-card/EmptyStateCard.vue +4 -4
- package/src/components/error-page/ErrorPage.vue +16 -14
- package/src/components/info-card/InfoCard.vue +1 -1
- package/src/components/landing/landing-navbar/LandingNavbar.vue +2 -1
- package/src/components/load-more-button/LoadMoreButton.vue +2 -2
- package/src/components/loading-state-card/LoadingStateCard.vue +4 -4
- package/src/components/message-dialog/MessageDialog.vue +4 -4
- package/src/components/message-toast/MessageToast.vue +222 -50
- package/src/components/message-toast/index.ts +2 -2
- package/src/components/message-toast/message-toast-state.ts +107 -81
- package/src/components/page-header/PageHeader.vue +1 -1
- package/src/components/progress-component/ProgressComponent.vue +4 -4
- package/src/components/single-value-card/SingleValueCard.vue +47 -11
- package/src/components/theme-selector/ThemeSelector.vue +20 -36
- package/src/components/theme-selector/index.ts +3 -1
- package/src/components/theme-selector/theme-transition.ts +86 -0
- package/src/components/ui/accordion/Accordion.vue +41 -26
- package/src/components/ui/alert-dialog/AlertDialogContent.vue +2 -2
- package/src/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
- package/src/components/ui/animated-number/AnimatedNumber.vue +88 -0
- package/src/components/ui/animated-number/index.ts +1 -0
- package/src/components/ui/avatar/Avatar.vue +66 -0
- package/src/components/ui/avatar/AvatarFallback.vue +31 -0
- package/src/components/ui/avatar/AvatarGroup.vue +75 -0
- package/src/components/ui/avatar/AvatarImage.vue +23 -0
- package/src/components/ui/avatar/index.ts +47 -0
- package/src/components/ui/badge/Badge.vue +13 -2
- package/src/components/ui/breadcrumb/Breadcrumb.vue +4 -1
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +7 -1
- package/src/components/ui/busy/Busy.vue +45 -20
- package/src/components/ui/button/Button.vue +20 -3
- package/src/components/ui/button/index.ts +12 -2
- package/src/components/ui/card/Card.vue +21 -8
- package/src/components/ui/card/CardText.vue +1 -1
- package/src/components/ui/checkbox/Checkbox.vue +48 -0
- package/src/components/ui/checkbox/index.ts +1 -0
- package/src/components/ui/collapsible/Collapsible.vue +22 -0
- package/src/components/ui/collapsible/CollapsibleContent.vue +22 -0
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +19 -0
- package/src/components/ui/collapsible/index.ts +3 -0
- package/src/components/ui/combobox/Combobox.vue +24 -0
- package/src/components/ui/combobox/ComboboxAnchor.vue +39 -0
- package/src/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/src/components/ui/combobox/ComboboxGroup.vue +26 -0
- package/src/components/ui/combobox/ComboboxInput.vue +28 -0
- package/src/components/ui/combobox/ComboboxItem.vue +39 -0
- package/src/components/ui/combobox/ComboboxList.vue +43 -0
- package/src/components/ui/combobox/ComboboxSelect.vue +162 -0
- package/src/components/ui/combobox/ComboboxSeparator.vue +16 -0
- package/src/components/ui/combobox/ComboboxTrigger.vue +28 -0
- package/src/components/ui/combobox/index.ts +11 -0
- package/src/components/ui/combobox/types.ts +16 -0
- package/src/components/ui/command/CommandDialog.vue +18 -16
- package/src/components/ui/command/CommandGroup.vue +1 -1
- package/src/components/ui/command/CommandInput.vue +2 -2
- package/src/components/ui/command/CommandItem.vue +7 -5
- package/src/components/ui/data-table/DataTable.vue +230 -0
- package/src/components/ui/data-table/index.ts +20 -0
- package/src/components/ui/date-picker/DatePicker.vue +11 -15
- package/src/components/ui/date-time-picker/DateTimePicker.vue +2 -7
- package/src/components/ui/dialog/DialogContent.vue +9 -4
- package/src/components/ui/dialog/DialogOverlay.vue +1 -1
- package/src/components/ui/dialog/DialogScrollContent.vue +10 -5
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +18 -0
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +34 -0
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +13 -0
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +34 -0
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +26 -0
- package/src/components/ui/dropdown-menu/DropdownMenuPortal.vue +13 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +18 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +32 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +16 -0
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +15 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +36 -0
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +15 -0
- package/src/components/ui/dropdown-menu/classes.ts +24 -0
- package/src/components/ui/dropdown-menu/index.ts +15 -0
- package/src/components/ui/field/FieldDescription.vue +1 -1
- package/src/components/ui/field/FieldError.vue +4 -1
- package/src/components/ui/file-dropzone/FileDropzone.vue +250 -0
- package/src/components/ui/file-dropzone/index.ts +35 -0
- package/src/components/ui/hover-card/HoverCard.vue +21 -0
- package/src/components/ui/hover-card/HoverCardContent.vue +33 -0
- package/src/components/ui/hover-card/HoverCardTrigger.vue +13 -0
- package/src/components/ui/hover-card/index.ts +3 -0
- package/src/components/ui/input/Input.vue +5 -5
- package/src/components/ui/kbd/Kbd.vue +21 -0
- package/src/components/ui/kbd/KbdGroup.vue +72 -0
- package/src/components/ui/kbd/index.ts +2 -0
- package/src/components/ui/number-field/NumberField.vue +130 -0
- package/src/components/ui/number-field/index.ts +1 -0
- package/src/components/ui/pagination/Pagination.vue +27 -0
- package/src/components/ui/pagination/PaginationContent.vue +20 -0
- package/src/components/ui/pagination/PaginationEllipsis.vue +31 -0
- package/src/components/ui/pagination/PaginationFirst.vue +32 -0
- package/src/components/ui/pagination/PaginationItem.vue +41 -0
- package/src/components/ui/pagination/PaginationLast.vue +32 -0
- package/src/components/ui/pagination/PaginationNext.vue +32 -0
- package/src/components/ui/pagination/PaginationPrevious.vue +32 -0
- package/src/components/ui/pagination/SimplePagination.vue +49 -0
- package/src/components/ui/pagination/index.ts +9 -0
- package/src/components/ui/pin-input/PinInput.vue +48 -0
- package/src/components/ui/pin-input/PinInputInput.vue +49 -0
- package/src/components/ui/pin-input/context.ts +8 -0
- package/src/components/ui/pin-input/index.ts +2 -0
- package/src/components/ui/popover/PopoverContent.vue +1 -1
- package/src/components/ui/progress/Progress.vue +22 -7
- package/src/components/ui/radio-group/RadioGroup.vue +27 -0
- package/src/components/ui/radio-group/RadioGroupCard.vue +56 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/src/components/ui/radio-group/index.ts +3 -0
- package/src/components/ui/select/SelectContent.vue +1 -1
- package/src/components/ui/select/SelectItem.vue +2 -2
- package/src/components/ui/select/SelectItemContent.vue +1 -1
- package/src/components/ui/select/SelectTrigger.vue +6 -6
- package/src/components/ui/select/SelectValueContent.vue +1 -1
- package/src/components/ui/sheet/SheetContent.vue +5 -5
- package/src/components/ui/sheet/SheetOverlay.vue +1 -1
- package/src/components/ui/sidebar/Sidebar.vue +7 -5
- package/src/components/ui/sidebar/SidebarRail.vue +3 -1
- package/src/components/ui/sidebar/SidebarTrigger.vue +3 -1
- package/src/components/ui/skeleton/Skeleton.vue +4 -4
- package/src/components/ui/slider/Slider.vue +8 -6
- package/src/components/ui/spinner/Spinner.vue +47 -0
- package/src/components/ui/spinner/index.ts +1 -0
- package/src/components/ui/stepper/SimpleStepper.vue +56 -0
- package/src/components/ui/stepper/Stepper.vue +30 -0
- package/src/components/ui/stepper/StepperDescription.vue +20 -0
- package/src/components/ui/stepper/StepperIndicator.vue +41 -0
- package/src/components/ui/stepper/StepperItem.vue +21 -0
- package/src/components/ui/stepper/StepperSeparator.vue +34 -0
- package/src/components/ui/stepper/StepperTitle.vue +20 -0
- package/src/components/ui/stepper/StepperTrigger.vue +20 -0
- package/src/components/ui/stepper/index.ts +17 -0
- package/src/components/ui/switch/Switch.vue +8 -6
- package/src/components/ui/tabs/TabsContent.vue +1 -1
- package/src/components/ui/tabs/TabsList.vue +13 -5
- package/src/components/ui/tabs/TabsTrigger.vue +5 -3
- package/src/components/ui/tags-input/TagsInput.vue +49 -0
- package/src/components/ui/tags-input/TagsInputInput.vue +23 -0
- package/src/components/ui/tags-input/TagsInputItem.vue +35 -0
- package/src/components/ui/tags-input/TagsInputItemDelete.vue +31 -0
- package/src/components/ui/tags-input/TagsInputItemText.vue +21 -0
- package/src/components/ui/tags-input/index.ts +5 -0
- package/src/components/ui/textarea/Textarea.vue +4 -5
- package/src/components/ui/toggle-group/Toggle.vue +33 -0
- package/src/components/ui/toggle-group/ToggleGroup.vue +93 -0
- package/src/components/ui/toggle-group/ToggleGroupItem.vue +34 -0
- package/src/components/ui/toggle-group/index.ts +69 -0
- package/src/components/ui/tooltip/TooltipContent.vue +1 -1
- package/src/i18n/de.json +76 -0
- package/src/i18n/en.json +76 -0
- package/src/i18n/es.json +76 -0
- package/src/i18n/fr.json +76 -0
- package/src/i18n/it.json +76 -0
- package/src/i18n/ja.json +76 -0
- package/src/i18n/pt.json +76 -0
- package/src/i18n/ru.json +76 -0
- package/src/i18n/zh.json +76 -0
- package/src/lib/color-tokens.ts +14 -14
- package/src/styles.css +289 -5
package/src/styles.css
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
|
-
@import "tw-animate-css";
|
|
3
2
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
4
3
|
@source "./**/*.{ts,vue}";
|
|
5
4
|
|
|
6
5
|
html {
|
|
7
6
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
-moz-osx-font-smoothing: grayscale;
|
|
9
|
+
text-rendering: optimizeLegibility;
|
|
10
|
+
-webkit-tap-highlight-color: transparent;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
:root {
|
|
@@ -38,6 +41,21 @@ html {
|
|
|
38
41
|
--border-hover-light: #a7b0bd;
|
|
39
42
|
--border-hover-dark: #5d6878;
|
|
40
43
|
|
|
44
|
+
/*********************** Motion tokens ***********************/
|
|
45
|
+
|
|
46
|
+
--uv-duration-instant: 90ms;
|
|
47
|
+
--uv-duration-fast: 150ms;
|
|
48
|
+
--uv-duration-base: 220ms;
|
|
49
|
+
--uv-duration-slow: 420ms;
|
|
50
|
+
|
|
51
|
+
/*********************** Elevation tokens ***********************/
|
|
52
|
+
|
|
53
|
+
--uv-shadow-sm: 0 1px 2px rgb(16 24 40 / 0.05);
|
|
54
|
+
--uv-shadow-md: 0 1px 2px rgb(16 24 40 / 0.04), 0 4px 12px -4px rgb(16 24 40 / 0.08);
|
|
55
|
+
--uv-shadow-lg: 0 2px 4px rgb(16 24 40 / 0.04), 0 12px 32px -8px rgb(16 24 40 / 0.16);
|
|
56
|
+
--uv-shadow-xl: 0 4px 8px rgb(16 24 40 / 0.04), 0 24px 64px -12px rgb(16 24 40 / 0.28);
|
|
57
|
+
--uv-shadow-glow: 0 0 0 1px color-mix(in oklab, var(--primary) 40%, transparent), 0 8px 24px -6px color-mix(in oklab, var(--primary) 45%, transparent);
|
|
58
|
+
|
|
41
59
|
/*********************** Shadcn UI variables ***********************/
|
|
42
60
|
|
|
43
61
|
--radius: 0.625rem;
|
|
@@ -48,15 +66,21 @@ html {
|
|
|
48
66
|
--popover: var(--bg-card-light);
|
|
49
67
|
--popover-foreground: var(--text-primary-light);
|
|
50
68
|
--primary: var(--button-primary-light);
|
|
69
|
+
--primary-hover: var(--button-primary-hover-light);
|
|
51
70
|
--primary-foreground: var(--button-primary-foreground-light);
|
|
52
71
|
--secondary: var(--button-secondary-light);
|
|
53
72
|
--secondary-foreground: var(--text-primary-light);
|
|
73
|
+
--surface: var(--bg-surface-light);
|
|
54
74
|
--muted: var(--bg-selected-light);
|
|
55
75
|
--muted-foreground: var(--text-secondary-light);
|
|
56
76
|
--accent: var(--bg-selected-light);
|
|
57
77
|
--accent-foreground: var(--text-primary-light);
|
|
58
78
|
--destructive: oklch(0.577 0.245 27.325);
|
|
79
|
+
--success: oklch(0.627 0.17 149.2);
|
|
80
|
+
--warning: oklch(0.705 0.17 62.5);
|
|
81
|
+
--info: oklch(0.588 0.19 256.8);
|
|
59
82
|
--border: var(--border-light);
|
|
83
|
+
--border-strong: var(--border-hover-light);
|
|
60
84
|
--input: var(--border-light);
|
|
61
85
|
--ring: var(--button-primary-light);
|
|
62
86
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
@@ -86,15 +110,21 @@ html {
|
|
|
86
110
|
--color-popover: var(--popover);
|
|
87
111
|
--color-popover-foreground: var(--popover-foreground);
|
|
88
112
|
--color-primary: var(--primary);
|
|
113
|
+
--color-primary-hover: var(--primary-hover);
|
|
89
114
|
--color-primary-foreground: var(--primary-foreground);
|
|
90
115
|
--color-secondary: var(--secondary);
|
|
91
116
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
117
|
+
--color-surface: var(--surface);
|
|
92
118
|
--color-muted: var(--muted);
|
|
93
119
|
--color-muted-foreground: var(--muted-foreground);
|
|
94
120
|
--color-accent: var(--accent);
|
|
95
121
|
--color-accent-foreground: var(--accent-foreground);
|
|
96
122
|
--color-destructive: var(--destructive);
|
|
123
|
+
--color-success: var(--success);
|
|
124
|
+
--color-warning: var(--warning);
|
|
125
|
+
--color-info: var(--info);
|
|
97
126
|
--color-border: var(--border);
|
|
127
|
+
--color-border-strong: var(--border-strong);
|
|
98
128
|
--color-input: var(--input);
|
|
99
129
|
--color-ring: var(--ring);
|
|
100
130
|
--color-chart-1: var(--chart-1);
|
|
@@ -110,6 +140,214 @@ html {
|
|
|
110
140
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
111
141
|
--color-sidebar-border: var(--sidebar-border);
|
|
112
142
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
143
|
+
|
|
144
|
+
/* Elevation utilities: shadow-elevated-sm, shadow-elevated-md, ... */
|
|
145
|
+
--shadow-elevated-sm: var(--uv-shadow-sm);
|
|
146
|
+
--shadow-elevated-md: var(--uv-shadow-md);
|
|
147
|
+
--shadow-elevated-lg: var(--uv-shadow-lg);
|
|
148
|
+
--shadow-elevated-xl: var(--uv-shadow-xl);
|
|
149
|
+
--shadow-glow: var(--uv-shadow-glow);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*********************** Motion system ***********************/
|
|
153
|
+
|
|
154
|
+
@theme {
|
|
155
|
+
/* Easing utilities: ease-spring, ease-bounce, ease-out-expo, ease-snappy */
|
|
156
|
+
--ease-spring: linear(0, 0.0074, 0.0292 1.6%, 0.1136 3.4%, 0.4254 8.4%, 0.5703 11%, 0.6922 13.7%, 0.7929 16.6%, 0.8729 19.8%, 0.9337 23.3%, 0.9764 27.2%, 1.0036 31.6%, 1.0173 36.7%, 1.0201 43.1%, 1.0083 57.6%, 1.0014 71.9%, 1);
|
|
157
|
+
--ease-bounce: linear(0, 0.0083, 0.0333 1.4%, 0.1352 2.9%, 0.5163 7.6%, 0.6949 10.1%, 0.8397 12.6%, 0.9546 15.3%, 1.0397 18.2%, 1.0985 21.3%, 1.1326 24.6%, 1.1437 28.2%, 1.1352 32.3%, 1.0873 40.1%, 1.0132 51%, 0.9897 58.6%, 0.9887 66.7%, 1.0009 86.8%, 1);
|
|
158
|
+
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
|
|
159
|
+
--ease-snappy: cubic-bezier(0.2, 0, 0, 1);
|
|
160
|
+
|
|
161
|
+
/* Animation utilities: animate-uv-* */
|
|
162
|
+
--animate-uv-shimmer: uv-shimmer 1.6s ease-in-out infinite;
|
|
163
|
+
--animate-uv-shake: uv-shake 0.42s var(--ease-snappy) both;
|
|
164
|
+
--animate-uv-float: uv-float 3.2s ease-in-out infinite;
|
|
165
|
+
--animate-uv-pop: uv-pop 0.42s var(--ease-bounce) both;
|
|
166
|
+
--animate-uv-fade-up: uv-fade-up 0.5s var(--ease-out-expo) both;
|
|
167
|
+
--animate-uv-ping-soft: uv-ping-soft 1.8s var(--ease-out-expo) infinite;
|
|
168
|
+
--animate-uv-indeterminate: uv-indeterminate 1.4s var(--ease-snappy) infinite;
|
|
169
|
+
--animate-uv-gradient: uv-gradient 6s ease infinite;
|
|
170
|
+
|
|
171
|
+
@keyframes uv-shimmer {
|
|
172
|
+
0% { transform: translateX(-100%); }
|
|
173
|
+
100% { transform: translateX(100%); }
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@keyframes uv-shake {
|
|
177
|
+
0%, 100% { transform: translateX(0); }
|
|
178
|
+
20% { transform: translateX(-5px); }
|
|
179
|
+
40% { transform: translateX(4px); }
|
|
180
|
+
60% { transform: translateX(-3px); }
|
|
181
|
+
80% { transform: translateX(2px); }
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@keyframes uv-float {
|
|
185
|
+
0%, 100% { transform: translateY(0); }
|
|
186
|
+
50% { transform: translateY(-6px); }
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@keyframes uv-pop {
|
|
190
|
+
0% { opacity: 0; transform: scale(0.4); }
|
|
191
|
+
100% { opacity: 1; transform: scale(1); }
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes uv-fade-up {
|
|
195
|
+
0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
|
|
196
|
+
100% { opacity: 1; transform: translateY(0); filter: blur(0); }
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@keyframes uv-ping-soft {
|
|
200
|
+
0% { transform: scale(1); opacity: 0.7; }
|
|
201
|
+
80%, 100% { transform: scale(2.4); opacity: 0; }
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@keyframes uv-indeterminate {
|
|
205
|
+
0% { transform: translateX(-100%) scaleX(0.4); }
|
|
206
|
+
50% { transform: translateX(40%) scaleX(0.6); }
|
|
207
|
+
100% { transform: translateX(120%) scaleX(0.4); }
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@keyframes uv-gradient {
|
|
211
|
+
0%, 100% { background-position: 0% 50%; }
|
|
212
|
+
50% { background-position: 100% 50%; }
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Floating surfaces (popover, select, dropdown, tooltip, hover card) scale from their anchor */
|
|
217
|
+
@keyframes uv-float-in {
|
|
218
|
+
from { opacity: 0; transform: scale(0.94) translateY(var(--uv-float-offset, 0)); filter: blur(3px); }
|
|
219
|
+
to { opacity: 1; transform: none; filter: blur(0); }
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@keyframes uv-float-out {
|
|
223
|
+
from { opacity: 1; transform: none; filter: blur(0); }
|
|
224
|
+
to { opacity: 0; transform: scale(0.96); filter: blur(2px); }
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Modal surfaces (dialog, alert dialog, command dialog) */
|
|
228
|
+
@keyframes uv-modal-in {
|
|
229
|
+
from { opacity: 0; transform: translateY(12px) scale(0.94); filter: blur(6px); }
|
|
230
|
+
to { opacity: 1; transform: none; filter: blur(0); }
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@keyframes uv-modal-out {
|
|
234
|
+
from { opacity: 1; transform: none; filter: blur(0); }
|
|
235
|
+
to { opacity: 0; transform: translateY(6px) scale(0.97); filter: blur(4px); }
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Backdrops */
|
|
239
|
+
@keyframes uv-overlay-in {
|
|
240
|
+
from { opacity: 0; backdrop-filter: blur(0); }
|
|
241
|
+
to { opacity: 1; }
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@keyframes uv-overlay-out {
|
|
245
|
+
from { opacity: 1; }
|
|
246
|
+
to { opacity: 0; backdrop-filter: blur(0); }
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Sheets */
|
|
250
|
+
@keyframes uv-sheet-in-right { from { transform: translateX(100%); } to { transform: none; } }
|
|
251
|
+
@keyframes uv-sheet-out-right { from { transform: none; } to { transform: translateX(100%); } }
|
|
252
|
+
@keyframes uv-sheet-in-left { from { transform: translateX(-100%); } to { transform: none; } }
|
|
253
|
+
@keyframes uv-sheet-out-left { from { transform: none; } to { transform: translateX(-100%); } }
|
|
254
|
+
@keyframes uv-sheet-in-top { from { transform: translateY(-100%); } to { transform: none; } }
|
|
255
|
+
@keyframes uv-sheet-out-top { from { transform: none; } to { transform: translateY(-100%); } }
|
|
256
|
+
@keyframes uv-sheet-in-bottom { from { transform: translateY(100%); } to { transform: none; } }
|
|
257
|
+
@keyframes uv-sheet-out-bottom { from { transform: none; } to { transform: translateY(100%); } }
|
|
258
|
+
|
|
259
|
+
/* Collapsible regions driven by reka CSS variables */
|
|
260
|
+
@keyframes uv-collapsible-down {
|
|
261
|
+
from { height: 0; opacity: 0; }
|
|
262
|
+
to { height: var(--reka-collapsible-content-height); opacity: 1; }
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@keyframes uv-collapsible-up {
|
|
266
|
+
from { height: var(--reka-collapsible-content-height); opacity: 1; }
|
|
267
|
+
to { height: 0; opacity: 0; }
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@utility uv-floating-motion {
|
|
271
|
+
transform-origin: var(--reka-popover-content-transform-origin, var(--reka-select-content-transform-origin, var(--reka-dropdown-menu-content-transform-origin, var(--reka-tooltip-content-transform-origin, var(--reka-hover-card-content-transform-origin, var(--reka-combobox-content-transform-origin, center))))));
|
|
272
|
+
will-change: transform, opacity;
|
|
273
|
+
|
|
274
|
+
&[data-side="bottom"] { --uv-float-offset: -6px; }
|
|
275
|
+
&[data-side="top"] { --uv-float-offset: 6px; }
|
|
276
|
+
|
|
277
|
+
&[data-state="open"],
|
|
278
|
+
&[data-state="delayed-open"],
|
|
279
|
+
&[data-state="instant-open"] {
|
|
280
|
+
animation: uv-float-in var(--uv-duration-base) var(--ease-spring) both;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&[data-state="closed"] {
|
|
284
|
+
animation: uv-float-out var(--uv-duration-fast) var(--ease-snappy) both;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@utility uv-modal-motion {
|
|
289
|
+
&[data-state="open"] {
|
|
290
|
+
animation: uv-modal-in var(--uv-duration-slow) var(--ease-spring) both;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&[data-state="closed"] {
|
|
294
|
+
animation: uv-modal-out var(--uv-duration-fast) var(--ease-snappy) both;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility uv-overlay-motion {
|
|
299
|
+
&[data-state="open"] {
|
|
300
|
+
animation: uv-overlay-in var(--uv-duration-base) var(--ease-out-expo) both;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&[data-state="closed"] {
|
|
304
|
+
animation: uv-overlay-out var(--uv-duration-base) var(--ease-snappy) both;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@utility uv-collapsible-motion {
|
|
309
|
+
overflow: hidden;
|
|
310
|
+
|
|
311
|
+
&[data-state="open"] {
|
|
312
|
+
animation: uv-collapsible-down var(--uv-duration-base) var(--ease-out-expo);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&[data-state="closed"] {
|
|
316
|
+
animation: uv-collapsible-up var(--uv-duration-fast) var(--ease-snappy);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Shared focus ring used by interactive primitives */
|
|
321
|
+
@utility uv-focus-ring {
|
|
322
|
+
outline: none;
|
|
323
|
+
|
|
324
|
+
&:focus-visible {
|
|
325
|
+
box-shadow: 0 0 0 1px var(--background), 0 0 0 3px color-mix(in oklab, var(--ring) 55%, transparent);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Shared interactive states for inputs, textareas, and field-like triggers (base colors stay in utility classes) */
|
|
330
|
+
@utility uv-field {
|
|
331
|
+
transition-property: border-color, box-shadow, background-color, color, opacity;
|
|
332
|
+
transition-duration: var(--uv-duration-fast);
|
|
333
|
+
transition-timing-function: var(--ease-snappy);
|
|
334
|
+
|
|
335
|
+
&:hover:not(:disabled):not([data-disabled]) {
|
|
336
|
+
border-color: var(--border-strong);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&:focus-visible,
|
|
340
|
+
&:focus-within:not(:has(button:focus-visible)),
|
|
341
|
+
&[data-state="open"] {
|
|
342
|
+
outline: none;
|
|
343
|
+
border-color: color-mix(in oklab, var(--primary) 75%, var(--border));
|
|
344
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 16%, transparent);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&[aria-invalid="true"] {
|
|
348
|
+
border-color: var(--destructive);
|
|
349
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 14%, transparent);
|
|
350
|
+
}
|
|
113
351
|
}
|
|
114
352
|
|
|
115
353
|
.dark {
|
|
@@ -120,15 +358,21 @@ html {
|
|
|
120
358
|
--popover: var(--bg-card-dark);
|
|
121
359
|
--popover-foreground: var(--text-primary-dark);
|
|
122
360
|
--primary: var(--button-primary-dark);
|
|
361
|
+
--primary-hover: var(--button-primary-hover-dark);
|
|
123
362
|
--primary-foreground: var(--button-primary-foreground-dark);
|
|
124
363
|
--secondary: var(--button-secondary-dark);
|
|
125
364
|
--secondary-foreground: var(--text-primary-dark);
|
|
365
|
+
--surface: var(--bg-surface-dark);
|
|
126
366
|
--muted: var(--bg-selected-dark);
|
|
127
367
|
--muted-foreground: var(--text-secondary-dark);
|
|
128
368
|
--accent: var(--bg-selected-dark);
|
|
129
369
|
--accent-foreground: var(--text-primary-dark);
|
|
130
370
|
--destructive: oklch(0.704 0.191 22.216);
|
|
371
|
+
--success: oklch(0.723 0.19 149.6);
|
|
372
|
+
--warning: oklch(0.795 0.16 70.1);
|
|
373
|
+
--info: oklch(0.707 0.165 254.6);
|
|
131
374
|
--border: var(--border-dark);
|
|
375
|
+
--border-strong: var(--border-hover-dark);
|
|
132
376
|
--input: var(--border-dark);
|
|
133
377
|
--ring: var(--button-primary-dark);
|
|
134
378
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
@@ -144,6 +388,11 @@ html {
|
|
|
144
388
|
--sidebar-accent-foreground: var(--text-primary-dark);
|
|
145
389
|
--sidebar-border: var(--border-dark);
|
|
146
390
|
--sidebar-ring: var(--button-primary-dark);
|
|
391
|
+
|
|
392
|
+
--uv-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
|
|
393
|
+
--uv-shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px -4px rgb(0 0 0 / 0.4);
|
|
394
|
+
--uv-shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.55);
|
|
395
|
+
--uv-shadow-xl: 0 4px 8px rgb(0 0 0 / 0.3), 0 24px 64px -12px rgb(0 0 0 / 0.7);
|
|
147
396
|
}
|
|
148
397
|
|
|
149
398
|
@layer base {
|
|
@@ -154,6 +403,10 @@ html {
|
|
|
154
403
|
body {
|
|
155
404
|
@apply bg-background text-foreground;
|
|
156
405
|
}
|
|
406
|
+
|
|
407
|
+
::selection {
|
|
408
|
+
background-color: color-mix(in oklab, var(--primary) 30%, transparent);
|
|
409
|
+
}
|
|
157
410
|
}
|
|
158
411
|
|
|
159
412
|
body {
|
|
@@ -168,14 +421,18 @@ body {
|
|
|
168
421
|
|
|
169
422
|
/*********************** Page transition animations ***********************/
|
|
170
423
|
|
|
171
|
-
.page-enter-active
|
|
424
|
+
.page-enter-active {
|
|
425
|
+
transition: opacity 0.32s var(--ease-out-expo), transform 0.42s var(--ease-spring), filter 0.32s var(--ease-out-expo);
|
|
426
|
+
}
|
|
427
|
+
|
|
172
428
|
.page-leave-active {
|
|
173
|
-
transition: opacity 0.
|
|
429
|
+
transition: opacity 0.12s var(--ease-snappy), transform 0.12s var(--ease-snappy), filter 0.12s var(--ease-snappy);
|
|
174
430
|
}
|
|
175
431
|
|
|
176
432
|
.page-enter-from {
|
|
177
433
|
opacity: 0;
|
|
178
|
-
transform: translateY(
|
|
434
|
+
transform: translateY(10px);
|
|
435
|
+
filter: blur(4px);
|
|
179
436
|
}
|
|
180
437
|
|
|
181
438
|
.page-leave-to {
|
|
@@ -183,6 +440,33 @@ body {
|
|
|
183
440
|
transform: translateY(-4px);
|
|
184
441
|
}
|
|
185
442
|
|
|
443
|
+
/*********************** Theme switch (View Transitions API) ***********************/
|
|
444
|
+
|
|
445
|
+
::view-transition-old(root),
|
|
446
|
+
::view-transition-new(root) {
|
|
447
|
+
animation: none;
|
|
448
|
+
mix-blend-mode: normal;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.uv-theme-switching,
|
|
452
|
+
.uv-theme-switching *,
|
|
453
|
+
.uv-theme-switching *::before,
|
|
454
|
+
.uv-theme-switching *::after {
|
|
455
|
+
transition: none !important;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/*********************** Reduced motion ***********************/
|
|
459
|
+
|
|
460
|
+
@media (prefers-reduced-motion: reduce) {
|
|
461
|
+
*,
|
|
462
|
+
*::before,
|
|
463
|
+
*::after {
|
|
464
|
+
animation-duration: 0.01ms !important;
|
|
465
|
+
animation-iteration-count: 1 !important;
|
|
466
|
+
transition-duration: 0.01ms !important;
|
|
467
|
+
scroll-behavior: auto !important;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
186
470
|
|
|
187
471
|
/*********************** Custom scrollbar ***********************/
|
|
188
472
|
|
|
@@ -198,7 +482,7 @@ body {
|
|
|
198
482
|
|
|
199
483
|
::-webkit-scrollbar-thumb {
|
|
200
484
|
background-color: var(--border-light);
|
|
201
|
-
border-radius:
|
|
485
|
+
border-radius: 999px;
|
|
202
486
|
}
|
|
203
487
|
|
|
204
488
|
::-webkit-scrollbar-thumb:hover {
|