I have been trying to figure out if it is at all possible in order to take an SVG asset. Go to its file path. Access its color or fill and use that specific colour as a SASS variable.
I have been looking at this stackoveflow article as well as this one as well. But they seem to be targeting a specific SVG and not actually using it in the way I was hoping. Unless there is something I am missing.
So basically I want to go:
background: url(../../../asset/button.svg/#gradient);
or be able to go and store it in a SASS variable like:
$myGradient: url(../../../asset/button.svg/#gradient);
Is something like this possible?