Step 1: Let Skinr know you've got skins.
This process is different for themes and modules. See Directory & Hook Structure for full details and options.
In themes: Add these two lines to your theme's .info file:
skinr[api] = 2
skinr[directory] = skins
In modules: Add this code with your .module file.
<?php
/**
* Implements hook_skinr_api_VERSION().
*/
function modulename_skinr_api_2() {
return array(
'directory' => 'skins',
);
}
?>
Step 3: Write the corresponding CSS
Skinr doesn't write your CSS for you. You'll need to do this yourself. In this example we provide the CSS for the six options we defined. In the first step our skin referenced a CSS file called "colors.css." In our skin definition we specified a file named color.css. Skinr automatically assumes that this file will be located relative to your plugin directory, so Skinr will load it from sites/all/themes/mytheme/skins/styles/color.css when the style is applied.
.red { color: red; }
.orange { color: orange; }
.yellow { color: yellow; }
.green { color: green; }
.blue { color: blue; }
.violet { color: violet; }
Step 4: Enable your plug-in
Visit admin/structure/skinr/library and click the checkbox to the left of your skin to enable it.
Step 5: Locate the element you want to change
Step 6: Configure Skinr settings
Step 7: Watch your style appear
In this case, we selected option 2, which called for the class color-2. Skinr loads any CSS and JavaScipt files you've specified and the class for the option is added to the top-level <div> of the element:
<div id="block-block-1" class="block block-block color-2">
