fix loading of inter font
This commit is contained in:
parent
ceb913f767
commit
f8a5233460
@ -15,6 +15,8 @@ import { Metadata } from 'next'
|
||||
|
||||
const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
variable: '--font-inter',
|
||||
})
|
||||
|
||||
export const metadata: Metadata = {
|
||||
@ -61,7 +63,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
return (
|
||||
<html
|
||||
lang={siteMetadata.language}
|
||||
className={`${inter.className} scroll-smooth`}
|
||||
className={`${inter.variable} scroll-smooth`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/apple-touch-icon.png" />
|
||||
|
@ -22,7 +22,7 @@ module.exports = {
|
||||
14: '3.5rem',
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['Inter', ...fontFamily.sans],
|
||||
sans: ['var(--font-inter)', ...fontFamily.sans],
|
||||
},
|
||||
colors: {
|
||||
primary: colors.pink,
|
||||
|
Loading…
x
Reference in New Issue
Block a user