zachdaniel / tails

Utilities for working with tailwind classes, like semantic merge, and conditional class lists.
MIT License
81 stars 9 forks source link

remove: with :pattern matching" #6

Open terrisgit opened 1 year ago

terrisgit commented 1 year ago

Is your feature request related to a problem? Please describe. I am trying to override the fill color (bg-) of a button with a class that tails doesn't recognize

Describe the solution you'd like remove:bg-* would remove all the classes that start with bg-

Describe alternatives you've considered remove:* is available but it is too heavy handed. I don't want to remove every class. Can this support a comma-delimited list of wildcards?

zachdaniel commented 7 months ago

Sounds interesting :) Didn't see this before for some reason. PRs welcome. We wouldn't support a comma separated list, but you can specify it multiple times, i.e remove:bg-* remove:.... Its an interesting idea, and it doesn't really hurt to have it, but at the same time it would likely be hard to use right since many unrelated things share the same prefix.