-
-
Notifications
You must be signed in to change notification settings - Fork 472
Custom font doesn't work #1586
Comments
I'm facing the same issue as well, @fiorins were you able to resolve this? If yes, can you share your the fix. |
Hi, YES, I found another way other than the one described in the documentation since that doesn't seem to work, and I made a guide to use custom fonts. Look at here. |
I found this doesnt work when extending the pro theme:
But if you just add:
It works. I suspect there is some issue with extension |
still not working fir me... |
Have you imported styles.css into index.js? Is your app created with CRA ? |
I have tried everything and I got stuck in this bug. I really have no clue, my previous branch implementation was totally fine, and everything in the theme except the fonts is working. See here (only It's really weird, I have never experienced a bug this much hidden. |
I just ran into a similar issue after I upgraded to This is with the following chakra versions
|
For those who are still seeking a solution, this post resolved the issue for me. The information provided by the author of the Stack Overflow answer should unquestionably be included in the documentation, it would have saved me and others a lot of time. |
I just want to share the solution i made that works for me.
Hope this helps! |
Description
Hi, I don't know either it's a bug or not. I have some font installed via fontsource while others I want to add manually, so I'm following this guide (https://chakra-ui.com/community/recipes/using-fonts) to do it but when I try to get custom font it doesn't work. Here it is my code.
my Fonts.tsx:
my theme.tsx:
my App.tsx:
my Component.tsx:
What am I wrong ?
Chakra UI Version
2.5.4
The text was updated successfully, but these errors were encountered: