Development blog about PHP, HTML & CSS and Drupal

Adding color module support to your theme in Drupal 7

Yeah!

Fuck, thank you, great work! I broke my head on it this september.

doesn't quite work

I don't understand the statement you make of "This should be an array of CSS files that you want the colour module to modify the colours"

Should I be listing a bunch of CSS files here? What would they be named?

As this is the only thing I can't figure out, I assume that is why it isn't working for me. Oh, the colors on the preview chane, but after saving the new colors and loading the web page, nothing has changed.

It should be the CSS files

It should be the CSS files that you want the color module to change the hex references in.

If you look at the Bartik or Garland theme you can see the names they have used then look at the CSS files and see that they only contain text colour and background colour references.

The colours in that file should match the base/default colour schema set in the large array. Then when you select a different colour theme, the colour module will change those hexidecimals.