BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/emrocode/layout

Layout

emrocode/layout
FreeBlock

Core layout configuration with pre-configured providers

Install it

npx shadcn@latest add https://style.emroco.de/r/layout.json

Source

registry/blocks/layout/layout.tsxstyle.emroco.de/r/layout.json
1import "./globals.css";
2
3import type { Metadata } from "next";
4import { Archivo } from "next/font/google";
5import { ThemeProvider } from "@/components/theme-provider";
6import { cn } from "@/lib/utils";
7
8const archivo = Archivo({ subsets: ["latin"], variable: "--font-sans" });
9
10export const metadata: Metadata = {};
11
12export default function RootLayout({
13 children,
14}: Readonly<{
15 children: React.ReactNode;
16}>) {
17 return (
18 <html
19 lang="en"
20 suppressHydrationWarning
21 className={cn("antialiased", archivo.variable)}
22 >
23 <head>
24 <script
25 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

  • @emrocode/font-archivo
  • @emrocode/theme-provider

Files it writes

  • registry/blocks/layout/layout.tsx

Facts

Registry
emrocode
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

style.emroco.de emrocode/style on GitHub Raw registry item This item as JSON

More from emrocode

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Headerapp-headeremrocodeBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex