开发者社区> 镜像站> NPM> duotone-generator
duotone-generator
generate duotone atom themes with contrast checker
Last updated 4 years ago by yerkopalma .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install duotone-generator 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 1.3.0                                ...           latest (4 years ago)

8 Versions

  • 1.3.0                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (4)
Dependents (0)
None