panorama/src-ts/main.tsx

28 lines
587 B
TypeScript
Raw Normal View History

2023-06-13 00:13:24 +00:00
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./styles.css";
2023-06-13 04:07:03 +00:00
import {
ChakraProvider,
ColorModeProvider,
ThemeConfig,
ThemeProvider,
extendBaseTheme,
extendTheme,
} from "@chakra-ui/react";
const config: ThemeConfig = {
initialColorMode: "system",
useSystemColorMode: true,
};
const theme = extendBaseTheme({ config });
2023-06-13 00:13:24 +00:00
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
2023-06-13 04:07:03 +00:00
<ChakraProvider theme={theme}>
<App />
</ChakraProvider>
2023-06-13 00:13:24 +00:00
</React.StrictMode>
);