DEV Community

Discussion on: Looking for a CSS framework that I don't have to fight against it (also Vue Framework)

Collapse
 
ben profile image
Ben Halpern

A comment fairly applicable to all CSS framework convos these days: Have you checked out Tailwind?

The first header on the Tailwind landing page: Most CSS frameworks do too much.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Tailwind seems to be good so far.

But as I am making a Markdown Editor, and Tailwind also resets everything, I also need unreset.scss.

Actually, there seems to be an easier way -- Disabling preflight

Collapse
 
applicafroguy profile image
Sivuyile Magutywa

Tailwind is very productive

Collapse
 
jsn1nj4 profile image
Elliot Derhay

I love Tailwind. You can still use it to make your own components if you want, but you'll find yourself remembering the utilities over time too as a side effect of using it.

Collapse
 
danielfeldroy profile image
Daniel Feldroy

I agree, Tailwindcss is probably what you want. I tried other tools for years and finally came over to it a couple weeks ago. Now I'm wondering why I delayed for so long.

As someone who has a critical eye for design but struggles with CSS, Tailwindcss gives me the power to do what I want. The class names are easy to remember and the directives are bliss. I can't say enough good things about it.

Collapse
 
ekafyi profile image
Eka

I'm going to be unoriginal and be the nth person to recommend Tailwind!!

I used to refuse Tailwind's approach because I found it messy, and I was adamant about "separation of concern" (ie. CSS class names should describe content not presentation) etc. I tried as much as possible to stick to BEM. But as I work in a large web app where features are added, removed, and modified regularly, and I have to create quick prototypes (add to that, I also struggle with the visual side of UI design). Things get messy, I couldn't be as disciplined as I'd ideally be about sticking to the CSS methodology, and vaguely presentational class names like .card, .sidebar and .dropdown start to get thrown to the mix. Then I thought what the heck, might as well go the Tailwind route. And I never looked back! Tailwind is soo helpful for my use case.

I also happen to use Laravel, which has built-in postcss support so I can use the Purgecss feature by literally copy-pasting some 3 lines of code. Slimmer minified build css, more productive & happier dev!

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Tailwind also seems to use common names, like flex, container as well.

A solution, though, if I need my own class name, is to prefix with something, like a-, for example.