How can I effectively utilize the outcome of darken( $var, 10% ) in the SASS function oppositeColor( $darkenedColor )?
The code I am working with currently looks like this:
$color1: #000000 !default;
$color2: darken( $color1, 5% ) !default;
$color3: oppositeColor( $color2 ) !default;
$color4: darken( $color3, 15% ) !default;
However, I encounter the following error message:
SassError: $color: oppositeColor(#000000) is not a color.
╷
28 │ $color4: darken($color3, 15%) !default;
│ ^^^^^^^^^^^^^^^^^^^^
Is there a method to successfully integrate the result of darken( $color1, 5% ) into oppositeColor( $color2 ) without encountering any errors?