color-name-list
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "color-name-list", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "long list of color names", | ||
@@ -11,3 +11,7 @@ "main": "dist/colornames.json", | ||
"test": "node node_modules/csvdata/csvdata.js -c src/colornames.csv -d -e -x", | ||
"build": "rm -rf dist && mkdir dist && cp -av src/colornames.csv dist/colornames.csv && node node_modules/.bin/csvtojson dist/colornames.csv >> dist/colornames.json && node node_modules/.bin/json2yaml dist/colornames.json >> dist/colornames.yaml && npm run count-colors", | ||
"clean-dist-folder": "rm -rf dist && mkdir dist", | ||
"copy-csv": "cp -av src/colornames.csv dist/colornames.csv", | ||
"build-json": "node node_modules/.bin/csvtojson dist/colornames.csv >> dist/colornames.json", | ||
"build-yml": "node node_modules/.bin/json2yaml dist/colornames.json >> dist/colornames.yaml", | ||
"build": "npm run clean-dist-folder && npm run copy-csv && npm run build-json && npm run build-yml && npm run count-colors", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
@@ -14,0 +18,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# __10488__ color-names 🎨 | ||
# __10500__ color-names 🎨 | ||
[![GitHub release](https://img.shields.io/github/release/meodai/color-names.svg)](https://github.com/meodai/color-names/) | ||
@@ -7,16 +7,15 @@ [![npm version](https://img.shields.io/npm/v/color-name-list.svg)](https://www.npmjs.com/package/color-name-list) | ||
[![license](https://img.shields.io/npm/l/color-name-list.svg?colorB=ff77b4)](https://github.com/meodai/color-names/blob/master/LICENSE) | ||
[![color count](https://img.shields.io/badge/__10488__-colors-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv) | ||
[![color count](https://img.shields.io/badge/__10500__-colors-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv) | ||
A handpicked list of __10500__ unique color names from various sources and thousands of user submissions. [Try it yourself](http://codepen.io/meodai/full/mEvZRx/) or read [the full list](https://docs.google.com/spreadsheets/d/14ny2oB7g5Tof9TmKiaaDFv25XSCRt-LlBRJhIDz_3Mo/pubhtml?gid=40578722). | ||
A handpicked list of __10488__ unique color names from various sources and thousands of user submissions. [Try it yourself](http://codepen.io/meodai/full/mEvZRx/) or read [the full list](https://docs.google.com/spreadsheets/d/14ny2oB7g5Tof9TmKiaaDFv25XSCRt-LlBRJhIDz_3Mo/pubhtml?gid=40578722). | ||
> The names of color function like a thread attached to a frightfully slender needle, capable of stitching together our most delicate emotions and memories. When the needle hits the target, we feel either pleasure or emathy. **Kenya Hara – White** | ||
## Process 📋 | ||
My goal is to create a as big as possible color name list. I merged different [lists](#sources-), modified the names when they where the same but had different hex values, and I shifted the colors a bit when the same color had different names but the same value. | ||
## About 📋 | ||
The aim of this project is to create as large a list as possible of color names. We've merged various [lists](#sources-), modified the names when there were duplicates with different hex values, and shifted the colors a bit when there were identical colors with different names. | ||
## [Submit a name 🌈](https://docs.google.com/forms/d/e/1FAIpQLSfbS5D6owA4dQupJJ-6qhRzuxkjX9r2AliPMg-VR2V3NpGkQg/viewform) | ||
#### Disclaimer 👉 | ||
In the process I try to remove all names that are offensive or racist. Since some names come from other list it might happen that some slip in. [Please report them](https://github.com/meodai/color-names/issues), they will be removed as quickly as possible. | ||
### color count: __10500__ 🎉 | ||
@@ -34,2 +33,3 @@ ## Sources 🗒 | ||
- [Thailand Weekday Colors](https://en.wikipedia.org/wiki/Colors_of_the_day_in_Thailand) | ||
- [Chinese Heavenly Creatures Colors](https://en.wikipedia.org/wiki/Color_in_Chinese_culture) | ||
- Multiple Paint Brand color lists | ||
@@ -47,5 +47,23 @@ | ||
### color count: __10488__ | ||
### Experimental API 🃏 | ||
``` | ||
https://color-names.herokuapp.com/v1/{{hexvalue without the #}} | ||
``` | ||
ex: `curl `[https://color-names.herokuapp.com/v1/060606](https://color-names.herokuapp.com/v1/060606) | ||
``` | ||
{ | ||
"query":"060606", | ||
"name":"Black Metal", | ||
"hex":"#060606", | ||
"rgb":{"r":6,"g":6,"b":6}, | ||
"isExact":true | ||
} | ||
``` | ||
### Usage JS ⌨ | ||
```javascript | ||
@@ -60,2 +78,3 @@ import namedColors from 'color-name-list'; | ||
### Create a new build 🔨 | ||
``` | ||
@@ -65,5 +84,10 @@ npm install && npm run build | ||
# Contributors | ||
# Contributors 🦑 | ||
- [yxklyx](https://github.com/yxklyx/) hundreds of names!! | ||
- [Syl](https://twitter.com/Gypsy_Syl) | ||
- [Stephanie Stutz](https://www.behance.net/stephaniestutzart) | ||
#### Disclaimer ⚠️ | ||
In the process we try to remove all names that are offensive or racist. As some of the color names come from other lists, it might happen that some bad ones slip in. [Please report them](https://github.com/meodai/color-names/issues), they will be removed as quickly as possible. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1567672
13
13683
89