UnCSS: Remove unused styles from CSS
Have used tools like this before, and invariably end up accidentally stripping styles from an <insert JS UI lib>  component with a dynamically assigned className or something equally silly.<p>It's such a hard problem to solve and the Stylesheet Snowball is one of the most frustrating pieces of technical debt a large site can pick up.<p>It makes me wonder if scoped CSS modules, despite fundamentally breaking CSS  with their hyper specific hybrid BEM-class-ids might be the best preemptive solution even when you're not scaling up to massive SPAs.<p>Edit. Meant CSS modules, wrote CSS components. I am not a clever man.