-
Notifications
You must be signed in to change notification settings - Fork 472
Expand file tree
/
Copy pathlayout.tsx
More file actions
64 lines (58 loc) · 2.51 KB
/
layout.tsx
File metadata and controls
64 lines (58 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import "./globals.css";
import { fontMono } from "@coss/ui/fonts";
import { ThemeProvider } from "@coss/ui/shared/theme-provider";
import type { Metadata } from "next";
import { Cal_Sans as FontHeading, Inter as FontSans } from "next/font/google";
import { SiteHeader } from "@/components/site-header";
import {
AnchoredToastProvider,
ToastProvider,
} from "@/registry/default/ui/toast";
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
});
const fontHeading = FontHeading({
subsets: ["latin"],
variable: "--font-heading",
weight: "400",
});
export const metadata: Metadata = {
description:
"coss ui is a collection of accessible, and composable React components. Built on top of Base UI and styled with Tailwind CSS,",
metadataBase: new URL("https://coss.com"),
title:
"coss ui - A new, modern UI component library built on top of Base UI. Built for developers and AI.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${fontSans.variable} ${fontHeading.variable} ${fontMono.variable} bg-sidebar font-sans text-foreground antialiased`}
>
<ThemeProvider>
<ToastProvider>
<AnchoredToastProvider>
<div className="relative flex min-h-svh flex-col overflow-clip [--header-height:4rem]">
<div
aria-hidden="true"
className="before:-left-3 after:-right-3 container pointer-events-none absolute inset-0 z-45 before:absolute before:inset-y-0 before:w-px before:bg-border/50 after:absolute after:inset-y-0 after:w-px after:bg-border/50"
/>
<div
aria-hidden="true"
className="before:-left-[11.5px] before:-ml-1 after:-right-[11.5px] after:-mr-1 container pointer-events-none fixed inset-0 z-45 before:absolute before:top-[calc(var(--header-height)-4.5px)] before:z-1 before:size-2 before:rounded-[2px] before:border before:border-border before:bg-popover before:bg-clip-padding before:shadow-xs after:absolute after:top-[calc(var(--header-height)-4.5px)] after:z-1 after:size-2 after:rounded-[2px] after:border after:border-border after:bg-background after:bg-clip-padding after:shadow-xs"
/>
<SiteHeader />
{children}
</div>
</AnchoredToastProvider>
</ToastProvider>
</ThemeProvider>
</body>
</html>
);
}