| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { Geist, Geist_Mono } from "next/font/google";
- import "./globals.css";
- import { ThemeProvider } from "@/components/ui/theme-provider";
- const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
- });
- const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
- });
- export const metadata = {
- title: "RHL Lieferscheine",
- description: "Internal delivery note browser",
- };
- export default function RootLayout({ children }) {
- return (
- <html lang="de" suppressHydrationWarning>
- <body
- className={`${geistSans.variable} ${geistMono.variable} min-h-screen bg-background text-foreground antialiased`}
- >
- <ThemeProvider
- /*
- Theme setup (shadcn/ui + next-themes):
- - attribute="class" means themes are controlled via <html class="dark">
- - defaultTheme="system" respects the OS preference
- - enableSystem keeps system sync
- - disableTransitionOnChange avoids flicker/jumpy transitions
- */
- attribute="class"
- defaultTheme="system"
- enableSystem
- disableTransitionOnChange
- >
- {children}
- </ThemeProvider>
- </body>
- </html>
- );
- }
|