I want to use my CSS variable into an background image for changing the fill property of the SVG.
:root{
--primary: red;
}
input {
background-image: url('data:image/svg+xml,<svg fill="var(--primary)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z"/></svg>');
background-position: right center;
background-repeat: no-repeat;
}
<input type="text>