Skip to content

What's the best way to install a custom font on Next.js? #585

Answered by melishev
melishev asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, I found a solution for this problem after carefully reading the documentation.

First, of course, you need to import our font into the application.

In order to install a custom font, you need to customize the theme, as described here in the documentation

It is also necessary to add a "font" object with the name of your font inside:
const customTheme = Themes.createFromLight({ type: 'coolTheme', font: { sans: '"customFont"', }, })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melishev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant