Awesome
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. (Default: '')
--minimum, -m The minimum contrast to validate when checking. (Default: 'AA')
--username, -u Github username. Add it if you want to also update the docs in the cloned theme
Examples
duo gen
duo gen 22
duo gen 22 300
duo gen 22 300 --name duotone-awesome-theme
duo check 22 300
duo check 22 300 -m AAA
License
Crafted by Yerko (@yerko_palma)