How extensively do you use CSS preprocessors on your projects? What practical benefits do you get from them? And which one do you prefer out of Sass, Less, SCSS, Stylus - or maybe something else?
Thanks for asnwering guys! Whatever I have understood about CSS preprocessors till now I have shared in this blog post - let me know what you all think?
For a project already using nodejs: SCSS using node-sass. Mostly for mixins, vars and relatively terse syntax. Prefer SCSS over LESS as I prefer the syntax.
For other projects, I tend to just write CSS. If they're too small to bother with a build tool, the CSS isn't big enough to be a major hassle.
For the last 4 years or so, scss is my poison ..
I do not use preprocessors, as I want to write simple, stupid, performant CSS. A preprocessor cannot guarantee to output just that. Even worse: it would mean that I have to add a "build" step to my workflow. I am more efficient without setting up all those "useful" tools.
Gergely Polonkai
You have to believe in things that are not true. How else would they become?
I'm a Python guy, so Sass comes natural to me.
I'm also a programmer by heart, so using variables in it also comes natural to me. Also, why would I try to memorise
#d6b397if writing$bgcoloris the same?Fortunately I always have a build pipeline I can insert Sass in, as I always write tests for my apps. And if I'm already there, it's not that hard to add a little Sass call somewhere.