DEV Community

Discussion on: TailwindCSS: Adds complexity, does nothing.

Collapse
 
moopet profile image
Ben Sinclair

Ever use a modifier class to change how your component appears? Where is that going? In your HTML.

Yes, I've worked places where we do this. But I've also worked places where we use Bootstrap, and they're both bad ideas as far as I'm concerned. I don't think we should use modifier classes.

Collapse
 
ndimatteo profile image
Nick DiMatteo

Who said anything about Bootstrap? I'm also very curious what you're doing instead of using modifier classes to style variants. Are you just writing inline styles? Duplicating other class styles to create a new class just to avoid this?

I guess everything else I pointed out you don't feel like addressing? It's pretty clear to me that you aren't interested in wavering from your original "opinion" here.

Best of luck navigating this industry with that mentality.

Thread Thread
 
moopet profile image
Ben Sinclair

Who said anything about Bootstrap?

I did, me. What I'm saying is that I've worked places where we've used Bootstrap, which uses modifier classes and does basically all the things people criticise about Tailwind. Just because I've worked somewhere that does it a particular way, and where I go along with it because it's my job, doesn't mean I approve of something. So yes, I have and still do use modifier classes, and no I don't think they're the right approach.

very curious what you're doing instead of using modifier classes to style variants

Writing semantic HTML. Where there's an absolute client requirement to do something non-semantic, then adding classes beyond the semantic, but pushing back against it.

I guess everything else I pointed out you don't feel like addressing?

Everything else you pointed out was something I (mostly) agreed with.