devctrl.utility.svg_recolor.replace_colors#

replace_colors(source: str, replacements: dict[str, str]) str[source]#

Change the colors in the source text.

Ensures colors are not re-replaced by processing replacements in a single pass.