CSS
SVG CSS Styling
Description
When an SVG image's raw code (XML) is embedded in a component or template, it becomes a special DOM element, whose objects are available for CSS styling via ID or class selector.
Selectors
ID
Inkscape V1.4 objects have an ID property field in their Object Properties panel.
Class
To add a class selector to an SVG object:
- Select SVG object
 - Open 
Object Propertiesand select+in bottom, left of panel (Add a new CSS Selector). - Enter 
.some-class-namewhen prompted forCSS Selector 
CSS Attributes
Common SVG attributes used to style SVGs include:
fillandstrokestroke-width,stroke-linecapandstroke-linejoinopacity,fill-opacityandstroke-opacityfont-family,font-sizeandfont-weight
Data store
SVGs must be inlined in HTML ('.html', template, component etc.) in order to style its objects using its class or id selectors.