grav-theme-libretic/scss/nucleus/functions/_utilities.scss
2015-01-15 19:15:54 +01:00

7 lines
No EOL
175 B
SCSS

@function textcolor-tint($color, $amount: 65%) {
@if (lightness($color) > 50) {
@return darken($color, $amount);
} @else {
@return lighten($color, $amount);
}
}