I built a thing: A MutationObserver for CSS, powered by CSS Transitions and `transition-behavior: allow-discrete`.
https://github.com/bramus/style-observer
You can use this to track changes in any CSS Property, including Custom Properties (except in Chrome bc it has an `allow-discrete` bug 😭)
@bramus ;)