Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

double-rainbow

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

double-rainbow

Double-rainbow allows you to transform a <select> into a nice color picker.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

double-rainbow

Double-rainbow allows you to transform a <select> into a nice color picker.

Demo

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

Install

bower

bower install --save double-rainbow

npm

npm install --save double-rainbow

Use

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

<select id="picker">
    <option value="#f44336">red</option>
    <option value="#03a9f4">blue</option>
    <option value="#ffeb3b">yellow</option>
    <option value="#ff5722">orange</option>
    <option value="#4caf50">green</option>
    <option value="#795548">brown</option>
    <option value="#607d8b">grey</option>
    <option value="#009688">turquoise</option>
    <option value="#e91e63">pink</option>
</select>

Then, instanciate double-rainbow

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.

Licence

Released under the MIT LICENSE
Developed by robinparisi @agencewebup

FAQs

Package last updated on 14 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc