Stop using Tailwind CSS

Stop using Tailwind CSS. Or Bulma.io, Bootstrap, or Atomic CSS for the matter. If you are using it, stop. If you haven’t, avoid it.

1. HTML is HTML it’s not CSS

Directly adding CSS into HTML sounds awful, looks awful, and is awful. HTML is a markup language for semantically structuring documents, not a dumping ground for obscure utility classes attached to elements. It prevents readability. It’s bad for you, the user, and the search engine—it sucks. Some front-end designers share my same distaste:

Indeed, the ultimate reason for the invention of CSS, the whole point of the entire enterprise of CSS... was specifically so that you could seperate content from presentation.

Bryan Boyko on Tailwind CSS

Chris Coyier agrees, too:

I don’t like all the classes. I like to express my styles in CSS because I find CSS… good.

Chris Coyier on Atomic CSS

2. There are more efficient ways to write CSS SASS, Less, Stylus

If you are looking for an efficient way to write CSS, stop using Tailwind and start using preprocessors. These include SASS, Less, and Stylus. They are effective because they readable, as compared to bulky Tailwind. And they also have much more functionality. The best part is that they are seperated from the HTML, ensuring high readability. Just look at this image below showing the amount of Tailwind syntax needed to style a button:

Alt text

Image by Aleksandr Hovhannisyan

3. Tailwind is unreadable Nightmarishly complex syntax

No one can understand what you’re doing in Tailwind. That’s because the syntax is nightmarishly complex and incomprehensible. It adds unnecessary bulk. If I pass you an HTML file with Tailwind CSS jargon inside, would you be able to immediately modify and understand it? Probably not. Tailwind’s syntax is vague and quirky, requiring a lot of time spent in understanding it. And even if you master it, chances are, Tailwind is still not the smartest option around. Yes, you can purge it or generate it just-in-time, but is it worth all the hassle? I still prefer working with plain CSS files. Therefore, if you are concerned about the ease of reading, Tailwind just isn’t right.

Conclusion

Tailwind is not HTML, there are more efficient ways to write CSS, such as using preprocessors, and Tailwind is unreadable to humans. The bottom line: Avoid it. It does more harm than good.