From 966bcb084d340487b5e116a0329e5e434925e425 Mon Sep 17 00:00:00 2001 From: Aleksandar Date: Thu, 11 Dec 2025 14:01:32 +0100 Subject: [PATCH] style: implement dark gradient metric cards with high contrast white text and colored labels --- .../src/components/PerformanceMetrics.tsx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/apps/mobile/src/components/PerformanceMetrics.tsx b/apps/mobile/src/components/PerformanceMetrics.tsx index b21b053..3d410e8 100644 --- a/apps/mobile/src/components/PerformanceMetrics.tsx +++ b/apps/mobile/src/components/PerformanceMetrics.tsx @@ -16,31 +16,35 @@ interface MetricProps { const getColorScheme = (colorScheme: 'blue' | 'green' | 'purple' | 'orange') => { const schemes = { blue: { - colors: ['#3b82f6', '#06b6d4'], + colors: ['#1e3a8a', '#0c4a6e'], text: '#ffffff', - badge: '#dbeafe', - badgeText: '#1e40af', + label: '#93c5fd', + badge: '#3b82f6', + badgeText: '#ffffff', icon: '#60a5fa', }, green: { - colors: ['#10b981', '#14b8a6'], + colors: ['#064e3b', '#047857'], text: '#ffffff', - badge: '#dcfce7', - badgeText: '#047857', + label: '#86efac', + badge: '#10b981', + badgeText: '#ffffff', icon: '#34d399', }, purple: { - colors: ['#a855f7', '#3b82f6'], + colors: ['#581c87', '#7c3aed'], text: '#ffffff', - badge: '#e9d5ff', - badgeText: '#6b21a8', + label: '#d8b4fe', + badge: '#a855f7', + badgeText: '#ffffff', icon: '#c084fc', }, orange: { - colors: ['#f97316', '#ef4444'], + colors: ['#92400e', '#b45309'], text: '#ffffff', - badge: '#fed7aa', - badgeText: '#92400e', + label: '#fcd34d', + badge: '#f97316', + badgeText: '#ffffff', icon: '#fb923c', }, }; @@ -61,7 +65,7 @@ const MetricCard: React.FC = ({ title, value, change, trend, icon, > - {title} + {title}