-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load fonts in NextJS #193
Comments
oh I think the missing piece is the |
And where is it supposed to go? For Native, you wrap the
Shouldn't there be something similar using |
It would go in |
I've seen these two posts; I guess you mean something like this? But also here here they recomnnend not using |
interesting…in my app, i extend the CSS reset string supplied by expo/next-adapter/_document |
I think the issue about using I've taken this
But the fonts don't load. Might it be because the way the theme is loded? (I've tried also with other fonts, and same thing ..)
|
I think I can make it work. It's a problem with
Basically I'm doing this:
But now I've found another issue and it's that SSR is not working, I guess because of the Another issue I 'm facing is that I have to place the fonts in two locations: ones in |
I just put it in |
I added an example to Solito with custom fonts using Dripsy, Next.js and Expo font: npx create-solito-app@latest -t with-custom-font You can see it here. |
I cannot manage to load web fonts in NextJS following what it's said here:
https://www.dripsy.xyz/fonts#web-optimizations
Normally you need to load them within styles (tailwind), right?
But with Dripsy, DripsyProvider is in charge of it?
This my _document.tsx
theme.tsx
The text was updated successfully, but these errors were encountered: