2 ms·
I know some of the things that SASS gets you, but I'm curious: how DRY and light is your generated CSS? Anecdotally, the designer where I work uses SASS, but i
by billybob 15y ago
I know some of the things that SASS gets you, but I'm curious: how DRY and light is your generated CSS?
Anecdotally, the designer where I work uses SASS, but in our last iteration of our web app, his compiled stylesheet was something like 10,000 lines.
- tjogin 15y agoIt depends on how you use SASS. Used correctly, with @extend rather than @include for big swatches of styles that reoccur in multiple places, it will be DRY and light. Your designer colleague probably didn't have a sufficient understanding of the difference between @extend and @include. It's not hard though, a few tests using the different methods and analyzing the results should be enough to understand when to use each. It is utterly impossible to generate worse CSS with SASS than by just writing CSS directly, as SASS does not deprive you of any CSS feature. SASS provides you with a bigger and more capable toolbox, but won't stop you from using the wrong tool in any given situation.