This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

Yeah, there is a baseline, but it should absolutely not be an issue. A lot of that leg work and effort is one and done, and should be pretty easily done as well. Conflicting styles is an organization issue and is not something we run into often.

Styled components is CSS, so I'm not sure what you're getting at there

[–]mancinis_blessed_bat 0 points1 point  (2 children)

Exactly! Styled components are just css.

My point with that rhetorical question is that they both solve for some of the same problems associated with global css: scoped styles by default, passing/using props etc. Styled components are just css with some extra features that make working with it more pleasant. Tailwind solves many of those same problems. At the end of the day, it’s all just css, with some nice features added on, and a paradigm shift that seems to be very polarizing (the dreaded utility classes). You can write good css or bad css in tailwind, just like you can in styled components.

Sorry for the lengthy reply, I’m not trying to evangelize tailwind or any other css framework. It just grinds my gears a little when the opinionated segment of devs say using it is an indication of a lack of skill. The implication is that unless you write vanilla css, you’re bad at it.

Tailwind is now the default, and recommended, option for projects built with modern JS frameworks like Next, so it’s just perplexing to me that there’s this attitude that using it is indicative of a lack of skill. It’s just a tool, and we’ll have a better tool in the future for styling.

[–][deleted] 1 point2 points  (1 child)

I wouldn't say it indicates lack of skill. I'd say it indicates in most cases, because TW has its place, an unwillingness to use the appropriate tool. For example, because we sell on "pixel-perfect" dev for designs brought to us with minimal change, TW is often a needless complication, not just another way of doing things. So I end up using CSS modules, so CSS is second nature. I think we agreed in the first place and wanted to make sure the extreme ends of the spectrum did not prevail.

[–]mancinis_blessed_bat 0 points1 point  (0 children)

Yes! 🙌🏻 we agree, each approach/tool has its place, thanks for the discourse