UnCSS

UnCSS is a tool that removes unused CSS from your stylesheets. It works across multiple files and supports Javascript-injected CSS.

The key things is that you can give a list of HTML pages to UnCSS and it will only remove CSS rules that aren’t present in any of them.