theme settings

This commit is contained in:
Robert 2024-03-06 17:42:54 +07:00
parent d1a68883d4
commit 4ebcc8d96e
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22
3 changed files with 26 additions and 1 deletions

View File

@ -1,6 +1,9 @@
import { routeTree } from "@/routeTree.gen";
import { RouterProvider, createRouter } from "@tanstack/react-router";
import { theme } from "./theme";
import { ThemeProvider } from "@mui/material";
import "./globals.css";
import "@fontsource/roboto/300.css";
import "@fontsource/roboto/400.css";
@ -16,5 +19,9 @@ declare module "@tanstack/react-router" {
}
export default function App() {
return <RouterProvider router={router} />;
return (
<ThemeProvider theme={theme}>
<RouterProvider router={router} />
</ThemeProvider>
);
}

View File

@ -1,3 +1,12 @@
@tailwind base;
@tailwind utilities;
@tailwind components;
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}

9
src/app/theme.ts Normal file
View File

@ -0,0 +1,9 @@
import { createTheme } from "@mui/material/styles";
export const theme = createTheme({
palette: {
primary: {
main: "#676CF6",
},
},
});