colour-contrast-cli

1.1.2 • Public • Published

Colour Contrast Checker CLI

Command line tool to check the contrast between two colours against WCAG standards

Install

npm install -g colour-contrast-cli
# or
yarn add --global colour-contrast-cli

Usage

Usage
  $ contrast black white

Options
  --ratio, -r Show only contrast ratio
  --grades, -g Show only WCAG grades

Examples
  $ contrast black white
  $ contrast '#000000' '#ffffff'
  $ contrast  0,0,0 255,255,255

Example Output

Example output of Colour Contrast Checker CLI

Related projects

Package Sidebar

Install

npm i colour-contrast-cli

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

88.9 kB

Total Files

19

Last publish

Collaborators

  • pushedskydiver