DEV Community

Discussion on: SASS vs CSS-in-JS vs Tailwind CSS

Collapse
 
eduardonwa profile image
Eduardo Cookie Lifter • Edited

Iv'e never liked the idea of naming a div to a flex property just to have 3 lines of CSS (or 4), it seems to me a bit of an overkill thing. You could just specify a flex behaviour in 3 lines of css, and if need on both mobile and desktop theres no need to repeat it again, just have to tweak margin and padding on desktop (probably)

TailWind CSS is something I'd consider using in the future, but I don't know much about it, how does custom classes work in the enviroment?