Add as many shades as you need where:
input_val = Hex value of the shade (color)
element_name = Human readable name of the element
input_var = Real name of the element used to store and retrieve shade
Create a file for your custom css within your theme directory
e.g. wp-content/themes/[MyTheme]/style.php
Use this file like a regular css stylesheet to store your color values
Replace color values with <?php shade(['input_var']); ?>;
e.g. background-color: #000000;
becomes:
background-color: <?php shade(‘color_a’); ?>;
Test changing the shades using ‘Custom Shades’ within the Themes menu
Custom Shades
Custom Shades is a PHP class that can be added to any theme to allow users to change a predefined colour (color) set.
Usage:
e.g. wp-content/themes/[MyTheme]/custom-shades.php
Add as many shades as you need where:
input_val = Hex value of the shade (color)
element_name = Human readable name of the element
input_var = Real name of the element used to store and retrieve shade
e.g. wp-content/themes/[MyTheme]/style.php
Use this file like a regular css stylesheet to store your color values
Replace color values with <?php shade(['input_var']); ?>;
e.g. background-color: #000000;
becomes:
background-color: <?php shade(‘color_a’); ?>;