Add Google Fonts to NextJS

preview_player
Показать описание
In this video, we will show how we can add any google font to your nextjs website.
We will see 2 ways to do this.

1. Using custom document
2. Using CSS Import

Google Fonts:

Custom Document:

Github Repo:

Medium Article:
Рекомендации по теме
Комментарии
Автор

A really helpful video. Thanks Mohammad.

damienbriggs
Автор

Thank you! The only great video I found about this!

anafilipasilvamendes
Автор

Thanks man. You've helped me out.

gabrielguedes
Автор

Hi, thank you for the tutorial. I got one problem though, importing it directly to global css does not work for me. Do you know why? The document thing worked though.

leodragonheart
Автор

You selected two styles in google fonts.... How do you differentiate between either or. This video solves literally 10% of the issue. Example: You have 10 selected styles in a specific font family. Your video does not even mention or include on how to work around it. I am sorry but this is a thumbs down.

timmukhamedov