Using a monocolor SVG as a site logo via ‘Logo, Image, SVG or Icon’ Element.
Further define a color in a CPT via Meta Box.
Using this (different) color for the SVG logo on different pages.
We´re already using a similar technique for all the colors via ‘Style → Attributes → style → color: {mb_projekt_color-text}’. With this every CPT / Project has a different (external / customer defined) color-scheme.
There is a ‘style: fill’ operation - but it don´t seem to work ‘that easy’.
you can use the code element instead of the Logo or SVG Element to make the fill color dynamic. Please check out this screen recording: https://vimeo.com/690163577/2b27ad15db
Actually the way is not set - because we also need an animation on the SVG triggered by scrolling + the dynamic color. I will put it all together when the animation part is done.
For Your solution I was thinking… would it also be possible to overwrite the original SVG code (file) with the dynamic ‘fill’ code and upload it!? It´s not better then Your solution but would be curious if this works.