SyntaxFix
Write A Post
Hire A Developer
Questions
For the background color - the fill property can be accessed like so:
fill
svgElement.style.fill = '#fff';
To set the border color, do the same for the stroke property.
stroke
Please refer to the W3C reference on SVG, as it's a broad issue.