SmallColorPicker is a library which allows you to create a minimalistic color picker with jQuery. Also it contains CSS styles for color selection buttons.
Here's it:
Buttons are in separate CSS file, color-buttons.css (or LESS version); this CSS has no dependencies and can be used standalone.
color-btn-vertical
color-btn-horizontal
color-btn-left
color-btn-square
color-btn-circle
color-btn-right
<div class="color-btn color-btn-left"><b style="background-color: #ff66bd;"></b>text</div>
color-btn-fixed
if you don't want a button to change its size by content.
Fixed-size buttons are designed to match colors in hex-triplet web color format (e.g. #6d1f7a
).
Download the library, include CSS and JS files and write some initialization code (refer to readme for available options and methods).
SmallColorPicker makes use of CSS3 features. Supported browsers are Chrome, Safari, Firefox, Opera, IE≥9. Buttons can be used in all browsers.
SmallColorPicker is licensed under MIT. If you find it helpful, you can use it as you wish, no attribution is required.
You can download SmallColorPicker compressed production version here or go to GitHub repository with full source code (you will also find build instructions there).
Website background by Subtle Patterns.