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 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): Adds fantastic new colors names.** rather then
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 commiting. (No need to `npm ci` the
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
  [![GitHub release](https://img.shields.io/github/release/meodai/color-names.svg)](https://github.com/meodai/color-names/)
7
7
  [![npm version](https://img.shields.io/npm/v/color-name-list.svg)](https://www.npmjs.com/package/color-name-list)
8
8
  [![npm](https://img.shields.io/npm/dt/color-name-list.svg)](https://www.npmjs.com/package/color-name-list)
9
- [![name count](https://img.shields.io/badge/__30241__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv)
9
+ [![name count](https://img.shields.io/badge/__30245__-names-orange.svg)](https://github.com/meodai/color-names/blob/master/src/colornames.csv)
10
10
  [![github sponsor count](https://img.shields.io/github/sponsors/meodai)](https://github.com/sponsors/meodai)
11
11
 
12
- A handpicked list of __30241__ unique color names from
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: __30241__ 🎉
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 namedColors from 'color-name-list';
138
+ import { colorNameList } from 'color-name-list';
139
139
 
140
- let someColor = namedColors.find(color => color.hex === '#ffffff');
140
+ let someColor = colorNameList.find(color => color.hex === '#ffffff');
141
141
  console.log(someColor.name); // => white
142
142
 
143
- let someNamedColor = namedColors.find(color => color.name === 'Eigengrau')
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 1060">
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="1060"/>
13
- <text x="40" y="90" fill="#000099">99 Years Blue</text><text x="40" y="160" fill="#052462">Black Sea Night</text><text x="40" y="230" fill="#89a068">Buckingham Gardens</text><text x="40" y="300" fill="#0bdb43">Dasyphyllous Green</text><text x="40" y="370" fill="#a58d72">Elk</text><text x="40" y="440" fill="#2dd78d">Envy’s Love</text><text x="40" y="510" fill="#cdd80d">Goldzilla</text><text x="40" y="580" fill="#006699">Impulse Blue</text><text x="40" y="650" fill="#d0eed7">Jade Palace</text><text x="40" y="720" fill="#ad9a84">Majestic Elk</text><text x="40" y="790" fill="#f5cc3d">Marigold Dust</text><text x="40" y="860" fill="#f26e54">Royal Blush</text><text x="40" y="930" fill="#a0365f">Royal Flush</text><text x="40" y="1000" fill="#f20769">Ruby Fire</text>
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