duotone-generator
generate duotone atom themes with contrast checker
Installation
npm install --save duotone-generator
Usage
Check two hues
$ duo check 20 190
If contrast is good between each color and the background (according to WCAG) it will ask if you want to generate a theme.
Generate a theme
$ duo gen 99 210
It generate the theme withouth checking contrast.
CLI
$ duo --help Usage duo <command> [<hue> <hue>] Commands check Check the contrast between the main two colors generated by two hues gen Generate a duotone theme. If one or the two hues are omited it automatically generate the rest Options --name, -n The name of your theme. --minimum, -m The minimum contrast to validate when checking. --username, -u Github username. Add it
License
Crafted by Yerko (@yerko_palma)