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

Comments

chiggsy’s picture

Nice work!

peacetroupe’s picture

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

sime’s picture

Fixed it up. Thanks peacetroupe

sampelo’s picture

really useful
how did you generate it?
we should put it in the handbook

sime’s picture

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.

shrill’s picture

is this list somewhere else as well, or is there a new version?

sime’s picture

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

sameer’s picture

http://urbits.com/_drupal/content/20060406/drupal_article01.php returns:

No input file specified.

I'm really interested in checking out the lists. Is there anywhere else where they can be viewed?

sime’s picture

Sorry, the link shouldn't be broken for too long.

That said, this is really old analysis. The core css is now split on a per module basis, with some themes (all?) you can override specific stylesheets.