Files
hwilliams-dev/app/layout.tsx
2026-03-27 13:01:56 -04:00

42 lines
927 B
TypeScript

import type { Metadata } from "next";
import { JetBrains_Mono, DM_Sans } from "next/font/google";
import { SITE } from "@/data/content";
import "./globals.css";
import { ThemeProvider } from 'next-themes'
import ThemeSwitch from "@/components/ThemeSwitch";
const mono = JetBrains_Mono({
subsets: ["latin"],
variable: "--mono",
display: "swap",
});
const sans = DM_Sans({
subsets: ["latin"],
variable: "--sans",
display: "swap",
});
export const metadata: Metadata = {
title: SITE.title,
description: SITE.description,
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={`${mono.variable} ${sans.variable}`} suppressHydrationWarning>
<head />
<body>
<ThemeProvider attribute="data-theme">
<ThemeSwitch/>
{children}
</ThemeProvider>
</body>
</html>
);
}