Mastering Fonts in Next.js: Local Fonts, Google Fonts, and Best Practices

preview_player
Показать описание


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

Was troubleshooting with next js fonts variable to use in CSS. You saved my time. Thanks a lot. Keep it up <3

muhammad-shahin
Автор

Can't wait for another fullstack build but with typescript. I needed this too. Subbed. Thanks 👍

jeremiebinns
Автор

thanks, the global font settings for google font was very useful! i struggled with that for hours

RT-ygec
Автор

Thank you for your great and comprehensive explanation.

kamrant
Автор

for some reasons, when i set the variable fonts in side the classNames, it makes the component's font the name of the last font in the className list, i don't know if you get me

sadique_x_
Автор

Nice comprehensive tutorial. I f*ck with it 👍💯

serispeaks
Автор

So I got this to work, but then how do I style that element that I've given <h1 ? by targetting .dancingScript ?

Adjust
Автор

How did he get the static font with that extension

ibukunoluwadawodu
Автор

how could i do it with scss? and is there a way to not make it so my all page change to those fonts unless i actually go there and use a font-family to change it? cause putting that into the body will change every text that is not styled with a font-family to that exact font

micatalyst
Автор

U look so much like Reece James man. what the heck!?

angelofdeath
Автор

I didn't like the way fonts are used in next js... why shall we need to use it's annoying to use fonts in every elements... fonts should be kept of css globally so that we can use them throughout the site... don't know whether I am wrong or not... but it's to much....

anirudhachakrabarty