Created
September 19, 2013 14:54
-
-
Save stefthoen/6624706 to your computer and use it in GitHub Desktop.
Sass tint mixin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add percentage of white to a color | |
@function tint($color, $percent) { | |
@return mix(white, $color, $percent); | |
} | |
// Add percentage of black to a color | |
@function shade($color, $percent) { | |
@return mix(black, $color, $percent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment