Skip to content

Commit

Permalink
feat: tint fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kuatsure committed May 21, 2015
1 parent 906f6be commit fe8be72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions _functions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "functions/tint";
12 changes: 12 additions & 0 deletions functions/_tint.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* Yanked from http://sass-guidelin.es/#lightening-and-darkening-colors */

/*
Slightly lighten a color
@access public
@param {Color} $color - color to tint
@param {Number} $percentage - percentage of `$color` in returned color
@return {Color}
*/
@function tint($color, $percentage) {
@return mix(white, $color, $percentage);
}

0 comments on commit fe8be72

Please sign in to comment.