1.3.0 • Published 7 years ago

duotone-generator v1.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

duotone-generator npm version Build Status js-standard-style

generate duotone atom themes with contrast checker

cli

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

MIT

Crafted by Yerko (@yerko_palma)

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago