From 748bb1720fd81e97a84c3e92f89d606e976b52e3 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 28 May 2025 00:18:16 +0000 Subject: (대표님) 컴포넌트 파트 커밋 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ui/alert.tsx | 3 +++ components/ui/badge.tsx | 2 ++ 2 files changed, 5 insertions(+) (limited to 'components/ui') diff --git a/components/ui/alert.tsx b/components/ui/alert.tsx index 5afd41d1..e3292bb0 100644 --- a/components/ui/alert.tsx +++ b/components/ui/alert.tsx @@ -11,6 +11,9 @@ const alertVariants = cva( default: "bg-background text-foreground", destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + // success 추가 + success: + "border-green-500/30 bg-green-50 text-green-700 [&>svg]:text-green-600", }, }, defaultVariants: { diff --git a/components/ui/badge.tsx b/components/ui/badge.tsx index e87d62bf..ddf9c287 100644 --- a/components/ui/badge.tsx +++ b/components/ui/badge.tsx @@ -15,6 +15,8 @@ const badgeVariants = cva( destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80", outline: "text-foreground", + success: + "border-transparent bg-green-500 text-white shadow hover:bg-green-600", }, }, defaultVariants: { -- cgit v1.2.3