CSS Rule Frequency/Element Styling discovery tool

I’m in the process of migrating a number of sites over to a new platform. The sites have to be near identical to the current live sites.

I am looking for a tool that will scrape the css files of selected pages to discover the use frequency of the rules and to find the most common styling for each of the most common elements/html tags.

Does anyone know of such a tool?

Thanks!

I can see the usefulness of a tool that can identify redundant CSS, but not what is “most common”, as some little used rules may play an important role.

Something like the Firefox Dust-Me Selectors add-on may be worth trying.

Hi Welcome to Sitepoint :slight_smile:

Dust me selectors was useful for finding unused rules but doesn’t seem to have been updated to work with the latest Firefox so you may need to install an old Firefox version to use it.

There is also a redundancy checker [URL=“http://infovore.org/archives/2007/07/06/the-css-redundancy-checker/”]here.

You may find some other useful tools here.