diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2f94082..a8bdbb3 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,6 +5,7 @@ import { CssBaseline, Stack, ThemeProvider, + useTheme, } from "@mui/material"; import Root from "@theme/Root"; import { map } from "lodash"; @@ -32,15 +33,6 @@ function Content() { const sm = useSm(); const [mode] = useMode(); - // useEffect(() => { - // const sb = OverlayScrollbars(document.body, { - // overflow: { x: "hidden", y: "scroll" }, - // scrollbars: { - // // theme: mode === "dark" ? "os-theme-light" : undefined, - // }, - // }); - // () => sb.destroy(); - // }, [mode]); return ( <> { + document.body.style.backgroundColor = palette.background.default; + document.body.style.color = palette.text.primary; + }, [palette.background.default, palette.text.primary]); return (