Skip to content

timcooper/bolt-extension-colourspectrum

Repository files navigation

ColourSpectrum Extension for Bolt CMS

Adds an advanced (eyedropper, presets etc.) colourpicker field type powered by Spectrum

Example

Usage

contenttypes.yml:

color:
    type: colourspectrum

Options and Examples

All Spectrum options are available via an options key in your content type config:

color:
    type: colourspectrum
    options:
        color: "yellow"
        showInput: true
        showButtons: false

Example2

color:
    label: "Select a colour"
    type: colourspectrum
    options:
        showInput: true
        showButtons: false
        showPalette: true
        palette: [ ['black', 'white', 'aquamarine'] ]

Example3

color:
    label: "Select a colour"
    type: colourspectrum
    options:
        showInput: true
        showButtons: false
        showInitial: true
        showPalette: true
        allowEmpty: true

Example4

About

Bolt CMS extension to add an advanced colourpicker field type using Spectrum (https://bgrins.github.io/spectrum/)

Resources

Stars

Watchers

Forks

Packages

No packages published