Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: one red shade for every red button in light and dark (#15085)

Michael Han09c38c8a7d05
diff --git a/studio/frontend/src/components/ui/button.tsx b/studio/frontend/src/components/ui/button.tsx
index 5120efb16f6..0f444bb11c6 100644
--- a/studio/frontend/src/components/ui/button.tsx
+++ b/studio/frontend/src/components/ui/button.tsx
@@ -30,8 +30,10 @@ export const buttonVariants = cva(
// Neutral grey at rest, unlike `secondary`, whose token carries a hue in some
// themes. The quiet half of a pair of full-window screen actions.
muted: "bg-muted text-foreground hover:bg-muted/80",
+ // Rebinds --destructive on the button itself, so callers' own text-/bg-destructive
+ // classes land on the same shade.
destructive:
- "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
+ "[--destructive:var(--destructive-button)] bg-destructive/10 hover:bg-destructive/15 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive focus-visible:border-destructive/40",
link: "text-foreground underline-offset-4 hover:underline",
},
size: {
diff --git a/studio/frontend/src/features/library/chats/chats-library.tsx b/studio/frontend/src/features/library/chats/chats-library.tsx
index 07eaaa47a67..23b1ee9ec2b 100644
--- a/studio/frontend/src/features/library/chats/chats-library.tsx
+++ b/studio/frontend/src/features/library/chats/chats-library.tsx
@@ -1590,7 +1590,7 @@ export function ChatsLibrary({
onClick={() => actions.remove(selectedChats)}
className={cn(
BAR_PILL,
- "bg-red-500/10 text-red-600 transition-colors hover:bg-red-500/15 dark:text-red-400",
+ "bg-destructive/10 text-destructive transition-colors hover:bg-destructive/15",
)}
>
<HugeiconsIcon icon={Delete02Icon} strokeWidth={1.75} className="size-4" />
diff --git a/studio/frontend/src/features/library/library-page.tsx b/studio/frontend/src/features/library/library-page.tsx
index 1eaf40bc1c1..e3614886ca5 100644
--- a/studio/frontend/src/features/library/library-page.tsx
+++ b/studio/frontend/src/features/library/library-page.tsx
@@ -1127,7 +1127,7 @@ function LibraryView({ search }: { search: LibrarySearch }) {
onClick={() => requestDelete(deletableSelection())}
className={cn(
BAR_PILL,
- "bg-red-500/10 text-red-600 transition-colors hover:bg-red-500/15 dark:text-red-400",
+ "bg-destructive/10 text-destructive transition-colors hover:bg-destructive/15",
)}
>
<HugeiconsIcon icon={Delete02Icon} strokeWidth={1.75} className="size-4" />
diff --git a/studio/frontend/src/features/model-picker/components/model-config-page.tsx b/studio/frontend/src/features/model-picker/components/model-config-page.tsx
index 4307725f7ef..0d4d154ad81 100644
--- a/studio/frontend/src/features/model-picker/components/model-config-page.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-config-page.tsx
@@ -4292,7 +4292,6 @@ export function ModelConfigPage({
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
variant="destructive"
- className="!bg-destructive !text-destructive-foreground hover:!bg-destructive/90"
onClick={() => {
update({ mlxInt8Prefill: true });
setInt8PrefillConfirmOpen(false);
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 49c1b10edd9..7688d77539f 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -193,6 +193,11 @@
font-family: var(--font-heading) !important;
font-weight: 500 !important;
}
+ /* Every red button, hand-rolled ones included, takes the button shade of red. */
+ button,
+ [role="button"] {
+ --destructive: var(--destructive-button);
+ }
}
@@ -281,6 +286,8 @@
--accent-base: #ececec;
--accent-foreground-base: #262626;
--destructive: oklch(0.6368 0.2078 25.3313);
+ /* Red buttons: this as text, at 10% as the fill. */
+ --destructive-button: #ce4035;
/* Bypass permissions accent: bright, saturated yellow (not dark gold). */
--bypass: #c99d00;
--border-base: oklch(0.9208 0 0);
@@ -512,6 +519,7 @@
--accent-base: #3a3a3a;
--accent-foreground-base: #fcfcfc;
--destructive: oklch(0.6368 0.2078 25.3313);
+ --destructive-button: #ed716a;
/* Bypass permissions accent: bright, saturated neon yellow on dark. */
--bypass: #ffd60a;
/* --border / --input one step lighter than --muted so outlines and form