Skip to content

How to Create a Range-Based Utility in Tailwind 4.0? #17275

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

You must be logged in to vote

I don't think you can have all the parameters in one class name, you'd need to split it up and use CSS variables. You can at have at least two parameters per class; one that is the value and the other that is the modifier. I think it makes sense to have the modifier be the viewports, since that is optional.

https://play.tailwindcss.com/XLhwOyIkjO?file=css

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
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