Replace Icon Library Style without losing color properties

I’m looking for a way to replace an entire icon library style (from sharp to round) by changing only the shape in the icon component - and of course - without editing the current icon shape.

The thing is that all the old icons are already being used through out some designs, and also in a lot of components, and if I replace the shape in the icon component, all the instances lose the color property aplied.

If I add a new shape in the icon component, and delete the “old” shape, all the instances of that icon also lose the color property. I tried merging shapes but it always loses the color property no matter what. Is there any way to achieve this?