My goal is to dynamically change the Close Button SVG Color based on the background color being used. I am utilizing various Sass functions ($_luminance-list, color-contrast, contrast-ratio, luminance) to manage and adjust the colors.
For a demonstration, check out this Codepen example:
Current result can be seen here:
https://i.sstatic.net/9ARjx.png
This is the desired outcome:
https://i.sstatic.net/ppaUf.png
The full code includes the function definitions that I am utilizing:
Pasted comprehensive list of functions with defined variables from the original text...