From b9efedbb88aa25aa5cde73ea96379c1e696a6965 Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Thu, 11 Dec 2025 14:13:10 +0100 Subject: [PATCH] style: add chameleon gradient transitions with via colors for smooth color blending --- apps/admin/src/components/ui/StatsCard.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/admin/src/components/ui/StatsCard.tsx b/apps/admin/src/components/ui/StatsCard.tsx index a2081a9..272aa55 100644 --- a/apps/admin/src/components/ui/StatsCard.tsx +++ b/apps/admin/src/components/ui/StatsCard.tsx @@ -13,28 +13,28 @@ interface StatsCardProps { export function StatsCard({ title, value, change, trend, icon: Icon, color = "blue" }: StatsCardProps) { const colorStyles = { blue: { - bg: "from-blue-600 to-cyan-600", + bg: "from-blue-600 via-cyan-500 to-teal-500", text: "text-white", light: "from-blue-50 to-cyan-50", badge: "bg-blue-100 text-blue-700", icon: "bg-blue-100/50 text-blue-600", }, green: { - bg: "from-emerald-600 to-teal-600", + bg: "from-emerald-600 via-teal-500 to-cyan-500", text: "text-white", light: "from-emerald-50 to-teal-50", badge: "bg-emerald-100 text-emerald-700", icon: "bg-emerald-100/50 text-emerald-600", }, purple: { - bg: "from-purple-600 to-blue-600", + bg: "from-purple-600 via-pink-500 to-blue-500", text: "text-white", light: "from-purple-50 to-blue-50", badge: "bg-purple-100 text-purple-700", icon: "bg-purple-100/50 text-purple-600", }, orange: { - bg: "from-orange-600 to-red-600", + bg: "from-orange-600 via-red-500 to-pink-500", text: "text-white", light: "from-orange-50 to-red-50", badge: "bg-orange-100 text-orange-700", @@ -46,22 +46,22 @@ export function StatsCard({ title, value, change, trend, icon: Icon, color = "bl return ( - + {title} -
- +
+
- -
+ +
{value}
{change && ( -
+
{trend === "up" ? "↑" : trend === "down" ? "↓" : "→"} {change}