color-var

0.1.10 • Public • Published

Name That Color

A command line utility that uses the library that the name that color project (http://chir.ag/projects/ntc/) and turn it to nice variable.

Install

npm install -g color-var

Usage

You use the command line utility color-var and pass in any color that can be processed by One Color.

$ color-var "#a9d91d"
or
$ color-var "a9d91d"
or
$ color-var a9d91d
or
$ color-var "#eee"
or
$ color-var "rgb(124, 96, 200)"
or
$ color-var "rgb(99%, 40%, 0%)"
or
$ color-var "hsl(120, 75%, 75%)"
or
$ color-var "hsv(220, 47%, 12%)"
or

Note that the Name That Color library does not factor in alpha channel.

Libraries Used

License

This library is released under MIT. The Name That Color library is released under the Creative Commons Attribution 2.5 Generic.

Readme

Keywords

Package Sidebar

Install

npm i color-var

Weekly Downloads

1

Version

0.1.10

License

none

Last publish

Collaborators

  • yago