logoalt Hacker News

sodapopcanyesterday at 3:04 PM2 repliesview on HN

> the site docs garnering traffic (beyond potential tailwind labs conversions) is more of an indicator of a code or design smell than anything

I've heard this before, but it's really no different than vanilla CSS. My guess is that people started pointing this out is that Tailwind got more non-frontend people digging into styling more where they were hit with how much shit there is in CSS.


Replies

nsonhatoday at 11:13 AM

> it's really no different than vanilla CSS

Is this supposed to be a plus? When you have indirections they're supposed to provide some abstraction and the abstraction might or might not provide the utilities you desire, but there is a point to it. A near 1:1 mapping is completely useless and just a different syntax for the sake of it.

eudamoniacyesterday at 4:32 PM

For me I know CSS quite well, but I would always have to look up some utility names that had no intuitive mapping. line-height is leading, flex-direction has no direct mapping, text-wrap is text but also font size is text, so if trying to do font-size:custom you had to do some weird syntax unlike the other custom value syntax lest it confuse text-[1rem] with a text-wrap rule. There are a lot of these weird decisions.

I love tailwind and will continue to use it, but it isn't perfect in this regard...