If you go to any social media right now, I promise you will find developers screaming at each other about CSS.
On one side, you have the Purists. ...
For further actions, you may consider blocking this person and/or reporting abuse
Good, good! May I add some lines?
In short, do not start with Tailwind ever, period.
You call CSS users "purists" versus Tailwind's "pragmatists", but let's see what Tailwind's adoption means pragmatically:
I can go on for hours.
Please do, I'm interested in what's left :)
I could honestly write a whole series on the matter, but I fear it could unleash mean reactions from the frontend community.
<div>, and DOM size and accessibility suffer;@apply, others pack class names together in "variants" (which you have to name).@applywill conflict with the upcoming native CSS mixins: which means Tailwind will prove itself to be not future-proof yet again, after Tailwind 3 inability to use@layerfreely.Enough?
Thank you for taking the time! With such strong insightful opinions I would love if you published more posts, even reasonable rants are very entertaining content. Do you have an active blog or newsletter I can check out?
"The Vanilla CSS file would grow Linearly." Only if you want every page to look entirely different from every other page on your web site, or you're really bad at choosing class names.
On any normal site, if the class names are well-chosen to reflect the semantic domain space of the site's content, many of the classes you use on your home page are going to be reused across all the other pages. The second page you create will add a few extra classes and some of these too will be used across many subsequent pages. The growth curve will be a very similar shape to Tailwind's.
Thanks for pointing that out. In the end it comes down to personal preference, I guess...
That is not quite true.
CSS is a standard that is widely applicable and will be for years to come.
Tailwind, a good as it is, is a skill that might not be applicable in your next project and will some day be replaced by the next shiny new tool.
Besides, each additional tool or library is project bloat. Standard web technologies are built into the browser.
This also applies to Fetch API v Axios, and I really like Axios.
True!
Tailwind is a system!
It's definitely not meant for beginners. Sharp tool!
A great use case, though, is when you need a similar system. In this case, it's probably better to rely on this tool than to do it yourself, but even in this case, be aware it's also designed for modern browsers.
True!
Sorry, but the bias on this is obvious. Phrases like "I didn't have to create a new class" hide how simple it is. And your HTML isn't polluted like it is with Tailwind. Take a look at "Why Nue" and remember web development when it was actually web development, not investing a whole learning slope for something that the web doesn't actually use.
Will check out Nue!
Love the nautical-themed comparison! Tailwind CSS might be the trusty compass that keeps your design on course, but Vanilla CSS is the open sea where you chart your own course and learn the ropes. Can't help but wonder about how you handle the trade-off between file size and project complexity in your own work?
Nice ai response
Good for use
π«‘
Congrats.