Skip to content

Commit e88042b

Browse files
authored
refactor(font): utilize Next.js built-in web font optimization (seerr-team#1681)
https://nextjs.org/docs/basic-features/font-optimization
1 parent a18ccee commit e88042b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/pages/_document.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class MyDocument extends Document {
2121
return (
2222
<Html>
2323
<Head>
24-
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
24+
<link rel="preconnect" href="https://fonts.gstatic.com" />
25+
<link
26+
rel="stylesheet"
27+
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
28+
/>
2529
</Head>
2630
<body>
2731
<Main />

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
width: 'width',
1212
},
1313
fontFamily: {
14-
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
14+
sans: ['Inter', ...defaultTheme.fontFamily.sans],
1515
},
1616
typography: (theme) => ({
1717
DEFAULT: {

0 commit comments

Comments
 (0)