Color: Allows the user to change the color scheme of certain themes

Last modified: November 30, 2009 - 00:55

Color module allows a site administrator to quickly and easily change the color scheme of the site, with the exception of the background, which stays white. In order for color module to work however, a theme must be specifically designed to use the color changing features. The default theme, Garland, (as well as its fixed width counterpart, Minnelli) was designed to take advantage of these features. With color module, you can easily change the color of links, the header, text, and more depending on which color module enabled theme you are using. Color module requires your file download method to be set to public. You enable colour module by logging into administration

It is important to remember that color module saves a modified copy of the theme's style.css file in the files directory, and includes it after the theme's original style.css. This means that if you make any manual changes to your theme's style.css file, you must save your color settings again, even if they haven't changed. This causes the color module generated version of style.css in the files directory to be recreated using the new version of the original file.

More about color module:

How to use the color module!

If you have enabled the Color module but don't know where to find the "color picker" (which is what you need to find in order to use the module) then go to your theme's configuration page (i.e. hit the "configure" link for the relevant theme at admin/build/themes). If you don't see the color picker then use the troubleshooting link above (this actually takes you to a page titled "Color picker doesn't appear on theme configuration page").

Don't forget also that the color picker will only be visible if the theme actually supports color.module.

For advanced users
If you want to use color.module in conjunction with the "private" download method then there are a couple of options:

1. Configure your theme colors on a test site and copy the resulting files (look in the color/ folder in the "files" folder) to a named subfolder of the main theme, thus creating a CSS-only theme (see http://drupal.org/node/11774).
2. If the contents of your "files" directory are actually accessible directly via HTTP (which will actually be the case with the "private" download method unless you have either set up the "files" directory outside your web root or added additional directives to the default .htaccess file that Drupal creates in the "files" folder so as to prevent such access) then you may be able to switch to "public" download method temporarily while you configure the color scheme, switching back to "private" afterwards. Be aware that switching the download method in this way may cause problems on a live site; see also the warning on the admin/settings/file-system page.

Trying to learn Color

rkbreneman - August 22, 2009 - 12:38

I am not sure if I am doing something wrong or if anyone can help me. I am not a programmer but bumping along in my knowledge of css. The problem I am running into is that when I try to create sub themes it seems that they don't color very well once saved.

I am trying to build a few color specific sub themes under Pixture Reloaded for my site. The issue is when I create a appropriate sub theme and rename the .info file and the folder to something other than Pixture Reloaded and save it with a new color scheme, I go to switch theme under user settings and I get a discolored original Pixture Reloaded theme. In my sites/default/files I have a new CSS file saved as well as a new color file. It seems that all the files are correct inside...what is happening? I do not want to alter Pixture Reloaded- only want to create sub themes with different colors. I want to make a color switch painlessly easy for the users.

 
 

Drupal is a registered trademark of Dries Buytaert.