mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
25 lines
465 B
SCSS
25 lines
465 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(#ffbb52, 60%);
|
|
/// }
|
|
///
|
|
/// @example css - CSS Output
|
|
/// .element {
|
|
/// background-color: #664a20;
|
|
/// }
|
|
///
|
|
/// @return {Color}
|
|
|
|
@function shade($color, $percent) {
|
|
@return mix(#000, $color, $percent);
|
|
}
|