color-name-list 10.19.0 → 10.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +3 -2
- package/README.md +7 -7
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +5 -1
- package/dist/colornames.bestof.esm.js +1 -1
- package/dist/colornames.bestof.esm.mjs +1 -1
- package/dist/colornames.bestof.html +1 -1
- package/dist/colornames.bestof.json +1 -1
- package/dist/colornames.bestof.min.json +1 -1
- package/dist/colornames.bestof.scss +1 -1
- package/dist/colornames.bestof.umd.js +1 -1
- package/dist/colornames.bestof.xml +16 -0
- package/dist/colornames.bestof.yaml +13 -1
- package/dist/colornames.csv +5 -1
- package/dist/colornames.esm.js +1 -1
- package/dist/colornames.esm.mjs +1 -1
- package/dist/colornames.html +1 -1
- package/dist/colornames.json +1 -1
- package/dist/colornames.min.json +1 -1
- package/dist/colornames.scss +1 -1
- package/dist/colornames.umd.js +1 -1
- package/dist/colornames.xml +16 -0
- package/dist/colornames.yaml +13 -1
- package/dist/history.json +1 -5
- package/package.json +12 -2
- package/src/colornames.csv +6 -2
package/CONTRIBUTING.md
CHANGED
|
@@ -31,6 +31,7 @@ interactions with the project.
|
|
|
31
31
|
- Capitalize colors: `Kind of Orange`
|
|
32
32
|
- Prefer common names, especially when adding colors of flora and fauna
|
|
33
33
|
(plants and animals ;) ) ex. `Venus Slipper Orchid` instead of `Paphiopedilum`.
|
|
34
|
+
- Avoid ethnic & racial assumptions
|
|
34
35
|
|
|
35
36
|
## Git
|
|
36
37
|
|
|
@@ -38,9 +39,9 @@ interactions with the project.
|
|
|
38
39
|
can run `npx cz` or `npm run commit` instead of `git commit -m`, or make sure
|
|
39
40
|
to follow [conventional changelog naming rules].
|
|
40
41
|
- Write your commit messages in imperative form:
|
|
41
|
-
**feat(colors):
|
|
42
|
+
**feat(colors): Add fantastic new colors names.** rather then
|
|
42
43
|
feat(colors): Added new names.
|
|
43
|
-
- Make sure to run `npm run build` before
|
|
44
|
+
- Make sure to run `npm run build` before committing. (No need to `npm ci` the
|
|
44
45
|
dependencies are only needed if you need to run the API)
|
|
45
46
|
|
|
46
47
|
### Attribution
|
package/README.md
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
[](https://github.com/meodai/color-names/)
|
|
7
7
|
[](https://www.npmjs.com/package/color-name-list)
|
|
8
8
|
[](https://www.npmjs.com/package/color-name-list)
|
|
9
|
-
[](https://github.com/meodai/color-names/blob/master/src/colornames.csv)
|
|
10
10
|
[](https://github.com/sponsors/meodai)
|
|
11
11
|
|
|
12
|
-
A handpicked list of
|
|
12
|
+
A handpicked list of __30245__ unique color names from
|
|
13
13
|
[various sources](#sources-) and thousands of curated user submissions.
|
|
14
14
|
|
|
15
15
|
> The names of color function like a thread attached to a frightfully slender
|
|
@@ -54,7 +54,7 @@ __[via form 🌈](https://docs.google.com/forms/d/e/1FAIpQLSfbS5D6owA4dQupJJ-6qh
|
|
|
54
54
|
|
|
55
55
|
Make sure to read the [naming rules](CONTRIBUTING.md) before you contribute!
|
|
56
56
|
|
|
57
|
-
## Color Count:
|
|
57
|
+
## Color Count: __30245__ 🎉
|
|
58
58
|
|
|
59
59
|
~__0.18%__ of the RGB color space
|
|
60
60
|
|
|
@@ -135,12 +135,12 @@ consider using the [public rest API](#api-)
|
|
|
135
135
|
#### Exact Color
|
|
136
136
|
|
|
137
137
|
```javascript
|
|
138
|
-
import
|
|
138
|
+
import { colorNameList } from 'color-name-list';
|
|
139
139
|
|
|
140
|
-
let someColor =
|
|
140
|
+
let someColor = colorNameList.find(color => color.hex === '#ffffff');
|
|
141
141
|
console.log(someColor.name); // => white
|
|
142
142
|
|
|
143
|
-
let someNamedColor =
|
|
143
|
+
let someNamedColor = colorNameList.find(color => color.name === 'Eigengrau')
|
|
144
144
|
console.log(someColor.hex); // => #16161d
|
|
145
145
|
```
|
|
146
146
|
|
|
@@ -151,7 +151,7 @@ Since there are 16777216 possible RGB colors, you might use a library such as
|
|
|
151
151
|
|
|
152
152
|
```js
|
|
153
153
|
import nearestColor from 'nearest-color';
|
|
154
|
-
import colorNameList from 'color-name-list';
|
|
154
|
+
import { colorNameList } from 'color-name-list';
|
|
155
155
|
|
|
156
156
|
// nearestColor need objects {name => hex} as input
|
|
157
157
|
const colors = colorNameList.reduce((o, { name, hex }) => Object.assign(o, { [name]: hex }), {});
|
package/changes.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 430">
|
|
2
2
|
<defs>
|
|
3
3
|
<style type="text/css">
|
|
4
4
|
@import url('https://rsms.me/inter/inter.css');
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
}
|
|
10
10
|
</style>
|
|
11
11
|
</defs>
|
|
12
|
-
<rect fill="#212121" x="0" y="0" width="600" height="
|
|
13
|
-
<text x="40" y="90" fill="#
|
|
12
|
+
<rect fill="#212121" x="0" y="0" width="600" height="430"/>
|
|
13
|
+
<text x="40" y="90" fill="#5e2d10">Count Chocula</text><text x="40" y="160" fill="#e97b3e">Salsa Sizzle</text><text x="40" y="230" fill="#d85da1">Sugar Rush</text><text x="40" y="300" fill="#e6e1d9">Zürich White</text><text x="40" y="370" fill="#314159">π</text>
|
|
14
14
|
</svg>
|
|
@@ -824,6 +824,7 @@ Cotton Candy,#ffbcd9
|
|
|
824
824
|
Cotton Candy Comet,#ffc3cb
|
|
825
825
|
Cotton Candy Explosions,#dd22ff
|
|
826
826
|
Cotton Field,#f2f0e8
|
|
827
|
+
Count Chocula,#5e2d10
|
|
827
828
|
Countryside,#a4a404
|
|
828
829
|
Court-Bouillon,#cecb97
|
|
829
830
|
Couscous,#ffe29b
|
|
@@ -3499,6 +3500,7 @@ Ruined Smores,#0f1012
|
|
|
3499
3500
|
Ruins of Civilization,#cadece
|
|
3500
3501
|
Ruins of Metal,#9b8b84
|
|
3501
3502
|
Rum,#716675
|
|
3503
|
+
Rum Swizzle,#f1edd4
|
|
3502
3504
|
Run Lola Run,#da2811
|
|
3503
3505
|
Rural Green,#8d844d
|
|
3504
3506
|
Rural Red,#bb1144
|
|
@@ -3893,6 +3895,7 @@ Sugar High,#efc9ec
|
|
|
3893
3895
|
Sugar Milk,#fff9f5
|
|
3894
3896
|
Sugar Mint,#c0e2c5
|
|
3895
3897
|
Sugar Quill,#ebe5d7
|
|
3898
|
+
Sugar Rush,#d85da1
|
|
3896
3899
|
Sugarwinkle,#fdc5e3
|
|
3897
3900
|
Sulfur Pit,#e5cc69
|
|
3898
3901
|
Sulfuric,#eeed56
|
|
@@ -4469,4 +4472,5 @@ Zombie,#6a755a
|
|
|
4469
4472
|
Zoodles,#b8bf71
|
|
4470
4473
|
Zucchini,#17462e
|
|
4471
4474
|
Zucchini Noodles,#c8d07f
|
|
4472
|
-
Zunda Green,#6bc026
|
|
4475
|
+
Zunda Green,#6bc026
|
|
4476
|
+
π,#314159
|