Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
style: add --warning color variable
Marc Seitzdbd67a6ea6f5
diff --git a/components/ui/alert.tsx b/components/ui/alert.tsxindex 8f471e7d..ed52479f 100644--- a/components/ui/alert.tsx+++ b/components/ui/alert.tsx@@ -5,8 +5,6 @@ import { X } from "lucide-react";import { cn } from "@/lib/utils";-import { Button } from "./button";-const alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{@@ -15,6 +13,8 @@ const alertVariants = cva(default: "bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",+ warning:+ "border-warning/50 text-warning dark:border-warning [&>svg]:text-warning",},},defaultVariants: {diff --git a/styles/globals.css b/styles/globals.cssindex ce105eea..2478003c 100644--- a/styles/globals.css+++ b/styles/globals.css@@ -31,6 +31,9 @@--destructive: 0 84.2% 60.2%; /* red-500 */--destructive-foreground: 210 20% 98%; /* gray-50 */+ --warning: 38 92% 50%; /* amber-500 */+ --warning-foreground: 210 20% 98%; /* gray-50 */+--ring: 217.9 10.6% 64.9%; /* gray-400 */--radius: 0.5rem; /* md */@@ -64,6 +67,9 @@--destructive: 0 62.8% 30.6%; /* red-900 */--destructive-foreground: 0 85.7% 97.3%; /* red-50 */+ --warning: 38 92% 30%; /* amber-800 */+ --warning-foreground: 38 92% 95%; /* amber-50 */+--ring: 215 27.9% 16.9%; /* gray-800 */}}diff --git a/tailwind.config.js b/tailwind.config.jsindex f9f410ca..2b3af614 100644--- a/tailwind.config.js+++ b/tailwind.config.js@@ -35,6 +35,10 @@ module.exports = {DEFAULT: "hsl(var(--destructive))",foreground: "hsl(var(--destructive-foreground))",},+ warning: {+ DEFAULT: "hsl(var(--warning))",+ foreground: "hsl(var(--warning-foreground))",+ },muted: {DEFAULT: "hsl(var(--muted))",foreground: "hsl(var(--muted-foreground))",