I also accepted the inverted/standout mode, and that was actually the only slightly tricky part due to my very limited knowledge of modern CSS: in the end, I just settled on generating additional 32 classes for the inverted mode specifically. It probably could be done with CSS's local variables more elegantly, but eh.