Color pickr
OverviewOfficial Website
Colorpickr: Flat, simple, multi-themed, responsive and hackable Color-Picker library.
CSS
<!-- One of the following themes -->
<link rel="stylesheet" href="{{url_for('static' ,filename='libs/@simonwep/pickr/dist/themes/classic.min.css')}}"/> <!-- 'classic' theme -->
<link rel="stylesheet" href="{{url_for('static' ,filename='libs/@simonwep/pickr/dist/themes/monolith.min.css')}}"/> <!-- 'monolith' theme -->
<link rel="stylesheet" href="{{url_for('static' ,filename='libs/@simonwep/pickr/dist/themes/nano.min.css')}}"/> <!-- 'nano' theme -->
Javascript
<!-- Modern colorpicker bundle -->
<script src="{{url_for('static' ,filename='libs/@simonwep/pickr/dist/pickr.min.js')}}"></script>
Initjs (Custom js)
<!-- color pickr init js -->
<script src="{{url_for('static' ,filename='js/pages/form-pickers.init.js')}}"></script>
Add Package
yarn add @simonwep/pickr --save
Remove Package
yarn remove @simonwep/pickr or you can remove package by removing specific package from package.json
Colorpickr Examples
Title | Javascript |
---|---|
Classic Demo |
|
Monolith Demo |
|
Nano Demo |
|
Options Demo |
|
Picker with Opacity & Hue |
|
Switches |
|
Picker with Input |
|
Color Format |
|