Merge pull request #3170 from bluewave-labs/fix/light-dark-mode-theme
fix: sidebar and body background not adapting to light mode
This commit is contained in:
3 files changed
+12
-4
No files matched your search
+10
-1
@@ -22,9 +22,18 @@ function App() {
|
||||
};
|
||||
}, []);
|
||||
|
||||
const theme = mode === "light" ? lightTheme : darkTheme;
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline />
|
||||
<GlobalStyles
|
||||
styles={{
|
||||
body: {
|
||||
backgroundColor: theme.palette.background.main,
|
||||
},
|
||||
}}
|
||||
/>
|
||||
<AppLayout>
|
||||
<Routes />
|
||||
</AppLayout>
|
||||
|
||||
@@ -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.primary.lowContrast}`,
|
||||
zIndex: 1000,
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
html,
|
||||
body {
|
||||
background-color: #000000;
|
||||
overscroll-behavior: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user