From 572d687919f7fe741cf94674b8bd2694860ea088 Mon Sep 17 00:00:00 2001 From: aswin Date: Mon, 29 Jun 2026 13:33:08 +0530 Subject: [PATCH] Restyle toasts as a solid dark pill, top-center The light bordered card pinned bottom-right read like a Windows notification. Swap it for a solid near-black pill (bg-ink) with light text, rounded-full, anchored top-center; drop the per-type tint/border map and recolor the status icons for the dark surface (sage tick / red-400 cross). Flip the toast-in keyframe to drop in from above to suit the top anchor. Behavior unchanged (types, TTLs, stacking, role=status, portal). Co-Authored-By: Claude Opus 4.8 --- frontend/src/components/Toast.jsx | 11 +++-------- frontend/tailwind.config.js | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/Toast.jsx b/frontend/src/components/Toast.jsx index feef9e9..4826dca 100644 --- a/frontend/src/components/Toast.jsx +++ b/frontend/src/components/Toast.jsx @@ -6,12 +6,7 @@ import { createPortal } from "react-dom"; const ToastCtx = createContext(() => {}); export const useToast = () => useContext(ToastCtx); -const STYLE = { - success: "border-sage/30 bg-sage/10", - error: "border-red-500/30 bg-red-500/10", - info: "border-ink/15 bg-paper", -}; -const ICON_COLOR = { success: "text-sage", error: "text-red-500", info: "text-muted" }; +const ICON_COLOR = { success: "text-sage", error: "text-red-400", info: "text-paper/70" }; const ICON_PATH = { success: "M20 6 9 17l-5-5", error: "M18 6 6 18M6 6l12 12", @@ -39,12 +34,12 @@ export function ToastProvider({ children }) { {children} {createPortal( -
+
{toasts.map((t) => (