Created
January 8, 2017 09:57
-
-
Save lichenbuliren/62e0c7c435b39404483e90fb973d8d60 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