Adds an advanced (eyedropper, presets etc.) colourpicker field type powered by Spectrum
contenttypes.yml:
color:
type: colourspectrum
All Spectrum options are available via an options key in your content type config:
color:
type: colourspectrum
options:
color: "yellow"
showInput: true
showButtons: false
color:
label: "Select a colour"
type: colourspectrum
options:
showInput: true
showButtons: false
showPalette: true
palette: [ ['black', 'white', 'aquamarine'] ]
color:
label: "Select a colour"
type: colourspectrum
options:
showInput: true
showButtons: false
showInitial: true
showPalette: true
allowEmpty: true