Skip to content

Instantly share code, notes, and snippets.

@popeating
Created June 26, 2023 16:33
Show Gist options
  • Save popeating/4005f01c71e9ed1c603267cfa55281c5 to your computer and use it in GitHub Desktop.
Save popeating/4005f01c71e9ed1c603267cfa55281c5 to your computer and use it in GitHub Desktop.
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google';
const roboto_c = Roboto_Condensed({
subsets: ['latin'],
weight: ['400', '700'],
variable: '--font-roboto_c',
});
const ubuntu_m = Ubuntu_Mono({
subsets: ['latin'],
weight: ['400'],
variable: '--font-ubuntu_m',
});
const inter = Inter({
subsets: ['latin'],
weight: ['300', '400', '700'],
variable: '--font-inter',
});
export default function RootLayout({ children }) {
return (
<html lang="en" className={`${inter.variable} ${roboto_m.variable} ${ubuntu_c.variable}`}>
<body>{children}</body>
</html>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment