if you want to have a static color that doesn’t change, paste the svg file in a text editor (Notepad or any other editor) change the fill color value, save it as svg and upload it to the site media.
If you want the color to be dynamic (you want to change it on event). You can do something like:
const svgString = (fillColor) => `<svg data-bbox="1.36 0.502 358.058 75.523" viewBox="0 0 359.92 76.52" height="76.52" width="359.92" xmlns="http://www.w3.org/2000/svg" data-type="ugc"><g><path stroke-miterlimit="10" stroke="#000000" fill="${fillColor}" d="M1.36 68.35c27.5-21.35 76.94-53.09 145-64 47.84-7.67 84.7-1.81 95 0 52.7 9.25 120.32 37.07 118 53-2.33 15.98-76 26.68-358 11Z"/></g></svg>`;
$w.onReady(() => {
//whenever you want to change it, use the color name or the color code (rgb or hex):
$w('#mySvgShape').src = svgString('orange');
})
Thank for such a great answer.
I tried to test the No.2 while editing the SVG source code in order to exclude <?xml version="1.0" encoding="UTF-8"?> part because it causes an error.
As a result, it worked as I expected.