If you need to fill an SVG asset with a specific percentage or gradient color, such as filling each heart SVG icon based on a particular percentage value, you can achieve this by incorporating the ‘linearGradient’ tag into your SVG code.
code example)
LinearGradient MDN doc)
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient