color-name-list 10.18.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/.github/workflows/release.yml +1 -1
- package/CONTRIBUTING.md +3 -2
- package/README.md +8 -7
- package/changes.svg +1 -1
- package/dist/colornames.bestof.csv +14 -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 +52 -0
- package/dist/colornames.bestof.yaml +40 -1
- package/dist/colornames.csv +19 -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 +72 -0
- package/dist/colornames.yaml +55 -1
- package/dist/history.json +1 -0
- package/package.json +15 -4
- package/src/colornames.csv +20 -2
- package/.github/workflows/codeql-analysis.yml +0 -62
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 }), {});
|
|
@@ -280,6 +280,7 @@ See [package.json](package.json#L6) for more.
|
|
|
280
280
|
, [Carrion]
|
|
281
281
|
, [BlueChaos]
|
|
282
282
|
, [nachtfunke]
|
|
283
|
+
, Sean Gibbons
|
|
283
284
|
|
|
284
285
|
## Disclaimer 👮🏾
|
|
285
286
|
|
package/changes.svg
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
</style>
|
|
11
11
|
</defs>
|
|
12
12
|
<rect fill="#212121" x="0" y="0" width="600" height="430"/>
|
|
13
|
-
<text x="40" y="90" fill="#
|
|
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>
|
|
@@ -306,6 +306,7 @@ Black Panther,#424242
|
|
|
306
306
|
Black Pearl,#1e272c
|
|
307
307
|
Black Power,#654b37
|
|
308
308
|
Black Sabbath,#220022
|
|
309
|
+
Black Sea Night,#052462
|
|
309
310
|
Black Sheep,#0f0d0d
|
|
310
311
|
Black Stallion,#0e191c
|
|
311
312
|
Black Truffle,#463d3e
|
|
@@ -465,6 +466,7 @@ Bubblegum Kisses,#f092d6
|
|
|
465
466
|
Bubbles,#e7feff
|
|
466
467
|
Büchel Cherry,#aa1111
|
|
467
468
|
Buckeye,#674834
|
|
469
|
+
Buckingham Gardens,#89a068
|
|
468
470
|
Bucolic,#1b6634
|
|
469
471
|
Bud Green,#79b465
|
|
470
472
|
Buddha’s Love Handles,#ffbb33
|
|
@@ -822,6 +824,7 @@ Cotton Candy,#ffbcd9
|
|
|
822
824
|
Cotton Candy Comet,#ffc3cb
|
|
823
825
|
Cotton Candy Explosions,#dd22ff
|
|
824
826
|
Cotton Field,#f2f0e8
|
|
827
|
+
Count Chocula,#5e2d10
|
|
825
828
|
Countryside,#a4a404
|
|
826
829
|
Court-Bouillon,#cecb97
|
|
827
830
|
Couscous,#ffe29b
|
|
@@ -1174,6 +1177,7 @@ Engulfed in Light,#f5f3e9
|
|
|
1174
1177
|
Enoki,#f8faee
|
|
1175
1178
|
Enraged,#ee0044
|
|
1176
1179
|
Envy,#8ba58f
|
|
1180
|
+
Envy’s Love,#2dd78d
|
|
1177
1181
|
Eosin Pink,#ff5ec4
|
|
1178
1182
|
Ephemeral Blue,#cbd4df
|
|
1179
1183
|
Ephemeral Red,#e4cfd7
|
|
@@ -1597,6 +1601,7 @@ Goldfinger,#eebb11
|
|
|
1597
1601
|
Goldfish,#f2ad62
|
|
1598
1602
|
Goldie,#c89d3f
|
|
1599
1603
|
Goldilocks,#fff39a
|
|
1604
|
+
Goldzilla,#cdd80d
|
|
1600
1605
|
Golem,#836e59
|
|
1601
1606
|
Golf Course,#5a9e4b
|
|
1602
1607
|
Good Karma,#333c76
|
|
@@ -2023,6 +2028,7 @@ Jackpot,#d19431
|
|
|
2023
2028
|
Jacuzzi,#007cac
|
|
2024
2029
|
Jade,#00a86b
|
|
2025
2030
|
Jade Jewel,#247e81
|
|
2031
|
+
Jade Palace,#d0eed7
|
|
2026
2032
|
Jade Sea,#b8e0d0
|
|
2027
2033
|
Jaffa,#e27945
|
|
2028
2034
|
Jaguar,#29292f
|
|
@@ -2386,6 +2392,7 @@ Maize,#f4d054
|
|
|
2386
2392
|
Maizena,#fbec5e
|
|
2387
2393
|
Majestic Dune,#f3bc80
|
|
2388
2394
|
Majestic Eggplant,#443388
|
|
2395
|
+
Majestic Elk,#ad9a84
|
|
2389
2396
|
Majestic Evergreen,#7d8878
|
|
2390
2397
|
Majestic Magenta,#ee4488
|
|
2391
2398
|
Majestic Magic,#555570
|
|
@@ -3471,7 +3478,9 @@ Rosy Brown,#bc8f8f
|
|
|
3471
3478
|
Rouge,#ab1239
|
|
3472
3479
|
Rough Asphalt,#bdbebf
|
|
3473
3480
|
Royal,#0c1793
|
|
3481
|
+
Royal Blush,#f26e54
|
|
3474
3482
|
Royal Decree,#403547
|
|
3483
|
+
Royal Flush,#a0365f
|
|
3475
3484
|
Royal Goblet,#d4ca8e
|
|
3476
3485
|
Royal Lavender,#7851a9
|
|
3477
3486
|
Royal Milk Tea,#f7cfb4
|
|
@@ -3484,12 +3493,14 @@ Royal Star,#fede4f
|
|
|
3484
3493
|
Royalty,#5930a9
|
|
3485
3494
|
Rubber Ducky,#facf58
|
|
3486
3495
|
Ruby,#ca0147
|
|
3496
|
+
Ruby Fire,#f20769
|
|
3487
3497
|
Ruby Queen,#b0063d
|
|
3488
3498
|
Rubylicious,#db1459
|
|
3489
3499
|
Ruined Smores,#0f1012
|
|
3490
3500
|
Ruins of Civilization,#cadece
|
|
3491
3501
|
Ruins of Metal,#9b8b84
|
|
3492
3502
|
Rum,#716675
|
|
3503
|
+
Rum Swizzle,#f1edd4
|
|
3493
3504
|
Run Lola Run,#da2811
|
|
3494
3505
|
Rural Green,#8d844d
|
|
3495
3506
|
Rural Red,#bb1144
|
|
@@ -3884,6 +3895,7 @@ Sugar High,#efc9ec
|
|
|
3884
3895
|
Sugar Milk,#fff9f5
|
|
3885
3896
|
Sugar Mint,#c0e2c5
|
|
3886
3897
|
Sugar Quill,#ebe5d7
|
|
3898
|
+
Sugar Rush,#d85da1
|
|
3887
3899
|
Sugarwinkle,#fdc5e3
|
|
3888
3900
|
Sulfur Pit,#e5cc69
|
|
3889
3901
|
Sulfuric,#eeed56
|
|
@@ -4460,4 +4472,5 @@ Zombie,#6a755a
|
|
|
4460
4472
|
Zoodles,#b8bf71
|
|
4461
4473
|
Zucchini,#17462e
|
|
4462
4474
|
Zucchini Noodles,#c8d07f
|
|
4463
|
-
Zunda Green,#6bc026
|
|
4475
|
+
Zunda Green,#6bc026
|
|
4476
|
+
π,#314159
|