diff --git a/components/PerformanceAnalysis.tsx b/components/PerformanceAnalysis.tsx index 00393ef..a850245 100644 --- a/components/PerformanceAnalysis.tsx +++ b/components/PerformanceAnalysis.tsx @@ -27,9 +27,18 @@ function CalendarDay({ day, value, type }: CalendarDayProps) { const dayTextStyle = isCurrent ? "text-[#fcfcfd]" : "text-[#9ca1af] dark:text-gray-400"; - const valueTextStyle = isCurrent - ? "text-[#fcfcfd]" - : "text-[#111827] dark:text-white"; + + // Value text color should match the type + let valueTextStyle = ""; + if (isCurrent) { + valueTextStyle = "text-[#fcfcfd]"; + } else if (type === "positive") { + valueTextStyle = "text-[#10b981] dark:text-green-400"; + } else if (type === "negative") { + valueTextStyle = "text-[#dc2626] dark:text-red-400"; + } else { + valueTextStyle = "text-[#9ca1af] dark:text-gray-400"; + } return (