Font Customization
Step 1: Choose your font
-
Go to Google Fonts and pick a font
-
Note the exact font name (e.g., "Inter", "Roboto", "Poppins")
IMPORTANTThe font name must match Google Fonts exactly (case-sensitive)
Step 2: Update the import
In pages/_app.js, change line 16:
Replace Manrope with your font name
import { Inter } from "next/font/google";
Step 3: Update the font variable name
On line 18, change const manrope to match your font:
const inter = Inter({
Use the same name as the import.
Step 4: Configure font weights
On line 8, update the weight array with the weights you need:
weight: ["300", "400", "500", "600", "700"],
Common options: ["200", "300", "400", "500", "600", "700", "800"]
TIP
Only include weights you'll use. Fewer weights = smaller bundle size.
Step 5: Update the className
On line 66, change manrope.className to your new variable:
inter.className
Step 6: Test your changes
- Save the file
- Restart your dev server:
npm run dev - Check your app to see the new font
NOTE
Keep subsets: ["latin"] and display: "swap" as shown in the original configuration.