Replies: 2 comments
-
Yes. You're right. Currently this variable seems not in use. I may need to dig the code history a bit. Thanks for pointing out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
turned out missing this part in tailwind.config.js. just updated the templates. theme: {
extend: {
fontFamily: {
sans: ["var(--font-sans)"],
mono: ["var(--font-geist-mono)"],
},
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let me know if I'm just being stupid, but I was struggling to change the font with NextUI for ages. I imported the new font like so...
And it wasn't working, I wasn't even getting the default Inter font... and I changed layout.tsx to be fontSans.className instead of fontSans.variable and it worked.
FROM (This is how it comes default after running
nextui init project-name
)TO
And now it works and I can display all the different fonts I want. Am I just being stupid and not understanding how the fonts should work? Or did I discover a bug in the boilerplate?
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions