Choose a color from a selection of admin defined colors
To install Color Swatches, follow these steps:
colorswatches
directory into your craft/plugins
directorycolorswatches
for Craft to see it. GitHub recently started appending -master
(the branch name) to the name of the folder for zip file downloads.Color Swatches works on Craft 2.4.x and Craft 2.5.x.
Instead of providing a user a full color picker, Color Swatches gives an admin the ability to provide a selection of colors for a user to choose from.
Create a Color Swatches field and provide label and hex value options.
You can access both the label and color in your template. By default, the label will display:
{{ fieldName }}
{{ fieldName.label }}
{{ fieldName.color }}