(svg, color)
| 4 | |
| 5 | /** The @pollinations/ui logo paints with fill:currentColor. */ |
| 6 | export function tintLogo(svg, color) { |
| 7 | return svg.replaceAll("currentColor", color); |
| 8 | } |
| 9 | |
| 10 | function hexToRgb(hex) { |
| 11 | const m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); |
no outgoing calls
no test coverage detected