Skip to content

Instantly share code, notes, and snippets.

@triple-j
Forked from stefthoen/tint-mixin.scss
Created July 23, 2015 20:27
Show Gist options
  • Save triple-j/065cc9002ae4f8645457 to your computer and use it in GitHub Desktop.
Save triple-j/065cc9002ae4f8645457 to your computer and use it in GitHub Desktop.
Sass tint mixin
// Add percentage of white to a color
@function tint($color, $percent) {
@return mix(white, $color, $percent * 1%);
}
// Add percentage of black to a color
@function shade($color, $percent) {
@return mix(black, $color, $percent * 1%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment