ruk·si

💅 SASS
Color Manipulation

Updated at 2015-01-14 06:43
/// Slightly lightens a color.
/// @param  {Color}  $color
/// @param  {Number} $percentage
/// @return {Color}
@function tint($color, $percentage) {
    @return mix($color, white, $percentage);
}

/// Slightly darkens a color.
/// @param  {Color}  $color
/// @param  {Number} $percentage
/// @return {Color}
@function shade($color, $percentage) {
    @return mix($color, black, $percentage);
}

Sources