change drawer color to black

This commit is contained in:
Weixuan Fu
2024-04-30 19:12:07 +08:00
parent 2c26b90f7d
commit cfd349f05c
+10 -1
View File
@@ -1,6 +1,6 @@
import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import { ColorModeScript } from "@chakra-ui/react";
import { ColorModeScript, type StyleFunctionProps } from "@chakra-ui/react";
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
import { AlertDialogProvider } from "./components/AlertDialogProvider.tsx";
import CSSReset from "./MyCSSReset.tsx";
@@ -36,6 +36,15 @@ const zIndices = {
const theme = extendTheme({
zIndices,
components: {
Card: {
baseStyle: (props: StyleFunctionProps) => ({
container: {
backgroundColor: props.colorMode === "dark" ? "#171B21" : "#F6F8FA",
},
}),
},
},
});
ReactDOM.createRoot(topbar).render(