Skip to content

Instantly share code, notes, and snippets.

@samsolomon
Created September 22, 2016 18:12
Show Gist options
  • Save samsolomon/a7515a67d8fa69bcc5c368877ec3e03b to your computer and use it in GitHub Desktop.
Save samsolomon/a7515a67d8fa69bcc5c368877ec3e03b to your computer and use it in GitHub Desktop.
// 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