DEV Community

Discussion on: Start Using Tailwind CSS Right Now

Collapse
 
punyflash profile image
Dmytro Morozov

I highly disagree that tailwind is better then plain CSS. The one line long strings was never good to work with in a long term. Tailwind just gives freedom for developers to write an unsupportable designs. Once it done - no one will be able to add changes to it. For personal projects it is fine, but never use tailwind when you working in team.

Collapse
 
lil5 profile image
Lucian I. Last

Once it done - no one will be able to add changes to it.

That seems like a strange prognosis, for example: say a class is created 'button' and then with the apply function certain tailwind classes are added, how difficult would it be to remove the class 'mb-2' (from \@apply) and add a newly created class 'mb-7-px'?

How readable is the class mb-7-px?

Is it really that difficult or is it just different?

Collapse
 
andycharles6 profile image
andycharles6

Why no one will be able to add changes?

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Frameworks like tailwind have their place in prototyping, specially by people who don't know and don't want to learn CSS, like backend people that just want a quick front-end for their application, or front-end people that specialize more on the javascript side.

The problem is that tailwind specifically moves away from those use-cases by not providing finished styles for certain components like "buttons" or "grids" but instead tries to provide a direct mapping from classes to css attributes, thereby offering the advantages of neither approach.

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

I think even tailwind is for backend people to much the would use something like bootstrap which has already a design. With tailwind backend people would be as fast as with css.

Collapse
 
hudsonxp80 profile image
hudsonxp80

You can still extract components which is very similar to writing css class but much simpler.

Collapse
 
shubhampatilsd profile image
Shubham Patil

Hi I'm the author of the article here! Tailwind definitely has its own advantages. One thing I might have left out is the customization that CSS offers. My main goal was to outline how Tailwind might be good in cases where you want to write CSS much faster and efficiently. CSS does offer more flexibility, but when you get used to it, it becomes very readable. I do like custom CSS in some cases (eg. customization and certain pseudo selectors) but Tailwind makes styling stuff really fast. I wish you a good day!

Collapse
 
mentoraliu profile image
Mentori

I mean obviously plain CSS is way more flexible but tailwind saves you lot's of time, I personally use bootstrap just for the responsiveness because I hate wasting time with media queries