Tailwind 4: How to create a 'font-heading' class that will take font-family and font-weight properties? #18588
Unanswered
vladbesson
asked this question in
Help
Replies: 2 comments 1 reply
-
Of course, this can be achieved with the
But I'm wondering why the method with |
Beta Was this translation helpful? Give feedback.
0 replies
-
See previous maintainer responses to this: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In tailwind 3 it was achieved with that
But in Tailwind 4 it does not work, only font-family is applying but not font-weight, and when I change that in css-first customisation it also does not work — only font-family is applying:
Here is the sandbox link — https://play.tailwindcss.com/5KFJdWt5yu?file=css
Beta Was this translation helpful? Give feedback.
All reactions