Drupal CSS Analysis
sime - April 6, 2006 - 07:40
I wanted a complete list of classes and IDs in Drupal, so I did some analysis. You can find the results here:
http://urbits.com/_drupal/content/20060406/drupal_article01.php
Three reports:
- Frequency of Classes in Drupal CSS
- Frequency of IDs in Drupal CSS
- Drupal CSS Classes and IDs in Context
These three reports are what I have been looking for to develop a clean style-sheet from scratch, but you may want to download the raw data for your own analysis. It's there if you want it.
Regards
Simon

just took a quick look....
Nice work!
Thanks
Simon, thanks for sharing your time and work. This makes a very interesting read.
FYI, there is a small glitch in the display of this row of data, on the 'classes report' page:
.block-search
It looks like a tag element's ending is missing, as this displays in the 'total' column (right after the class name):
class="total"2
HTH, and thanks again.
--
http://PeaceTroupe.org
http://AccidentalTechie.org
thanks
Fixed it up. Thanks peacetroupe
handbook
really useful
how did you generate it?
we should put it in the handbook
Thanks. MS Excel. I used to
Thanks. MS Excel. I used to do a lot of data analysis, so I used some tricks.
I don't know about the handbook, maybe. I think data is getting out of date now, especially with core splitting up the css into separate files. Also the real interesting themes now are Garland/Zen which aren't represented here.
site isn't working....
is this list somewhere else as well, or is there a new version?
sorry, new link for ya
No update, it's getting pretty old but might be interesting still. Here's a link to the orginal files.
http://urbits.com/_drupal/content/20060406/drupal_article01.php