gluestack
gluestack
Guide on Custom Font
beng970804 posted this in
#support
Open in Discord
beng970804
OP
2024-08-08T02:35:46.498Z
Will the Gluestack team produce a guide on custom font which include Expo and Bare React Native for v2? Currently I have no clue how to add the custom font to the app. Also, when will the app be out from beta?
8 Replies
sravankumar101
2024-08-08T06:28:17.486Z
You can follow this guide to use the custom fonts in gluestack ui v2
@beng970804
https://tailwindcss.com/docs/font-family#using-custom-values
beng970804
OP
2024-08-08T06:36:37.934Z
@sravankumar101
im coding like this
fontFamily: {
heading: ['Poppins'],
body: ['Montserat'],
},
but how should i import the font?
sravankumar101
2024-08-08T06:49:00.109Z
@beng970804
You can use directly like this
font-heading
Please refer this blog for further more clarification
https://blog.logrocket.com/how-to-use-custom-fonts-tailwind-css/
beng970804
OP
2024-08-13T08:42:11.054Z
@sravankumar101
here is my minimal Repo
What i had done is import all the font to assets/fonts folder. then change inside the tailwind.config file.
what should i do next? currently is not working on android and ios yet
https://github.com/beng970804/GS-V2
viraj1098
2024-08-13T08:59:38.261Z
Hey
@beng970804
, I am getting 404 can you please check?
beng970804
OP
2024-08-13T09:00:09.113Z
can try again now
@viraj1098
viraj1098
2024-08-13T09:02:02.904Z
got it. Will get back to you