Add theme selector with persisted context

This commit is contained in:
dirtydishes 2026-01-06 14:59:59 -05:00
parent 8fc8361390
commit 16d42daf54
4 changed files with 115 additions and 5 deletions

View file

@ -1,5 +1,6 @@
import "./globals.css";
import type { ReactNode } from "react";
import { ThemeProvider } from "./providers/theme";
export const metadata = {
title: "Islandflow",
@ -13,7 +14,9 @@ type RootLayoutProps = {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en">
<body>{children}</body>
<body>
<ThemeProvider>{children}</ThemeProvider>
</body>
</html>
);
}