Created
June 26, 2023 16:21
-
-
Save popeating/afa619b4d64c81edb9bddd7b61a39000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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