inspannings-monitor/app/layout.tsx

49 lines
1.2 KiB
TypeScript

import type { Metadata } from "next";
import { IBM_Plex_Mono, Inter_Tight } from "next/font/google";
import { ThemeProvider } from "@/components/theme-provider";
import { Toaster } from "@/components/ui/sonner";
import "./globals.css";
const fontBody = Inter_Tight({
subsets: ["latin"],
variable: "--font-inter-tight",
display: "swap",
});
const fontMono = IBM_Plex_Mono({
subsets: ["latin"],
weight: ["400", "500"],
variable: "--font-plex-mono",
display: "swap",
});
export const metadata: Metadata = {
title: "Inspannings Monitor",
description:
"Wellness-first app voor energieplanning, zelfreflectie en een rustige plan-doe-evalueer flow.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="nl"
suppressHydrationWarning
className={`${fontBody.variable} ${fontMono.variable} dark`}
>
<body className="min-h-screen antialiased">
<ThemeProvider
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
{children}
<Toaster position="top-right" richColors closeButton />
</ThemeProvider>
</body>
</html>
);
}