I'm not sure how to phrase this question properly. I'm learning Tailwind, I can't help but notice how dirty it is to write because of how the html can become a huge soup of different class combinations in an element, and I basically have to repeat them for every common element I basically write. I might be doing this wrong though so please correct me.
I was wondering if there's a way to put a css class inside a css declaration, possibly using css processors?
.this-button {
.bg-red-500
.rounded-lg
.shadow-lg
.animate-bounce
}
I'm pretty sure this is achievable with Javascript too. I was hoping for a solution using Sass, but anything would be great. What do you guys recommend would be a good practice for managing long Tailwind class combinations in elements?