hippie-style/functions/_shade.scss
Stephan b60dd80cd5 added current state from hippie main repo
commit state 175816
source/style/hippie
2019-11-12 20:18:02 +01:00

24 lines
447 B
SCSS

@charset "UTF-8";
// Mixes a color with black.
//
// @param {Color} $color
//
// @param {Number (Percentage)} $percent
// The amount of black to be mixed in.
//
// @example scss - Usage
// .element {
// background-color: shade(#0c85ff, 60%);
// }
//
// @example css - CSS Output
// .element {
// background-color: #074f99;
// }
//
// @return {Color}
@function shade($color, $percent) {
@return mix(#000, $color, $percent);
}