<p>At the moment there is no better solution for this. You could write a plugin that defines a new fieldtype.</p>

CC BY-SA 3.0
2017-10-16T12:59:54.510Z
There are now a couple of plugins - Spectrum mentioned below, and [Hue](https://github.com/TopShelfCraft/Hue)
Marion Newlevant
CC BY-SA 3.0
2015-08-19T16:48:31.900Z
2015-08-19T16:48:31.900Z
Marion Newlevant
<p>I just put together a fieldtype using the jQuery colour picker <a href="https://bgrins.github.io/spectrum/" rel="nofollow noreferrer">Spectrum</a></p>

<p><a href="https://i.sstatic.net/cJCzU.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cJCzU.jpg" alt="enter image description here"></a></p>

<p>It supports selecting no color and outputs a HEX of the colour, if chosen :)</p>

<p><a href="https://github.com/alecritson/craft-spectrum-fieldtype" rel="nofollow noreferrer">Get the fieldtype on Github</a></p>

CC BY-SA 3.0
2015-08-20T11:04:11.453Z
2015-08-20T11:25:33.893Z
2015-08-20T11:25:33.893Z
Alec Ritson
<p>I want let the editor to choose an optional color via the color picker, but this didn't have the option 'no color' (or transparent).</p>

<p>Is there a solution to this? I use it a lot and have always to add a boolean switch so the editor can switch it on and off, but that's not the best way to do this.</p>

<matrix><fieldtypes>
Color Picker with "no color" option?
# Color Picker with "no color" option?

(Asked by: username_0 on 2015-08-19)

I want let the editor to choose an optional color via the color picker, but this didn't have the option 'no color' (or transparent).

Is there a solution to this? I use it a lot and have always to add a boolean switch so the editor can switch it on and off, but that's not the best way to do this.

**Tags:** matrix, fieldtypes


---

## 2 answers

### Answer by username_1 on 2015-08-19. Score: 2

At the moment there is no better solution for this. You could write a plugin that defines a new fieldtype.

> **Comments:**
> **username_1**: There are now a couple of plugins - Spectrum mentioned below, and [Hue](https://github.com/TopShelfCraft/Hue)  

---

### Answer by username_2 on 2015-08-20. Score: 0

I just put together a fieldtype using the jQuery colour picker [Spectrum](https://bgrins.github.io/spectrum/)

[![enter image description here](https://i.sstatic.net/cJCzU.jpg)](https://i.sstatic.net/cJCzU.jpg)

It supports selecting no color and outputs a HEX of the colour, if chosen :)

[Get the fieldtype on Github](https://github.com/alecritson/craft-spectrum-fieldtype)


---

