Skip to content

Font variation settings in tailwindcss v4 #17913

Answered by lars-radtke
lars-radtke asked this question in Help
Discussion options

You must be logged in to vote

After fiddling around for a little longer, I just so happend to find a solution, that tends to point towards the "I'm just plain dumb" solution: https://play.tailwindcss.com/jZUrbNXT8n?file=css.
(The preview errors at the custom variable, but it works in my repo)

I guess, I couldn't wrap my head around how tailwind's mutating the variable values in the new version!

Next thing for me to figure out is how to limit --value(integer) to specific ranges of numbers (e. g. 300 to 900) and to get my linter to suggest these classes.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lars-radtke
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lars-radtke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants