From ee6be5c959fe243f53d8465b2a3e5cb667aaf8fe Mon Sep 17 00:00:00 2001 From: Sophie <47993817+sdankel@users.noreply.github.com> Date: Wed, 16 Apr 2025 21:57:44 -0700 Subject: [PATCH 01/10] add theme --- app/src/App.tsx | 75 +++++++--- .../components/PackageDashboard.css | 0 .../components/PackageDashboard.tsx | 0 .../hooks/useFetchRecentPackages.ts | 0 app/src/pages/Home.tsx | 2 +- app/src/theme/theme.ts | 129 ++++++++++++++++++ app/src/utils/http.ts | 2 +- 7 files changed, 187 insertions(+), 21 deletions(-) rename app/src/features/{dahboard => dashboard}/components/PackageDashboard.css (100%) rename app/src/features/{dahboard => dashboard}/components/PackageDashboard.tsx (100%) rename app/src/features/{dahboard => dashboard}/hooks/useFetchRecentPackages.ts (100%) create mode 100644 app/src/theme/theme.ts diff --git a/app/src/App.tsx b/app/src/App.tsx index 2ae08a6..1fc7124 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -1,13 +1,11 @@ import React, { ReactNode } from "react"; -import AppBar from "@mui/material/AppBar/AppBar"; -import Toolbar from "@mui/material/Toolbar/Toolbar"; +import { ThemeProvider } from "@mui/material/styles"; +import { AppBar, Toolbar, Box } from "@mui/material"; import { useNavigate } from "react-router-dom"; import UserButton from "./features/toolbar/components/UserButton"; import { useIsMobile } from "./features/toolbar/hooks/useIsMobile"; import SearchBar from "./features/toolbar/components/SearchBar"; -import "./App.css"; - -export const FUEL_GREEN = "#00f58c"; +import theme from "./theme/theme"; interface AppProps { children?: ReactNode; @@ -18,20 +16,59 @@ function App({ children }: AppProps) { const isMobile = useIsMobile(); return ( -