SVG reuse a group but change fill color

Viewed 8565

So I have a <g> element with some <rect>s inside it, they all have same fill color, but can be of different sizes. I want to reuse the <g>, but fill it with a different color, is it possible?

I can change the markup any way I like.

1 Answers
Related