Skip to content

Instantly share code, notes, and snippets.

View LegitDongo's full-sized avatar

LegitDongo

View GitHub Profile
@LegitDongo
LegitDongo / sass-tint.scss
Created May 12, 2017 20:31
Basic tint on RGB values in SASS using the power of math!
@function tint($r,$g,$b,$tint: .5) {
@return rgb(
$tint*$r + (1-$tint)*255,
$tint*$g + (1-$tint)*255,
$tint*$b + (1-$tint)*255
);
}
//using