CSS Stats
cssstats.com
cssstats.com
[1] https://github.com/katiefenn/parker
[2] https://github.com/t32k/stylestats
[3] https://speakerdeck.com/bleikamp/sass-at-github?slide=68
I found their github[1] and ran it locally. Worked perfectly.
It is really interesting to see the variance, btw. Twitter, KickStarter and Bootstrap running at thousands of rules, Google and Wikipedia at under 200. And a whole bunch in the 500-1000 range, such as Facebook, Amazon and Mozilla. I'm actually surprised at the relatively low rule-count for Facebook and Amazon as both those sites always gave me the impression (perhaps mistakenly) of having more CSS rules than I could read in a lifetime. Conversely, Github and Stack Overflow have more rules than I would have expected.
I guess that just goes to show that CSS complexity and visual clutter do not necessarily correlate.
Amazon is definitely impressive though!
(As are Stripe, Apple, and Airbnb, in basically that order.)
It still has some issues with style detection (as noticed in other comments), but once that gets fixed, I'll be sure to check back :) Nice project!
It almost seems like an on boarding tool for 3rd party CSS but you can't construct or derive style rules from any of the presented formats, just raw colors/sizes.
The charts and metrics all seem superfluous.
Because CSS rules are applied by specificity (http://specificity.keegan.st/) first and source order second, any property overwrites later in the document require equal or greater specificity than rules in the middle. A chart with a mountain in the middle today will probably develop more mountains on the right over time - it's a leading indicator of poor maintainability. Pairing this tool with one that tells you the line number of offenders would help in identifying areas in need of refactor.
Total vs Unique declarations reveals opportunities for reusable OOCSS-type classes (which itself can be difficult to do in a stylesheet full of specificity mountains).
The colors aren't terribly useful without a histogram and some of the other stats do seem a bit superfluous, but they may just need someone more experienced than I to draw the right conclusions.
http://github.com/mrmrs/cssstats/issues
Thanks!
http://cssstats.com/stats?url=http%3A%2F%2Ffacebook.com&name...