An open API service indexing awesome lists of open source software.

https://github.com/agence-webup/double-rainbow

A simple and lightweight color picker
https://github.com/agence-webup/double-rainbow

color-picker json picker vanilla

Last synced: 11 months ago
JSON representation

A simple and lightweight color picker

Awesome Lists containing this project

README

          

# double-rainbow

Double-rainbow allows you to transform a `````` into a nice color picker.

## Demo

[https://agence-webup.github.io/double-rainbow/](https://agence-webup.github.io/double-rainbow/)

## Install

### bower
```shell
bower install --save double-rainbow
```

### npm
```shell
npm install --save double-rainbow
```

## Use

Just add a simple select with supported values for colors (option text is used for color title)

```js

red
blue
yellow
orange
green
brown
grey
turquoise
pink

```

Then, instanciate double-rainbow
```js
let picker = new DoubleRainbow('#picker').init();
```

The select will be replaced by the picker.

That's all!

## Styling

Double-rainbow is fully customizable via CSS. Feel free to be inspired by the [default style](https://github.com/agence-webup/double-rainbow/blob/master/src/double-rainbow.css).

## Licence
Released under the [MIT LICENSE](http://opensource.org/licenses/MIT)
Developed by [robinparisi](https://github.com/robinparisi/) [@agencewebup](https://github.com/agence-webup)