diff --git a/apps/extension/src/ui/clip-feedback.tsx b/apps/extension/src/ui/clip-feedback.tsx index cd039f3d..656150d5 100644 --- a/apps/extension/src/ui/clip-feedback.tsx +++ b/apps/extension/src/ui/clip-feedback.tsx @@ -26,11 +26,11 @@ if (payload?.action === "toast") { shadow.append(style, mount); (document.documentElement ?? document.body).appendChild(host); const root = createRoot(mount); - flushSync(() => root.render()); + flushSync(() => root.render()); service = { host, show(message, kind) { - const options = { id: "edgeever-clip", duration: kind === "error" ? 8000 : 4000, style: { background: kind === "error" ? "#b91c1c" : "#171717", color: "#fff", border: "1px solid #404040", pointerEvents: "auto" as const } }; + const options = { id: "edgeever-clip", duration: kind === "error" ? 8000 : 4000, style: { background: kind === "error" ? "#fff1f2" : "#fff", color: kind === "error" ? "#be123c" : "#334155", border: kind === "error" ? "1px solid #ffe4e6" : "1px solid #e2e8f0", pointerEvents: "auto" as const } }; if (kind === "error") toast.error(message, options); else if (kind === "success") toast.success(message, options); else toast(message, options); diff --git a/apps/extension/src/ui/primitives.tsx b/apps/extension/src/ui/primitives.tsx index 69c576aa..b7b8c8e3 100644 --- a/apps/extension/src/ui/primitives.tsx +++ b/apps/extension/src/ui/primitives.tsx @@ -3,8 +3,11 @@ import { CheckCircle2, LoaderCircle, CircleAlert } from "lucide-react"; import { Button as SharedButton } from "../../../web/src/components/ui/button"; export { Input } from "../../../web/src/components/ui/input"; -export function Button({ variant = "solid", className = "", ...props }: ComponentProps) { - return ; +export function Button({ variant = "soft", className = "", ...props }: ComponentProps) { + const styles = variant === "soft" || variant === "solid" + ? "border border-slate-200 bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900" + : "border-slate-200 text-slate-600 hover:bg-slate-50 hover:text-slate-900"; + return ; } export type Feedback = { message: string; kind?: "normal" | "success" | "error" }; diff --git a/apps/extension/src/ui/theme.css b/apps/extension/src/ui/theme.css index 67ae7a69..6d4dd125 100644 --- a/apps/extension/src/ui/theme.css +++ b/apps/extension/src/ui/theme.css @@ -6,14 +6,14 @@ @source "../../../web/src/components/ui/tooltip.tsx"; @theme inline { - --color-background: #fafafa; - --color-foreground: #171717; + --color-background: #f5f5f5; + --color-foreground: #212121; --color-card: #fff; --color-primary: #171717; --color-primary-foreground: #fff; --color-muted: #f5f5f5; - --color-muted-foreground: #737373; - --color-border: #e5e5e5; + --color-muted-foreground: #666666; + --color-border: #e0e0e0; --color-ring: #262626; }