greg0r
This is misleading to people and the promise is so shallow that it almost feels insulting.
This article also makes a couple of false/misleading statements. For example:
- With TailwindCSS “you are forced to wrap divs inside divs inside divs”. Not true. I'm writing TailwindCSS code for a couple of years now and can confidently say that you don’t have to write extra HTML markup to make Tailwind work. Your HTML can be perfectly “semantic” without wasted divs.
- “… utility-first approach lacks the power of CSS selectors”: Not true. TailwindCSS comes with grouping and child selector classes, for example.
- It also states that Tailwind styles elements exclusively inline, which is also not correct. They encourage you to name things as well but warn you of premature abstracting in their docs (https://tailwindcss.com/docs/reusing-styles#extracting-class...).
I also can't help but feel a little patronized by the tone of this article. Examples:
- “Mastering CSS requires practice”
- “But when you truly master CSS, there is no turning back” (and you don't need Tailwind)
- You only require Tailwind when you have a “bad CSS structure” or you don't care about your code (https://nuejs.org/blog/tailwind-vs-semantic-css/#but-i-move-...).
If I was new to coding, these statements would discourage me trying out new things. I don't know how you learned to code, but sticking to the fundamentals didn't get me anywhere. Yes, you need to learn them, but you also want to get things done (and figure out later how things work).