A handy approach here! It'd be useful if browsers had a queryable value for the colour of the UI too so developers could serve an appropriate favicon.

https://pawelgrzybek.com/svg-favicons-that-respect-theme-preference/