Inspired by vue-color.
Eye Dropper for Chrome with RegularJS.
$ npm install regular-color
- CommonJS
var color = require('regular-color');
- Global
Include the link and the script in the browser:
<!-- css -->
<link rel="stylesheet" href="//unpkg.com/regular-color/dist/color.min.css">
<!-- RegularJS -->
<script src="https://rawgit.com/regularjs/regular/master/dist/regular.js"></script>
<!-- the eyedropper component -->
<script src="//unpkg.com/regular-color/dist/color.min.js"></script>
# css
//unpkg.com/regular-color/dist/color.min.css
# js
//unpkg.com/regular-color/dist/color.min.js
# or
//unpkg.com/regular-color/dist/color.total.js
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run startdev
# build for production with minification
npm run build
MIT