style : theme colors refacto and change

This commit is contained in:
GuillaumeSD
2025-05-27 19:36:35 +02:00
parent feb58dc9f6
commit 5445c1e0e1
4 changed files with 20 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { PropsWithChildren, useMemo } from "react";
import NavBar from "./NavBar";
import { red } from "@mui/material/colors";
import { useLocalStorage } from "@/hooks/useLocalStorage";
import { MAIN_THEME_COLOR } from "@/constants";
export default function Layout({ children }: PropsWithChildren) {
const [isDarkMode, setDarkMode] = useLocalStorage("useDarkMode", true);
@@ -16,7 +17,7 @@ export default function Layout({ children }: PropsWithChildren) {
main: red[400],
},
primary: {
main: "#5a9943",
main: MAIN_THEME_COLOR,
},
secondary: {
main: isDarkMode ? "#424242" : "#ffffff",