I can advise the following sequence of actions:
1. First cleaned from SVG files using online utilities SVG-Editor
author Peter Collingridge
Removes all unnecessary. Use for many years. The file becomes significantly smaller, the image quality does not suffer.
2. And then you have to assign each icon id=" " and class to the container which will be wrapped icon in HTML file.
3.Then via getElementById
to find the icon and put her setAttribute("fill","yellowgreen")
4. Specific examples below in the links