Published: a month ago
Creating a Colour-picker field for Drupal
Demo/tutorial on how to create a color-picker field for a Drupal website (since color module is now deprecated).
The source code for this Localgov Microsites Colour Picker Fields module is available on GitHub.
- Create a template suggestion for the input field for the fields you want to use a colour picker with.
- Add 2 inputs to that template - text input and color input.
Here's an abridged version of the colour picker on CodePen.