A good approach is to use a mixin to control stroke colour and fill colour. My svgs are used as icons.
@mixin icon($color, $hoverColor) {
svg {
fill: $color;
circle, line, path {
fill: $color
}
&:hover {
fill: $hoverColor;
circle, line, path {
fill: $hoverColor;
}
}
}
}
You can then do the following in your scss:
.container {
@include icon(white, blue);
}