This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function defining the difference between 2 colors | |
* | |
* @param {Color} $a - first color | |
* @param {Color} $b - second color | |
* | |
* @return {Map} The color operations to do in order to find $b from $a where keys are the color functions to apply and values are the values to pass to these functions | |
*/ | |
@function color-diff($a, $b) { | |
$sat: saturation($a) - saturation($b); |