** Style Settings (http://drupal.org/project/style_settings) provides nearly identical functionality. I recommend using it instead of this project. **

CSS Template allows theme developers to add user set variables to a theme's CSS files. These variables are set by automatically generated form elements on the theme's configuration page.

The variables are added to the CSS file as comments:

#header {
  background-image:/*banner_image*/none/*banner_image*/;
  height:/*banner_image.height*/auto/*banner_image.height*/;
}

Since the variables are comments, the CSS files remain valid with the default values even if the CSS Template module is not enabled.

A Drupal theme demonstrating this module's usage can be found here: http://drupal.org/project/css_template_demo

This module currently requires the file system download method to be set to public.

This module was originally based on the Color module.

Project Information

Downloads