The Color module allows users with the Administer site configuration permission to quickly and easily change the color scheme of themes that have been built to be compatible with it.
In order for color module to work, a theme must be specifically designed to use the color changing features. The Drupal 6 default theme, Garland, and the Drupal 7 default theme, Bartik, were both designed to take advantage of this module.
Using the Color module allows you to easily change the color of links, backgrounds, text, and other theme elements
The Color module comes enabled in the Drupal 7 standard profile. You will have to enable the module if you are using Drupal 6 or the Drupal 7 minimal profile.
After enabling the Color module, navigate to your theme's configuration page (in Drupal 7, Administration > Appearance or
http://example.com/admin/appearance) and click "Settings" for your theme. This will display the color picker tool which will allow you to modify the theme's color settings.
To change the color settings for a compatible theme, select the Settings link for your theme on the Themes administration page. If you don't see a color picker on that page, then your theme is not compatible with the color module. If you are sure that the theme does indeed support the color module, but the color picker does not appear, then follow these troubleshooting procedures.
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. This step is required because the module stylesheets (in the files directory) need to be recreated to include your changes.
More about Color module:
Note: Color module requires your file download method to be set to public - for different configurations, see the section below.
Advanced usage with downloads set to private
If you want to use color.module in conjunction with the "private" download method, then there are a couple of options:
- Configure your theme colors on a test site and copy the resulting files (look in the
/colorfolder in the "files" folder) to a named subfolder of the main theme, thus creating a CSS-only theme (see Theming overview).
- 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 changing the download method will modify all download paths and may cause unexpected problems on an existing site.