From fe8be72445d011d6660afccd7a0e22d090d24da0 Mon Sep 17 00:00:00 2001 From: Jarrett Drouillard Date: Thu, 21 May 2015 15:00:48 -0400 Subject: [PATCH] feat: tint fn --- _functions.scss | 1 + functions/_tint.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 functions/_tint.scss diff --git a/_functions.scss b/_functions.scss index e69de29..1c8c03e 100644 --- a/_functions.scss +++ b/_functions.scss @@ -0,0 +1 @@ +@import "functions/tint"; diff --git a/functions/_tint.scss b/functions/_tint.scss new file mode 100644 index 0000000..e7e4329 --- /dev/null +++ b/functions/_tint.scss @@ -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); +}