Created
January 5, 2017 14:21
-
-
Save MW3000/18766eb4a4198842237a83ea3ec4ef87 to your computer and use it in GitHub Desktop.
Tint and Shade functions for Sass
This file contains 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