The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS SASS Mixins Reply To: SASS Mixins


I generally just use Compass and like their mixins (though I have modified a couple of them).

Keep in mind, though, that sometimes you want a mixin and other times you want to use @extend.

For me, mixins are something that you pass a variable to and you would use extend when you don’t need to pass anything to it. This is because using @include duplicates CSS and @extend just adds a new selector. If you use @include a lot you could be seriously bloating your final code.