From 8eaac91fd6a634d2022128580debf67620c2ffdb Mon Sep 17 00:00:00 2001 From: Developing-Gamer Date: Wed, 27 May 2026 12:31:14 -0700 Subject: [PATCH] Align dashboard button dialog primitives. Co-authored-by: Cursor --- apps/dashboard/src/components/ui/alert.tsx | 2 +- apps/dashboard/src/components/ui/button.tsx | 6 +++--- apps/dashboard/src/components/ui/dialog.tsx | 9 +++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/src/components/ui/alert.tsx b/apps/dashboard/src/components/ui/alert.tsx index 38a2fa159..4e2157482 100644 --- a/apps/dashboard/src/components/ui/alert.tsx +++ b/apps/dashboard/src/components/ui/alert.tsx @@ -9,7 +9,7 @@ const alertVariants = cva( { variants: { variant: { - default: "bg-background text-foreground", + default: "border-black/[0.08] bg-white/90 text-foreground shadow-sm ring-1 ring-black/[0.06] dark:border-border dark:bg-background dark:shadow-none dark:ring-0", destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive bg-destructive/5", success: "border-success/50 text-success dark:border-success [&>svg]:text-success bg-success/5", }, diff --git a/apps/dashboard/src/components/ui/button.tsx b/apps/dashboard/src/components/ui/button.tsx index ada6116a3..80df36d8a 100644 --- a/apps/dashboard/src/components/ui/button.tsx +++ b/apps/dashboard/src/components/ui/button.tsx @@ -18,10 +18,10 @@ const buttonVariants = cva( destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", outline: - "border border-input bg-white/85 dark:bg-background hover:bg-white dark:hover:bg-accent hover:text-accent-foreground", + "border border-input bg-white/85 dark:bg-background hover:bg-zinc-50 dark:hover:bg-accent dark:hover:text-accent-foreground", secondary: - "bg-secondary text-secondary-foreground hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", + "bg-white dark:bg-secondary text-secondary-foreground hover:bg-zinc-50 dark:hover:bg-secondary/80", + ghost: "hover:bg-zinc-100 dark:hover:bg-accent dark:hover:text-accent-foreground", link: "text-primary underline-offset-4 hover:underline", plain: "", }, diff --git a/apps/dashboard/src/components/ui/dialog.tsx b/apps/dashboard/src/components/ui/dialog.tsx index 8ce902cd1..01c94fa8f 100644 --- a/apps/dashboard/src/components/ui/dialog.tsx +++ b/apps/dashboard/src/components/ui/dialog.tsx @@ -6,6 +6,10 @@ import { forwardRefIfNeeded } from "@stackframe/stack-shared/dist/utils/react"; import React from "react"; import { cn } from "@/lib/utils"; +import { + designDialogGlassmorphicOverlayClass, + designDialogGlassmorphicSurfaceClass, +} from "@stackframe/dashboard-ui-components"; const Dialog = DialogPrimitive.Root; @@ -22,7 +26,7 @@ const DialogOverlay = forwardRefIfNeeded<