Skip to content

it is very sad that theme ui have no support to use local or custom fonts. #1967

Discussion options

You must be logged in to vote

Hi @MohammadSahabuddin
Font loading is not something that is usually handled by libraries like this one. How you load a font is gonna be specific to the type of font (hosted, local) and your environment (Next, Nuxt, CRA, Gatsby, ...).

This is because a lot goes into loading, preloading, caching, preventing FOUT...
This thread might be useful to you Preload custom font with Next.js

What you are looking for is probably something like this Web Font Loader

Once you have set up your font specific to your tools, you can simply use the font-family name in the theme.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hasparus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1966 on October 05, 2021 18:29.