grav-theme-libretic/scss/nucleus/functions/_utilities.scss

7 lines
175 B
SCSS
Raw Normal View History

2015-01-15 19:15:54 +01:00
@function textcolor-tint($color, $amount: 65%) {
@if (lightness($color) > 50) {
@return darken($color, $amount);
} @else {
@return lighten($color, $amount);
}
}