I have created a really simple SVG image, logo.svg
, containing just a single path with a blue fill and a white stroke.
The issue is that I need to style it differently depending on where I use it on the website:
- Place 1: Apply drop shadow
- Place 2: Change fill color
- Place 3: Change stroke color
- Place 4: Change stroke width
- and perhaps more in the future...
What's the best practice in this scenario? Do I need to create multiple files for all kind of "presentations" of my SVG image?
If I have to create multiple files, can I define the path in a single place, so if I need to adjust it in the future I won't have to do it in a gazillion places?