Refer: https://stackoverflow.com/questions/5456467/syntax-for-if-else-condition-in-scss-mixin
@mixin clearfix($width: 'auto') { @if $width == 'auto' { // if width is not passed, or empty do this } @else { display: inline-block; width: $width; } }