Replies: 1 comment
-
This is due to how CSS variables are resolved. You could:
|
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
-
Hey everyone,
I have a bit of trouble using custom font families with
tailwindcss v4
andNext.js 15
. The part that specially troubles me is that it seems tailwindcss can't get the injected var--font-geist-sans
of by Next.js and only redefining it in@theme
fixes it. I've made a repo that tests out how different classes will render, The page itself contains a script that appends to each the font family actually rendered. Theglobals.css
file contains commented out@theme
font family variables properties , I've also made branches with enabling each one and how it affects the render.layout.tsx
page.tsx
globals.css
package.json
Repo : https://github.com/AliMejbar/test (with branches for each css property once enabled)
Preview : test-tw4-next15.vercel.app
Beta Was this translation helpful? Give feedback.
All reactions