I was facing same situation and after a lot of research I have found best, optimized and professional way to use svg's for huge amount of images. here is the example: Just replace this function with stroke/fill color "currentColor". It will pick parent color or you can add color class. U can do it immediately by using vs code's modern search, filters and shortcut keys.