Skip to content

Cannot use leading-from-1.1 with @utility in Tailwind 4.1 – float values not recognized #18462

Answered by wongjn
mustafa-soylemez asked this question in Help
Discussion options

You must be logged in to vote

Your --value() and --modifier() parameters [*], mean arbitrary value [] of any type *. Hence, you'd need to use the arbitrary syntax with square brackets in the class name, leading-from-[1.1] leading-to-[1.25]

https://play.tailwindcss.com/7bbRbImWUm

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mustafa-soylemez
Comment options

Answer selected by mustafa-soylemez
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