Theme toggle, notifications popover, command palette (Cmd+K), user account dropdown with settings modal, subtle sidebar active states, and nav transition animation.
37 lines
835 B
TypeScript
Executable File
37 lines
835 B
TypeScript
Executable File
import type { Metadata } from "next";
|
|
import { Sora, IBM_Plex_Mono } from "next/font/google";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import "./globals.css";
|
|
|
|
const sora = Sora({
|
|
variable: "--font-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const ibmPlexMono = IBM_Plex_Mono({
|
|
variable: "--font-mono",
|
|
weight: ["400", "500", "600", "700"],
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Dashboard App Template",
|
|
description: "A Next.js dashboard template with shadcn/ui",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<body className={`${sora.variable} ${ibmPlexMono.variable} font-sans antialiased`}>
|
|
<ThemeProvider>
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|