color-name-list 10.0.0 → 10.1.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/README.md +13 -21
- 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 +17 -1
- package/dist/colornames.bestof.yaml +13 -1
- package/dist/colornames.csv +16 -3
- 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 +58 -6
- package/dist/colornames.yaml +44 -5
- package/package.json +1 -1
- package/scripts/build.js +13 -2
- package/src/colornames.csv +16 -3
- package/scripts/findColors.js +0 -120
- package/scripts/generatePaletteName.js +0 -48
package/README.md
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
<img align="left" height="119" width="119" src="https://meodai.github.io/color-names/logo/cockatoo-fill.svg">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# Color Names
|
|
4
4
|
|
|
5
5
|
[](https://github.com/meodai/color-names/actions)
|
|
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
|
+
[](https://github.com/sponsors/meodai)
|
|
10
11
|
|
|
11
|
-
A handpicked list of
|
|
12
|
+
A handpicked list of __30013__ unique color names from
|
|
12
13
|
[various sources](#sources-) and thousands of curated user submissions.
|
|
13
14
|
|
|
14
15
|
> The names of color function like a thread attached to a frightfully slender
|
|
@@ -53,7 +54,7 @@ __[via form 🌈](https://docs.google.com/forms/d/e/1FAIpQLSfbS5D6owA4dQupJJ-6qh
|
|
|
53
54
|
|
|
54
55
|
Make sure to read the [naming rules](CONTRIBUTING.md) before you contribute!
|
|
55
56
|
|
|
56
|
-
## Color Count:
|
|
57
|
+
## Color Count: __30013__ 🎉
|
|
57
58
|
|
|
58
59
|
~__0.18%__ of the RGB color space
|
|
59
60
|
|
|
@@ -71,6 +72,9 @@ colors evenly in the color space: [Visualization](https://codepen.io/meodai/full
|
|
|
71
72
|
|
|
72
73
|
### Node.js Installation 📦
|
|
73
74
|
|
|
75
|
+
__Size Warning (1.14 MB)__: If you are doing this in the browser,
|
|
76
|
+
consider using the [public rest API](#api-)
|
|
77
|
+
|
|
74
78
|
```shell
|
|
75
79
|
npm install color-name-list --save
|
|
76
80
|
```
|
|
@@ -125,6 +129,9 @@ has no dependencies [Color-Name-API](https://github.com/meodai/color-name-api)
|
|
|
125
129
|
|
|
126
130
|
### Usage JS ⌨
|
|
127
131
|
|
|
132
|
+
__Size Warning (1.14 MB)__: If you are doing this in the browser,
|
|
133
|
+
consider using the [public rest API](#api-)
|
|
134
|
+
|
|
128
135
|
#### Exact Color
|
|
129
136
|
|
|
130
137
|
```javascript
|
|
@@ -155,11 +162,8 @@ const nearest = nearestColor.from(colors);
|
|
|
155
162
|
nearest('#f1c1d1'); // => Fairy Tale
|
|
156
163
|
```
|
|
157
164
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
__Note__: If you are looking for something visually more accurate, you could:
|
|
161
|
-
use [DeltaE], or use the above snippet, combined with a transform from rgb to
|
|
162
|
-
[ciecam02] scaled to 0-255.
|
|
165
|
+
__Note__: If you are looking for something visually more accurate, you could
|
|
166
|
+
use [DeltaE] or use the above snippet, but using [ciecam02] instead of RGB.
|
|
163
167
|
|
|
164
168
|
[DeltaE]: https://github.com/zschuessler/DeltaE
|
|
165
169
|
[ciecam02]: https://github.com/baskerville/ciecam02
|
|
@@ -207,12 +211,6 @@ See [package.json](package.json#L6) for more.
|
|
|
207
211
|
and [Nathan Kjer](https://nathankjer.com/text-generation/)
|
|
208
212
|
- [Team Fortress 2 paint colors](https://wiki.teamfortress.com/wiki/Paint_Can#Colors)
|
|
209
213
|
|
|
210
|
-
### Sources: Color 🎨
|
|
211
|
-
|
|
212
|
-
- [12-Bit & 8-Bit color palettes]
|
|
213
|
-
- [Pico-8 color palette]
|
|
214
|
-
- [Some Android Arts palettes]
|
|
215
|
-
|
|
216
214
|
## Contributors 🦑
|
|
217
215
|
|
|
218
216
|
- [meodai] Initiator, maintainer, name creator &, tooling
|
|
@@ -366,10 +364,4 @@ so that we can remove them promptly.
|
|
|
366
364
|
[Wada Sanzo's list of named colors]: https://sanzo-wada.dmbk.io/
|
|
367
365
|
[xkcd color survey list]: https://blog.xkcd.com/2010/05/03/color-survey-results/
|
|
368
366
|
|
|
369
|
-
<!-- Sources: Color -->
|
|
370
|
-
|
|
371
|
-
[12-Bit & 8-Bit color palettes]: https://en.wikipedia.org/wiki/List_of_color_palettes
|
|
372
|
-
[Pico-8 color palette]: https://www.lexaloffle.com/bbs/?tid=2101
|
|
373
|
-
[Some Android Arts palettes]: http://androidarts.com/palette/
|
|
374
|
-
|
|
375
367
|
<!-- EOF -->
|
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 1200">
|
|
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="1200"/>
|
|
13
|
+
<text x="40" y="90" fill="#ead56d">Bold Gold</text><text x="40" y="160" fill="#256d8d">Chill of the Night</text><text x="40" y="230" fill="#da244b">Cosmic Red</text><text x="40" y="300" fill="#e8c3d9">Dreamy Memory</text><text x="40" y="370" fill="#472e97">Galactic Purple</text><text x="40" y="440" fill="#eae2ac">Kiss of Lime</text><text x="40" y="510" fill="#bd474e">Ladybug</text><text x="40" y="580" fill="#4c2226">Lees</text><text x="40" y="650" fill="#d4a1b0">Lili Elbe's Pink</text><text x="40" y="720" fill="#fbf4d6">Lunar Luxury</text><text x="40" y="790" fill="#d94f9a">Nova Pink</text><text x="40" y="860" fill="#5b7349">Pineweed</text><text x="40" y="930" fill="#98d4a0">Sunlit Glade</text><text x="40" y="1000" fill="#415b36">Turf</text><text x="40" y="1070" fill="#738050">Turf War</text><text x="40" y="1140" fill="#d4afda">Whisper of Plum</text>
|
|
14
14
|
</svg>
|
|
@@ -656,6 +656,7 @@ Child of the Night,#220077
|
|
|
656
656
|
Chili Con Carne,#985e2b
|
|
657
657
|
Chili Crab,#e93a0e
|
|
658
658
|
Chili Pepper,#ac1e3a
|
|
659
|
+
Chill of the Night,#256d8d
|
|
659
660
|
Chimera,#74626d
|
|
660
661
|
China Silk,#e3d1cc
|
|
661
662
|
Chinese New Year,#ff3366
|
|
@@ -789,6 +790,7 @@ Cosmic Explorer,#551155
|
|
|
789
790
|
Cosmic Green,#30a877
|
|
790
791
|
Cosmic Heart,#9601f4
|
|
791
792
|
Cosmic Latte,#fff8e7
|
|
793
|
+
Cosmic Red,#da244b
|
|
792
794
|
Cotinga Purple,#340059
|
|
793
795
|
Cotton Ball,#f2f7fd
|
|
794
796
|
Cotton Boll,#e7effb
|
|
@@ -1422,6 +1424,7 @@ Galactic Civilization,#442288
|
|
|
1422
1424
|
Galactic Cruise,#111188
|
|
1423
1425
|
Galactic Federation,#330077
|
|
1424
1426
|
Galactic Highway,#3311bb
|
|
1427
|
+
Galactic Purple,#472e97
|
|
1425
1428
|
Galaxea,#2e305e
|
|
1426
1429
|
Galaxy Blue,#2d5284
|
|
1427
1430
|
Galaxy Express,#444499
|
|
@@ -2243,6 +2246,7 @@ Luna,#d4d8ce
|
|
|
2243
2246
|
Lunar Base,#878786
|
|
2244
2247
|
Lunar Landing,#d2cfc1
|
|
2245
2248
|
Lunar Light,#9b959c
|
|
2249
|
+
Lunar Luxury,#fbf4d6
|
|
2246
2250
|
Lunar Outpost,#828287
|
|
2247
2251
|
Lunatic Lynx,#ddaa88
|
|
2248
2252
|
Lurid Lettuce,#b4f319
|
|
@@ -3935,7 +3939,7 @@ Trumpet Gold,#e9b413
|
|
|
3935
3939
|
Tulip,#ff878d
|
|
3936
3940
|
Tuna,#46494e
|
|
3937
3941
|
Tunic Green,#00cc00
|
|
3938
|
-
Turf,#
|
|
3942
|
+
Turf,#415b36
|
|
3939
3943
|
Turf Master,#009922
|
|
3940
3944
|
Turkish Jade,#2b888d
|
|
3941
3945
|
Turquoise,#06c2ac
|