This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically chosen between either black or white, depending on the given background color.
It's a nice intro into @if
and @else
conditionals in Sass.
Posted by Henning Koch to makandra dev (2012-03-07 21:24)