color-name-list 11.8.0 → 11.9.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/.gitattributes +1 -0
- package/.github/workflows/build.yml +11 -11
- package/.github/workflows/linting.yml +4 -4
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/updatesponsors.yml +1 -1
- package/.prettierignore +5 -0
- package/.prettierrc.json +7 -0
- package/CODE_OF_CONDUCT.md +10 -10
- package/README.md +21 -21
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +8 -0
- package/dist/colornames.bestof.esm.js +4535 -1
- package/dist/colornames.bestof.esm.mjs +4535 -1
- package/dist/colornames.bestof.html +1 -1
- package/dist/colornames.bestof.json +4535 -1
- package/dist/colornames.bestof.min.json +1 -1
- package/dist/colornames.bestof.scss +4535 -1
- package/dist/colornames.bestof.umd.js +4543 -1
- package/dist/colornames.bestof.xml +32 -0
- package/dist/colornames.bestof.yaml +4542 -9051
- package/dist/colornames.csv +11 -1
- package/dist/colornames.esm.js +30292 -1
- package/dist/colornames.esm.mjs +30292 -1
- package/dist/colornames.html +1 -1
- package/dist/colornames.json +30292 -1
- package/dist/colornames.min.json +1 -1
- package/dist/colornames.scss +30292 -1
- package/dist/colornames.short.csv +6 -0
- package/dist/colornames.short.esm.js +2888 -1
- package/dist/colornames.short.esm.mjs +2888 -1
- package/dist/colornames.short.html +1 -1
- package/dist/colornames.short.json +2888 -1
- package/dist/colornames.short.min.json +1 -1
- package/dist/colornames.short.scss +2888 -1
- package/dist/colornames.short.umd.js +2896 -1
- package/dist/colornames.short.xml +24 -0
- package/dist/colornames.short.yaml +2893 -5761
- package/dist/colornames.umd.js +30300 -1
- package/dist/colornames.xml +41 -1
- package/dist/colornames.yaml +30301 -60561
- package/dist/history.json +61120 -1
- package/eslint.config.js +26 -0
- package/package.json +11 -3
- package/scripts/build.js +86 -99
- package/scripts/lib.js +42 -30
- package/scripts/tools/filterUniques.js +9 -12
- package/scripts/tools/findLargestSpacesInRGB.js +8 -13
- package/scripts/tools/history.js +13 -11
- package/scripts/tools/remapNames.js +2 -4
- package/scripts/tools/shiftColors.js +7 -7
- package/src/colornames.csv +30290 -30280
- package/.eslintrc.json +0 -17
- package/.travis.yml +0 -27
package/.gitattributes
CHANGED
|
@@ -5,9 +5,9 @@ name: Build CI
|
|
|
5
5
|
|
|
6
6
|
on:
|
|
7
7
|
push:
|
|
8
|
-
branches: [
|
|
8
|
+
branches: [main]
|
|
9
9
|
pull_request:
|
|
10
|
-
branches: [
|
|
10
|
+
branches: [main]
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
build:
|
|
@@ -15,14 +15,14 @@ jobs:
|
|
|
15
15
|
|
|
16
16
|
strategy:
|
|
17
17
|
matrix:
|
|
18
|
-
node-version: [
|
|
18
|
+
node-version: [23.x]
|
|
19
19
|
|
|
20
20
|
steps:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
- uses: actions/checkout@v2
|
|
22
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
23
|
+
uses: actions/setup-node@v1
|
|
24
|
+
with:
|
|
25
|
+
node-version: ${{ matrix.node-version }}
|
|
26
|
+
- run: npm ci
|
|
27
|
+
- run: npm test
|
|
28
|
+
- run: npm run build
|
|
@@ -2,13 +2,13 @@ name: Housekeeping
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [main]
|
|
6
6
|
pull_request:
|
|
7
|
-
branches: [
|
|
7
|
+
branches: [main]
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
linting:
|
|
11
|
-
name:
|
|
11
|
+
name: 'Markdown linting'
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v2
|
|
@@ -16,4 +16,4 @@ jobs:
|
|
|
16
16
|
- name: Lint Code Base
|
|
17
17
|
uses: docker://avtodev/markdown-lint:v1
|
|
18
18
|
with:
|
|
19
|
-
args:
|
|
19
|
+
args: '**/*.md'
|
package/.prettierignore
ADDED
package/.prettierrc.json
ADDED
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -13,20 +13,20 @@ or sexual identity and orientation.
|
|
|
13
13
|
|
|
14
14
|
Examples of behavior that contributes to creating a positive environment include:
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
- Using welcoming and inclusive language
|
|
17
|
+
- Being respectful of differing viewpoints and experiences
|
|
18
|
+
- Gracefully accepting constructive criticism
|
|
19
|
+
- Focusing on what is best for the community
|
|
20
|
+
- Showing empathy towards other community members
|
|
21
21
|
|
|
22
22
|
Examples of unacceptable behavior by participants include:
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
25
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
26
|
+
- Public or private harassment
|
|
27
|
+
- Publishing others' private information, such as a physical or electronic
|
|
28
28
|
address, without explicit permission
|
|
29
|
-
|
|
29
|
+
- Other conduct which could reasonably be considered inappropriate
|
|
30
30
|
in a professional setting
|
|
31
31
|
|
|
32
32
|
## Our Responsibilities
|
package/README.md
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
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/main/src/colornames.csv)
|
|
10
10
|
[](https://github.com/sponsors/meodai)
|
|
11
11
|
|
|
12
|
-
A handpicked list of
|
|
12
|
+
A handpicked list of **30290** 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
|
|
16
16
|
> needle, capable of stitching together our most delicate emotions and memories.
|
|
17
17
|
> When the needle hits the target, we feel either pleasure or empathy.
|
|
18
|
-
>
|
|
18
|
+
> **Kenya Hara – White**
|
|
19
19
|
|
|
20
20
|
<p>
|
|
21
21
|
<a href="#explore-">Explore / Find Names</a>
|
|
@@ -49,14 +49,14 @@ shifted the colors a bit when there were identical colors with different names.
|
|
|
49
49
|
|
|
50
50
|
## Color Name Submission 💌
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
/ or [twitter 🐦](https://twitter.com/color_parrot)
|
|
52
|
+
**[via form 🌈](https://docs.google.com/forms/d/e/1FAIpQLSfbS5D6owA4dQupJJ-6qhRzuxkjX9r2AliPMg-VR2V3NpGkQg/viewform)
|
|
53
|
+
/ or [twitter 🐦](https://twitter.com/color_parrot)**
|
|
54
54
|
|
|
55
55
|
Make sure to read the [naming rules](CONTRIBUTING.md) before you contribute!
|
|
56
56
|
|
|
57
|
-
## Color Count:
|
|
57
|
+
## Color Count: **30290** 🎉
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
~**0.18%** of the RGB color space
|
|
60
60
|
|
|
61
61
|
## [Color distribution](https://codepen.io/meodai/full/zdgXJj/) 🛰
|
|
62
62
|
|
|
@@ -72,7 +72,7 @@ colors evenly in the color space: [Visualization](https://codepen.io/meodai/full
|
|
|
72
72
|
|
|
73
73
|
### Node.js Installation 📦
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
**Size Warning (1.15 MB)**: If you are doing this in the browser,
|
|
76
76
|
consider using the [public rest API](#api-)
|
|
77
77
|
|
|
78
78
|
```shell
|
|
@@ -129,7 +129,7 @@ has no dependencies [Color-Name-API](https://github.com/meodai/color-name-api)
|
|
|
129
129
|
|
|
130
130
|
### Usage JS ⌨
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
**Size Warning (1.15 MB)**: If you are doing this in the browser,
|
|
133
133
|
consider using the [public rest API](#api-)
|
|
134
134
|
|
|
135
135
|
#### Exact Color
|
|
@@ -137,10 +137,10 @@ consider using the [public rest API](#api-)
|
|
|
137
137
|
```javascript
|
|
138
138
|
import { colornames } from 'color-name-list';
|
|
139
139
|
|
|
140
|
-
let someColor = colornames.find(color => color.hex === '#ffffff');
|
|
140
|
+
let someColor = colornames.find((color) => color.hex === '#ffffff');
|
|
141
141
|
console.log(someColor.name); // => white
|
|
142
142
|
|
|
143
|
-
let someNamedColor = colornames.find(color => color.name === 'Eigengrau')
|
|
143
|
+
let someNamedColor = colornames.find((color) => color.name === 'Eigengrau');
|
|
144
144
|
console.log(someColor.hex); // => #16161d
|
|
145
145
|
```
|
|
146
146
|
|
|
@@ -162,7 +162,7 @@ const nearest = nearestColor.from(colors);
|
|
|
162
162
|
nearest('#f1c1d1'); // => Fairy Tale
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
**Note**: If you are looking for something visually more accurate, you could
|
|
166
166
|
use [DeltaE] or use the above snippet, but using [ciecam02] instead of RGB.
|
|
167
167
|
|
|
168
168
|
[DeltaE]: https://github.com/zschuessler/DeltaE
|
|
@@ -334,17 +334,17 @@ NamedColor randomColor = colorNames.GetRandomNamedColor();
|
|
|
334
334
|
|
|
335
335
|
#### One-Time
|
|
336
336
|
|
|
337
|
-
| Item
|
|
338
|
-
|
|
|
339
|
-
| Logo by Metafizzy
|
|
337
|
+
| Item | Expenditure |
|
|
338
|
+
| ----------------- | ----------- |
|
|
339
|
+
| Logo by Metafizzy | 800 |
|
|
340
340
|
|
|
341
341
|
#### Periodic
|
|
342
342
|
|
|
343
|
-
| Item | Expenditure
|
|
344
|
-
| ----------------------- |
|
|
345
|
-
| Color Name API Server | 264.60/year
|
|
346
|
-
| color.pizza domain name | 36.16/year
|
|
347
|
-
| Cloudflare PRO Plan | 240/year
|
|
343
|
+
| Item | Expenditure |
|
|
344
|
+
| ----------------------- | ----------- |
|
|
345
|
+
| Color Name API Server | 264.60/year |
|
|
346
|
+
| color.pizza domain name | 36.16/year |
|
|
347
|
+
| Cloudflare PRO Plan | 240/year |
|
|
348
348
|
|
|
349
349
|
### Color Namers
|
|
350
350
|
|
|
@@ -384,7 +384,7 @@ so that we can remove them promptly.
|
|
|
384
384
|
|
|
385
385
|
## Latest Color Names 🔖
|
|
386
386
|
|
|
387
|
-

|
|
388
388
|
|
|
389
389
|
<!-----------------------------------------------------------------------------
|
|
390
390
|
REFERENCE LINKS
|
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 850">
|
|
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="850"/>
|
|
13
|
+
<text x="40" y="90" fill="#3e1825">Black-Hearted</text><text x="40" y="160" fill="#2539bf">Blue Murder</text><text x="40" y="230" fill="#005f7a">Blue-Collar</text><text x="40" y="300" fill="#4a290d">Brown Study</text><text x="40" y="370" fill="#79512c">Brown-Noser</text><text x="40" y="440" fill="#c49b35">Golden Mean</text><text x="40" y="510" fill="#346e23">Green-Eyed Monster</text><text x="40" y="580" fill="#5c2e88">Purple Patch</text><text x="40" y="650" fill="#c92b1e">Red Mist</text><text x="40" y="720" fill="#dedbde">White-Collar</text><text x="40" y="790" fill="#e6e382">Yellow Press</text>
|
|
14
14
|
</svg>
|
|
@@ -303,6 +303,7 @@ Black Hole,#010203
|
|
|
303
303
|
Black Knight,#010b13
|
|
304
304
|
Black Magic,#4f4554
|
|
305
305
|
Black Mana,#858585
|
|
306
|
+
Black Market,#222244
|
|
306
307
|
Black Metal,#060606
|
|
307
308
|
Black Olive,#3b3c36
|
|
308
309
|
Black Orchid,#525463
|
|
@@ -318,6 +319,7 @@ Black Truffle,#463d3e
|
|
|
318
319
|
Black Turmeric,#2c4364
|
|
319
320
|
Black Velvet,#222233
|
|
320
321
|
Black Wash,#0c0c0c
|
|
322
|
+
Black-Hearted,#3e1825
|
|
321
323
|
Blackberry,#43182f
|
|
322
324
|
Blackberry Yogurt,#e5bddf
|
|
323
325
|
Blackn’t,#020f03
|
|
@@ -363,6 +365,7 @@ Blue Blood,#6b7f81
|
|
|
363
365
|
Blue Bobbin,#52b4ca
|
|
364
366
|
Blue Chip,#1d5699
|
|
365
367
|
Blue Eye Samurai,#75aebd
|
|
368
|
+
Blue Funk,#2d4470
|
|
366
369
|
Blue Haze,#bdbace
|
|
367
370
|
Blue Hour,#0034ab
|
|
368
371
|
Blue Lips,#a6bce2
|
|
@@ -376,6 +379,7 @@ Blue Silk,#d0dce8
|
|
|
376
379
|
Blue Triumph,#4376ab
|
|
377
380
|
Blue Velvet,#0d6183
|
|
378
381
|
Blue Whale,#1e3442
|
|
382
|
+
Blue-Collar,#005f7a
|
|
379
383
|
Bluebell,#333399
|
|
380
384
|
Blueberry,#464196
|
|
381
385
|
Bluebonnet,#1c1cf0
|
|
@@ -1607,6 +1611,7 @@ Golden Harvest,#cccc11
|
|
|
1607
1611
|
Golden Hour,#f1b457
|
|
1608
1612
|
Golden Kingdom,#e0c84b
|
|
1609
1613
|
Golden Lion,#f3ca6c
|
|
1614
|
+
Golden Mean,#c49b35
|
|
1610
1615
|
Golden Mist,#d4c990
|
|
1611
1616
|
Golden Nugget,#d78e48
|
|
1612
1617
|
Golden Opportunity,#f7c070
|
|
@@ -3454,6 +3459,7 @@ Red Hot Chili Pepper,#db1d27
|
|
|
3454
3459
|
Red Inferno,#bb1e1e
|
|
3455
3460
|
Red Mana,#f95554
|
|
3456
3461
|
Red Menace,#aa2121
|
|
3462
|
+
Red Mist,#c92b1e
|
|
3457
3463
|
Red My Mind,#994341
|
|
3458
3464
|
Red Octopus,#773243
|
|
3459
3465
|
Red Panda,#c34b1b
|
|
@@ -4491,7 +4497,9 @@ Yellow Buzzing,#eedd11
|
|
|
4491
4497
|
Yellow Chalk,#f5f9ad
|
|
4492
4498
|
Yellow Mana,#fdfcbf
|
|
4493
4499
|
Yellow Mellow,#f0d31e
|
|
4500
|
+
Yellow Press,#e6e382
|
|
4494
4501
|
Yellow Submarine,#ffff14
|
|
4502
|
+
Yellow-Bellied,#ffee33
|
|
4495
4503
|
Yellowish,#faee66
|
|
4496
4504
|
Yeti Footprint,#c7d7e0
|
|
4497
4505
|
Yippie Ya Yellow,#f9f59f
|