Please take a look at the code: JSFiddle
I need to use color variables (Eg: $primary)
in SVG background image code, because of multiple color themes in my website. When we add $primary
value as a direct color (Eg: $primary: blue
) it will work. But HEX color codes ($primary: #1828B4
) are not rendering in output.
I know using %
instead of #
will solve the problem. But this case it is not possible while we are using color variables!
Please advise any solution.