https://github.com/chalarangelo/simple-color-picker
A tiny, hackable color picker component.
https://github.com/chalarangelo/simple-color-picker
Last synced: 9 months ago
JSON representation
A tiny, hackable color picker component.
- Host: GitHub
- URL: https://github.com/chalarangelo/simple-color-picker
- Owner: Chalarangelo
- License: mit
- Created: 2018-05-05T12:06:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-06T13:14:11.000Z (over 7 years ago)
- Last Synced: 2025-02-10T07:12:49.576Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple color picker
A tiny, hackable color picker component.
[](https://codepen.io/chalarangelo/pen/BxwLmL)
## Usage
1. Copy the JavaScript and CSS files from the [`/src`](/src) folder to your website or page.
2. Create a `
` element. Be sure to give it an `id`.
3. Call the `colorPickerInitialize()` method with the `id` of your `` element.
4. All set up! You can now preview any color or valid `background` value in your color picker.
## Compatibility
Should be compatible with pretty much everything. Has been tested with Bootstrap.
## License
Licensed under the [MIT License](/LICENSE).