closest-color-keyword

1.1.0 • Public • Published

closest-color-keyword

Returns the closest CSS color keyword based on a color value

npm install closest-color-keyword
var keyword = require('closest-color-keyword');
 
var name = keyword('#f00'); // 'red'

Options

basic

Default false

Returns a keyword from the CSS1 values for simpler names.

var name = keyword('#228b22', { basic: true });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i closest-color-keyword

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • jxnblk