I know Twitter's gonna annihilate the compression on this bad boy but why don't you take a look with your special eyes anyway 👀
The illustrations are styled using CSS variables to respond to a change in color theme, which I forgot about, but it turns out you can drop the hard-coded FLIP colors and just look up the current value of the CSS variable using getComputedStyle().getPropertyValue() EZ
(It's not perfect, i.e. there's some jank if you change themes while a color is actively transitioning, but it's honestly Good Enough™ for this case. I'm using gsap.set(el, {clearProps: 'all';}) after the transitions finish so they immediately revert to inheriting CSS.
Okay (maybe) last thing for this thread, but look how adorable this little theme palette selector button is 😤