From ad8841a140aeead3decb6fd839de8b690d7ab273 Mon Sep 17 00:00:00 2001 From: yusstyle Date: Fri, 27 Mar 2026 16:41:46 -0700 Subject: [PATCH] feat: implement dark mode support for all data visualizations - Enable Tailwind dark mode with 'class' strategy - Add light mode CSS variables and dark mode overrides in globals.css - Replace hardcoded gray colors with CSS variable design tokens - Update PortfolioChart component to support theme switching - Update UI components (Card, Button, Badge, Input) for theme support - Update layout components (Header, FeaturedProjects) for consistency - Ensures all charts, tooltips, and grids render legibly in both modes Fixes #119 --- frontend/src/components/FeaturedProjects.tsx | 4 +- frontend/src/components/LoadingDashboard.tsx | 44 ++++++++++---------- frontend/src/components/PortfolioChart.tsx | 2 +- frontend/src/components/layout/Header.tsx | 22 +++++----- frontend/src/components/ui/Badge.tsx | 2 +- frontend/src/components/ui/Button.tsx | 2 +- frontend/src/components/ui/Card.tsx | 2 +- frontend/src/components/ui/Input.tsx | 2 +- frontend/src/styles/globals.css | 20 +++++++++ frontend/tailwind.config.ts | 1 + 10 files changed, 61 insertions(+), 40 deletions(-) diff --git a/frontend/src/components/FeaturedProjects.tsx b/frontend/src/components/FeaturedProjects.tsx index e83b798..59a41d9 100644 --- a/frontend/src/components/FeaturedProjects.tsx +++ b/frontend/src/components/FeaturedProjects.tsx @@ -93,7 +93,7 @@ export const FeaturedProjects: React.FC = () => { Featured Projects
-

+

Discover groundbreaking projects that are reshaping industries and creating positive impact around the world.

@@ -143,7 +143,7 @@ export const FeaturedProjects: React.FC = () => {

Ready to invest in innovation?

-

+

Join thousands of community members funding the future. Start with as little as $1 and become part of the investment revolution.

diff --git a/frontend/src/components/LoadingDashboard.tsx b/frontend/src/components/LoadingDashboard.tsx index 7bc3159..02646b3 100644 --- a/frontend/src/components/LoadingDashboard.tsx +++ b/frontend/src/components/LoadingDashboard.tsx @@ -9,23 +9,23 @@ const LoadingDashboard: React.FC = () => { {/* Header */}
-
-
+
+
-
+
{/* Stats Cards */}
{[...Array(4)].map((_, i) => ( -
+
-
-
-
+
+
+
-
+
))} @@ -35,19 +35,19 @@ const LoadingDashboard: React.FC = () => {
{/* Investment Table */}
-
-
-
-
+
+
+
+
{[...Array(4)].map((_, i) => (
-
-
-
-
-
+
+
+
+
+
))}
@@ -56,14 +56,14 @@ const LoadingDashboard: React.FC = () => { {/* Chart */}
-
-
+
+
{[...Array(4)].map((_, i) => (
-
-
-
+
+
+
))}
diff --git a/frontend/src/components/PortfolioChart.tsx b/frontend/src/components/PortfolioChart.tsx index d999e8a..789e1af 100644 --- a/frontend/src/components/PortfolioChart.tsx +++ b/frontend/src/components/PortfolioChart.tsx @@ -47,7 +47,7 @@ const PortfolioChart: React.FC = ({ investments }) => { {item.projectName}
-
+
{ }, []); return ( -
+