Layout
emrocode/layoutFreeBlock
Core layout configuration with pre-configured providers
Install it
npx shadcn@latest add https://style.emroco.de/r/layout.jsonSource
1import "./globals.css";23import type { Metadata } from "next";4import { Archivo } from "next/font/google";5import { ThemeProvider } from "@/components/theme-provider";6import { cn } from "@/lib/utils";78const archivo = Archivo({ subsets: ["latin"], variable: "--font-sans" });910export const metadata: Metadata = {};1112export default function RootLayout({13 children,14}: Readonly<{15 children: React.ReactNode;16}>) {17 return (18 <html19 lang="en"20 suppressHydrationWarning21 className={cn("antialiased", archivo.variable)}22 >23 <head>24 <script25 dangerouslySetInnerHTML={{26 __html: `(function(){try{var t=localStorage.getItem("theme");if(t)document.documentElement.setAttribute("data-theme",t)}catch(e){}})()`,27 }}28 />29 </head>30 <body>31 <ThemeProvider>{children}</ThemeProvider>32 </body>33 </html>34 );35}
What it pulls in
Other registry items
