Files
greyhaven-design-system/app/layout.tsx

54 lines
1.3 KiB
TypeScript

import type { Metadata } from 'next'
import { Source_Serif_4 } from 'next/font/google'
import './globals.css'
// Primary typeface: Source Serif Pro (Source Serif 4 is the updated version)
// Used for headings, body text, and reading content
const sourceSerif = Source_Serif_4({
subsets: ["latin"],
variable: '--font-source-serif',
display: 'swap',
})
export const metadata: Metadata = {
title: 'Greyhaven Design System',
description: 'Visual Identity and Brand Guidelines - Greyhaven',
icons: {
icon: [
{
url: '/icon-light-32x32.png',
media: '(prefers-color-scheme: light)',
},
{
url: '/icon-dark-32x32.png',
media: '(prefers-color-scheme: dark)',
},
{
url: '/icon.svg',
type: 'image/svg+xml',
},
],
apple: '/apple-icon.png',
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en" className={sourceSerif.variable}>
<head>
<link
href="https://api.fontshare.com/v2/css?f[]=aspekta@400,500,600,700&display=swap"
rel="stylesheet"
/>
</head>
<body className="font-sans antialiased bg-background text-foreground">
{children}
</body>
</html>
)
}