Put in order · Next.js course · Module 3: Styling and Visual Optimization
Stages of font loading through next/font
Arrange the stages of configuring and loading fonts in Next.js (next/font) in the correct order:
Items to put in order
- Assign font to a CSS variable (className or variable)
- Use the CSS variable in component styles
- Import font from next/font/google or next/font/local
- Configure variants (weight, subsets, display)
You can check the correct answer by solving this task in the CodeWorlds game.