DEV Community

Discussion on: My first experiences with Tailwind CSS

Collapse
 
dailydevtips1 profile image
Chris Bongers

I mention vanilla CSS having smaller HTML in comparison.
Not about Tailwind, but agreed it should be used in a component-based system to use components and minimize the actual repetitiveness.

It does force you to write a very small component based

Collapse
 
xowap profile image
Rémy 🤖

So if you work with a components system, the CSS is linked to the component file? At least in VueJS it is. So this kinds of invalidates the point of avoiding CSS bloat.

I'm really not convinced by the whole "I'm not sure where to put CSS so the simplest must be in HTML right?" stance

Thread Thread
 
dailydevtips1 profile image
Chris Bongers

Yes exactly so in Angular and vue and react you would have some kind of component styling file.
So here is where you already doing some best practice.
I do think it's a good idea to check what's out there and see how it can or cannot work for someone.