If using flat SVG icons then you can use a server side function to dynamically create the SVG with dedicated background color and dedicated size. The server side processing (invoked via servlet) is reading the original XML of the SVG image and is inserting corresponding information into the XML.
As consequence you may create SVG icons in different colors/sizes without having to explicitly create one SVG-XML-file per color/size.
Please note: the function to transform the SVG into some SVG with color and size definition is based on a certain structure that the SVG icons should correspond to. The function is implemented in method SVGImageManager.updateSVG(...). You may override this function and set your own implementation in SVGImageManagerFactory, in case your SVG icons do not correspond to this format.