|
|
|
|
|
by klysm
1366 days ago
|
|
People that learned CSS before tailwind was a thing tend to hate the concept. But clearly it has to have some value right? Why is it so popular? I argue that it solves a clear design deficit in CSS. You cannot have tight coupling with CSS and a lot of the time you want tight coupling. In-line styles are insufficient, so we have tailwind. It’s an API to css that lets you tightly couple your styles. The re-usability of those styles is accomplished by composition of components or composition of atoms via @apply. |
|
Popularity doesn't mean much. I mean, look at React.
And Tailwind isn't that popular. From Twitter you might get the impression everyone is using it, but if you look at the State of CSS you'll see is not even close to something like Bootstrap or SASS.
https://2021.stateofcss.com/en-US/technologies