I\'m using SVG for a project, loaded in css like this:
background-image: url(\'data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/20
Use filter property of CSS. For me I wanted to change the color of the icon to white on Hover:
filter: grayscale(1) brightness(2);