color-name-list 10.19.0 β 10.20.1
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 +7 -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 +24 -0
- package/dist/colornames.bestof.yaml +19 -1
- package/dist/colornames.csv +8 -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 +28 -8
- package/dist/colornames.yaml +22 -7
- package/dist/history.json +1 -5
- package/package.json +12 -2
- package/src/colornames.csv +10 -5
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 __30246__ 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: __30246__ π
|
|
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 290">
|
|
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="290"/>
|
|
13
|
+
<text x="40" y="90" fill="#d9b1d6">Blushing Sky</text><text x="40" y="160" fill="#eacad0">Pink Slipper</text><text x="40" y="230" fill="#edb9bd">Seashell Froth</text>
|
|
14
14
|
</svg>
|
|
@@ -166,6 +166,7 @@ Bakery Brown,#ab9078
|
|
|
166
166
|
Baklava,#efb435
|
|
167
167
|
Ballerina,#f2cfdc
|
|
168
168
|
Ballet,#f7d5d4
|
|
169
|
+
Ballet Slippers,#fca2ad
|
|
169
170
|
Balsamico,#130d07
|
|
170
171
|
Baltic,#279d9f
|
|
171
172
|
Baltic Amber,#fbb782
|
|
@@ -383,6 +384,7 @@ Blush Rush,#f0bcbe
|
|
|
383
384
|
Blushing Cinnamon,#ffbf99
|
|
384
385
|
Blushing Coconut,#ebd5ca
|
|
385
386
|
Blushing Rose,#e09b81
|
|
387
|
+
Blushing Sky,#d9b1d6
|
|
386
388
|
Blustering Blue,#4411ff
|
|
387
389
|
Boa,#7f7755
|
|
388
390
|
Bohemian Blue,#0000aa
|
|
@@ -824,6 +826,7 @@ Cotton Candy,#ffbcd9
|
|
|
824
826
|
Cotton Candy Comet,#ffc3cb
|
|
825
827
|
Cotton Candy Explosions,#dd22ff
|
|
826
828
|
Cotton Field,#f2f0e8
|
|
829
|
+
Count Chocula,#5e2d10
|
|
827
830
|
Countryside,#a4a404
|
|
828
831
|
Court-Bouillon,#cecb97
|
|
829
832
|
Couscous,#ffe29b
|
|
@@ -3499,6 +3502,7 @@ Ruined Smores,#0f1012
|
|
|
3499
3502
|
Ruins of Civilization,#cadece
|
|
3500
3503
|
Ruins of Metal,#9b8b84
|
|
3501
3504
|
Rum,#716675
|
|
3505
|
+
Rum Swizzle,#f1edd4
|
|
3502
3506
|
Run Lola Run,#da2811
|
|
3503
3507
|
Rural Green,#8d844d
|
|
3504
3508
|
Rural Red,#bb1144
|
|
@@ -3893,6 +3897,7 @@ Sugar High,#efc9ec
|
|
|
3893
3897
|
Sugar Milk,#fff9f5
|
|
3894
3898
|
Sugar Mint,#c0e2c5
|
|
3895
3899
|
Sugar Quill,#ebe5d7
|
|
3900
|
+
Sugar Rush,#d85da1
|
|
3896
3901
|
Sugarwinkle,#fdc5e3
|
|
3897
3902
|
Sulfur Pit,#e5cc69
|
|
3898
3903
|
Sulfuric,#eeed56
|
|
@@ -4469,4 +4474,5 @@ Zombie,#6a755a
|
|
|
4469
4474
|
Zoodles,#b8bf71
|
|
4470
4475
|
Zucchini,#17462e
|
|
4471
4476
|
Zucchini Noodles,#c8d07f
|
|
4472
|
-
Zunda Green,#6bc026
|
|
4477
|
+
Zunda Green,#6bc026
|
|
4478
|
+
Ο,#314159
|