Skip to content

Instantly share code, notes, and snippets.

View OskarWoof's full-sized avatar

Oskar Woof OskarWoof

View GitHub Profile
@OskarWoof
OskarWoof / input.scss
Created March 30, 2023 21:55
Generated by SassMeister.com.
/**
* 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);