refactor(font): utilize Next.js built-in web font optimization (#1681)

https://nextjs.org/docs/basic-features/font-optimization
pull/1674/head
TheCatLady 3 years ago committed by GitHub
parent a18ccee20e
commit e88042ba28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,11 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
/>
</Head>
<body>
<Main />

@ -11,7 +11,7 @@ module.exports = {
width: 'width',
},
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {

Loading…
Cancel
Save