Skip to content

Instantly share code, notes, and snippets.

@popeating
Created June 26, 2023 16:21
Show Gist options
  • Save popeating/afa619b4d64c81edb9bddd7b61a39000 to your computer and use it in GitHub Desktop.
Save popeating/afa619b4d64c81edb9bddd7b61a39000 to your computer and use it in GitHub Desktop.
import { Roboto_Condensed, Inter, Ubuntu_Mono } from 'next/font/google';
import '@/styles/globals.css';
const roboto_c = Roboto_Condensed({
subsets: ['latin'],
weight: ['400', '700'],
});
const ubuntu_m = Ubuntu_Mono({
subsets: ['latin'],
weight: ['400'],
});
const inter = Inter({
subsets: ['latin'],
weight: ['300', '400', '700'],
});
export default function App({ Component, pageProps }) {
return (
<>
<style jsx global>
{`
:root {
--font-inter: ${inter.style.fontFamily};
--font-roboto_c: ${roboto_c.style.fontFamily};
--font-mono: ${ubuntu_m.style.fontFamily};
}
`}
</style>
<Component {...pageProps} />
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment