Colour picker reccomendation - Patternslib/Patterns GitHub Wiki

Colour picker

Description

A colour picker lets the user choose a colour in a visual manner. The colour can be sent to a server to be used throughout an application.

Documentation

The following markup will allow for a date picker upon click on the input field:

<input type="color" class="pat-colour-picker" />

The background colour of the input field changes along with the selected colour.

The input field is populated with a hex value as a colour is selected with the colour picker. The background colour of the input field is also updated if the user enters a valid hex value manually upon each key press.

Developer notes

Existing polyfills