Any reason this wouldn’t quickly solve the dark mode issue instead?

filter: invert(100%) hue-rotate(180deg);