Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/web/src/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const buttonVariants = cva(
variants: {
variant: {
default:
"bg-linear-to-b from-primary to-[hsl(223_82%_62%)] text-primary-foreground shadow-[0_18px_45px_-20px_hsl(var(--primary)/0.85)] hover:brightness-110 hover:shadow-[0_22px_55px_-22px_hsl(var(--primary)/0.95)]",
"bg-linear-to-b from-primary to-[hsl(223_82%_62%)] text-primary-foreground shadow-[0_18px_45px_-20px_color-mix(in_srgb,var(--primary)_85%,transparent)] hover:brightness-110 hover:shadow-[0_22px_55px_-22px_color-mix(in_srgb,var(--primary)_95%,transparent)]",
destructive:
"bg-linear-to-b from-destructive to-[hsl(352_72%_52%)] text-destructive-foreground shadow-[0_18px_45px_-20px_hsl(var(--destructive)/0.7)] hover:brightness-105 hover:shadow-[0_22px_55px_-22px_hsl(var(--destructive)/0.8)]",
"bg-linear-to-b from-destructive to-[hsl(352_72%_52%)] text-destructive-foreground shadow-[0_18px_45px_-20px_color-mix(in_srgb,var(--destructive)_70%,transparent)] hover:brightness-105 hover:shadow-[0_22px_55px_-22px_color-mix(in_srgb,var(--destructive)_80%,transparent)]",
"destructive-outline":
"border border-destructive/35 bg-destructive/6 text-destructive shadow-[inset_0_1px_0_hsl(0_0%_100%/0.04)] hover:border-destructive/45 hover:bg-destructive/10 hover:text-destructive",
outline:
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ const sidebarMenuButtonVariants = cva(
variant: {
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
outline:
"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
"bg-background shadow-[0_0_0_1px_var(--color-sidebar-border,var(--border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--color-sidebar-accent,var(--accent))]",
},
},
},
Expand Down
47 changes: 40 additions & 7 deletions apps/web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -477,18 +477,17 @@ label:has(> select#reasoning-effort) select {
body {
background:
radial-gradient(circle at top, hsl(217 96% 71% / 0.08), transparent 28%),
radial-gradient(circle at 80% 0%, hsl(228 88% 68% / 0.06), transparent 24%),
hsl(var(--background));
radial-gradient(circle at 80% 0%, hsl(228 88% 68% / 0.06), transparent 24%), var(--background);
background-attachment: fixed;
}

::selection {
background: hsl(var(--primary) / 0.55);
color: hsl(var(--foreground));
background: color-mix(in srgb, var(--primary) 55%, transparent);
color: var(--foreground);
}

* {
scrollbar-color: hsl(var(--primary) / 0.42) transparent;
scrollbar-color: color-mix(in srgb, var(--primary) 42%, transparent) transparent;
}

*::-webkit-scrollbar {
Expand All @@ -502,14 +501,48 @@ label:has(> select#reasoning-effort) select {

*::-webkit-scrollbar-thumb {
border-radius: 999px;
background: hsl(var(--primary) / 0.25);
background: color-mix(in srgb, var(--primary) 25%, transparent);
border: 2px solid transparent;
background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
background: hsl(var(--primary) / 0.38);
background: color-mix(in srgb, var(--primary) 38%, transparent);
border: 2px solid transparent;
background-clip: padding-box;
}
}

/* ─── Accessibility ─── */

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

@media (forced-colors: active) {
::selection {
background: Highlight;
color: HighlightText;
}

*::-webkit-scrollbar-thumb {
background: ButtonText;
}

*::-webkit-scrollbar-track {
background: Canvas;
}
}

@media (prefers-contrast: more) {
::selection {
background: color-mix(in srgb, var(--primary) 88%, transparent);
}
}
Loading
Loading