npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

really-simple-colorpicker

v1.0.1

Published

This is a very minimal, yet robust Color Picker based on jQuery.

Readme

Really Simple Color Picker

This is a very minimal, yet robust Color Picker based on jQuery.

For more details check the introductory blog post - http://laktek.com/2008/10/27/really-simple-color-picker-in-jquery/

Usage

You can either clone this repo or download the latest build as a zip from here - http://github.com/laktek/really-simple-color-picker/zipball/master

Color Picker requires jQuery 1.2.6 or higher. Make sure to load it before Color Picker (there's no other dependencies!). For default styles of the color picker load the CSS file that comes with the plugin.

  <script language="javascript" type="text/javascript" src=jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="jquery.colorPicker.min.js"/></script>

  <link rel="stylesheet" href="colorPicker.css" type="text/css" />

Add a text field to take the color input.

  <div><label for="color1">Color 1</label> <input id="color1" type="text" name="color1" value="#333399" /></div>

Then call 'colorPicker' method on the text field when document loads.

  <script language="javascript">
    jQuery(document).ready(function($) {
      $('#color1').colorPicker();
    }
  </script>

Options

There are several options you can set at the time of binding.

Selected color

Color Picker will use the value of the input field, which the picker is attached to as the selected color. If not, it will use the color passed with pickerDefault property.

  $('#color1').colorPicker({pickerDefault: "ffffff"});

Color Palette

Overrides the default color palette by passing an array of color values.

  $('#color1').colorPicker({colors: ["333333", "111111"]});

Transparency

Enable transparency value as an option.

  $('#color1').colorPicker({transparency: true});

Color Change Callback

Registers a callback that can be used to notify the calling code of a color change.

  $('#color1').colorPicker( { onColorChange : function(id, newValue) { console.log("ID: " + id + " has been changed to " + newValue); } } );

If you want to set an option gloablly (to apply for all color pickers), use:

  $.fn.colorPicker.defaults.colors = ['151337', '111111']

Default text on picker field

You can set some text to show on the picker field. For example, you could show a user's initials.

  <input id="color4" type="text" name="color4" value="#FF0000" data-text="AG" />
  $('#color4').colorPicker();

Demo

Demo can be found at http://laktek.github.com/really-simple-color-picker/demo.html

Real-world Examples

Let us know how you are using Really Simple Color Picker...

Contributors

  • Lakshan Perera - http://laktek.com
  • Daniel Lacy - http://daniellacy.com

Issues & Suggestions

Please report any bugs or feature requests here: https://github.com/laktek/really-simple-color-picker/issues