Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tailwind threads are always the same. And like in all of them, I'm here to say I love Tailwind, and thank you to the devs! It's such a small thing, but the 950 color is a great addition. It's one of the areas where I've reached for my own classes, so I can eliminate yet another little bit of CSS from my codebase.


I've tried them all.

Vanilla CSS, SCSS, BEM, Bootstrap, Styled Components, different kinds of CSS in JS solutions and I still prefer Tailwind over the other methodologies and libraries because I don't have to think about abstractions and naming things. Abstractions are huge foot gun in frontend development because it kills all flexibility. With Styled Components or similar libraries you have to wrap all your components with all kinds of variants that inherit properties. Composition over inheritance is a huge benefit of Tailwind. The big problem with CSS is the specificity and if you ever worked on a real big project with BEM or vanilla CSS/SASS it will eventually become a huge mess of specificity and more and more specific nesting of class selectors to override other styles that you don't want. With Tailwind you can just add exactly what you want, nothing more, nothing less.

Sure the html is "ugly" but that part is invisible.

It is also very likely your bundle size will be smaller because it only adds the CSS for the helpers that you really used.

Just my 2 cents I guess. People should use what they like.


Big ups for 950! This will get rid of a lot of unnecessarily transparent text in my codebases (black/95 etc).

Now fingers crossed that at some point we see a 25. XD

Edit: seconding sentiment of thanking the tailwind team <3


950 color is kind of mad and arbitrary decision though. Why tailwind has color 50 and 950, but does not have 850? It is so common to have some `bg-gray-900` button on `bg-gray-800` background, and no way to slightly highlight the button (not to the level of background).


50 and 950 make sense because of the way human perceive colors. We perceive colors in a quadratic way. This is why sRGB has a gamma curve, among many things. It means that the difference between 500 and 550 wouldn’t be as relevant as the difference between 0 and 50




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: