This is a very interesting proposal: set CSS custom properties for external docu...

@Kilian@mastodon.social

This is a very interesting proposal: set CSS custom properties for external documents through the link. So your SVGs could have an 'API':

In HTML:
<img src="image.svg#param(--accent,#F60)">

Or CSS:
img {
link-parameters: param(--accent, #F60);
}

Then in your SVG you'd use it like

<path fill="env(--accent)" ... />

drafts.csswg.org/css-link-para