feat(theme): add appearance settings and theme provider integration
Some checks failed
CI/CD Pipeline / Valider backend (push) Successful in 1m26s
CI/CD Pipeline / Valider frontend (push) Failing after 53s
CI/CD Pipeline / Valider documentation (push) Successful in 1m32s
CI/CD Pipeline / Déploiement en Production (push) Has been skipped

- Added theme selection in settings page for light, dark, and system modes.
- Integrated ThemeProvider into application layout.
- Updated dashboard layout to include theme toggle in the header.
This commit is contained in:
Mathis HERRIOT
2026-01-20 16:27:59 +01:00
parent 3b9b73bc4b
commit 5cc77ae5b0
3 changed files with 76 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ import {
SidebarTrigger,
} from "@/components/ui/sidebar";
import { UserNavMobile } from "@/components/user-nav-mobile";
import { ModeToggle } from "@/components/mode-toggle";
export default function DashboardLayout({
children,
@@ -27,7 +28,10 @@ export default function DashboardLayout({
<div className="flex-1 flex justify-center">
<span className="font-bold text-primary text-lg">MemeGoat</span>
</div>
<UserNavMobile />
<div className="flex items-center gap-2">
<ModeToggle />
<UserNavMobile />
</div>
</header>
<main className="flex-1 overflow-y-auto bg-zinc-50 dark:bg-zinc-950">
{children}