clash-verge/src/main.tsx

34 lines
677 B
TypeScript
Raw Normal View History

2021-12-04 09:31:26 +03:00
import "./assets/styles/index.scss";
import React from "react";
import ReactDOM from "react-dom";
2021-12-08 18:36:34 +03:00
import { BrowserRouter } from "react-router-dom";
import { createTheme, ThemeProvider } from "@mui/material";
import Layout from "./pages/_layout";
2021-12-04 09:31:26 +03:00
2021-12-08 18:36:34 +03:00
const theme = createTheme({
palette: {
mode: "light",
primary: {
main: "#5b5c9d",
},
text: {
primary: "#637381",
secondary: "#909399",
},
},
});
2021-12-04 09:31:26 +03:00
2021-12-08 18:36:34 +03:00
// console.log(theme);
2021-12-04 09:31:26 +03:00
ReactDOM.render(
<React.StrictMode>
2021-12-08 18:36:34 +03:00
<ThemeProvider theme={theme}>
<BrowserRouter>
<Layout />
</BrowserRouter>
</ThemeProvider>
2021-12-04 09:31:26 +03:00
</React.StrictMode>,
document.getElementById("root")
);