Skip to content

Instantly share code, notes, and snippets.

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