Change the color of SVG icon using CSS

I was trying to change the color of a SVG icon using css. But was not able to do it of my own. Then I googled it and got a nice solution. It’s so simple. You just need to take the class or id or simply take the svg selector if you want to mention all svg in the site then just simply do your css.

Like below

#area svg {

  color: blue;
  fill: currentColor;

And like that.. So simple