From ea589d6be43dc9e31d03358f215064c27bf8be7d Mon Sep 17 00:00:00 2001 From: gorkem-bwl Date: Thu, 22 Jan 2026 12:27:18 -0500 Subject: [PATCH 1/2] fix: sidebar and body background not adapting to light mode ## Changes ### Sidebar - Remove hardcoded `backgroundColor: "#000000"` - Use `theme.palette.background.main` for dynamic theming - Update border color to use `theme.palette.border.light` ### Body Background - Remove hardcoded `background-color: #000000` from index.css - Add GlobalStyles in App.jsx to apply theme background to body element ## Benefits - Sidebar now properly displays in light mode - Body background adapts correctly to theme changes - Consistent theming across light and dark modes --- client/src/App.jsx | 11 ++++++++++- client/src/Components/v1/Sidebar/index.jsx | 4 ++-- client/src/index.css | 1 - 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index d21850ebb..af2f6c11c 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -22,9 +22,18 @@ function App() { }; }, []); + const theme = mode === "light" ? lightTheme : darkTheme; + return ( - + + diff --git a/client/src/Components/v1/Sidebar/index.jsx b/client/src/Components/v1/Sidebar/index.jsx index 06caede5a..a0959850d 100644 --- a/client/src/Components/v1/Sidebar/index.jsx +++ b/client/src/Components/v1/Sidebar/index.jsx @@ -84,8 +84,8 @@ const Sidebar = () => { gap={theme.spacing(6)} sx={{ transition, - backgroundColor: "#000000", - borderRight: "1px solid #344054", + backgroundColor: theme.palette.background.main, + borderRight: `1px solid ${theme.palette.border.light}`, zIndex: 1000, }} > diff --git a/client/src/index.css b/client/src/index.css index b29c17960..8b2a1cfce 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -6,7 +6,6 @@ html, body { - background-color: #000000; overscroll-behavior: none; } From 0c04c06781f56e983549cbcda723a0b8d24adbe0 Mon Sep 17 00:00:00 2001 From: mannilakash Date: Thu, 22 Jan 2026 14:48:11 -0500 Subject: [PATCH 2/2] fix: sidebar border color changes based on theme (primary->lowContrast color) --- client/src/Components/v1/Sidebar/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/Components/v1/Sidebar/index.jsx b/client/src/Components/v1/Sidebar/index.jsx index a0959850d..763a4123c 100644 --- a/client/src/Components/v1/Sidebar/index.jsx +++ b/client/src/Components/v1/Sidebar/index.jsx @@ -85,7 +85,7 @@ const Sidebar = () => { sx={{ transition, backgroundColor: theme.palette.background.main, - borderRight: `1px solid ${theme.palette.border.light}`, + borderRight: `1px solid ${theme.palette.primary.lowContrast}`, zIndex: 1000, }} >