Referring to Ant Design
, enter a primary color to generate color steps.
Docs are available at here
$ sudo npm install color-generate -g
$ yarn add color-generate
$ npm install color-generate
-
unpkg
https://unpkg.com/color-generate/dist/color-generate.umd.js
https://unpkg.com/color-generate/dist/color-generate.es.js
-
jsdelivr
https://cdn.jsdelivr.net/npm/color-generate/dist/color-generate.umd.js
https://cdn.jsdelivr.net/npm/color-generate/dist/color-generate.es.js
# help
$ color-generate -h
# just print color
$ color-generate g -c 099dfd
# generate file Sass/Less
$ color-generate g -c 099dfd -f
$ import { generate } from 'color-generate'
<script src="https://cdn.jsdelivr.net/npm/color-generate/dist/color-generate.umd.js"></script>
<script>
// window mounts the `ColorGenerate`
console.log("colors", ColorGenerate('#099dfd'));
</script>