color-name-list 12.2.0 → 13.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/.github/workflows/build-and-release.yml +3 -3
- package/.github/workflows/build.yml +1 -1
- package/.husky/pre-commit +1 -1
- package/CONTRIBUTING.md +1 -1
- package/README.md +2 -2
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +5 -4
- 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 -13
- package/dist/colornames.bestof.yaml +13 -10
- package/dist/colornames.csv +11 -38
- 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.short.csv +3 -2
- package/dist/colornames.short.esm.js +1 -1
- package/dist/colornames.short.esm.mjs +1 -1
- package/dist/colornames.short.html +1 -1
- package/dist/colornames.short.json +1 -1
- package/dist/colornames.short.min.json +1 -1
- package/dist/colornames.short.scss +1 -1
- package/dist/colornames.short.umd.js +1 -1
- package/dist/colornames.short.xml +9 -5
- package/dist/colornames.short.yaml +7 -4
- package/dist/colornames.umd.js +1 -1
- package/dist/colornames.xml +17 -125
- package/dist/colornames.yaml +15 -96
- package/dist/history.json +1 -1
- package/package.json +2 -4
- package/scripts/build.js +33 -161
- package/scripts/lib.js +38 -6
- package/scripts/sortSrc.js +5 -6
- package/src/colornames.csv +14 -41
- package/tests/_utils/report.js +76 -0
- package/tests/csv-test-data.js +108 -0
- package/tests/duplicate-allowlist.json +29 -1
- package/tests/duplicate-plurals-allowlist.json +4 -1
- package/tests/duplicates.test.js +246 -40
- package/tests/formats.test.js +9 -8
- package/tests/imports.test.js +12 -14
- package/tests/sorting.test.js +10 -12
- package/tests/title-case.test.js +320 -0
- package/tests/validations.test.js +219 -0
package/.husky/pre-commit
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -27,7 +27,7 @@ interactions with the project.
|
|
|
27
27
|
- No protected brand-names (`Facebook Blue`, `Coca Cola Red`)
|
|
28
28
|
- No enumerations (`Grey 1`, `Grey 2`, `Grey 3`, `Grey 4`)
|
|
29
29
|
- British English spelling (ex. `Grey` not `Gray`), unless its something U.S. typical.
|
|
30
|
-
- Capitalize colors: `Kind of Orange`
|
|
30
|
+
- Capitalize colors: `Kind of Orange` following [APA style](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case)
|
|
31
31
|
- Prefer common names, especially when adding colors of flora and fauna
|
|
32
32
|
(plants and animals ;) ) ex. `Venus Slipper Orchid` instead of `Paphiopedilum`.
|
|
33
33
|
- Avoid ethnic & racial assumptions
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](https://www.npmjs.com/package/color-name-list)
|
|
14
14
|
[](https://github.com/sponsors/meodai)
|
|
15
15
|
|
|
16
|
-
A meticulously curated collection of
|
|
16
|
+
A meticulously curated collection of __30119__ unique color names, sourced from
|
|
17
17
|
[various references](#sources-) and thousands of thoughtful user contributions.
|
|
18
18
|
|
|
19
19
|
> The names of color function like a thread attached to a frightfully slender
|
|
@@ -64,7 +64,7 @@ Please review the [naming rules](CONTRIBUTING.md) before contributing!
|
|
|
64
64
|
To contribute via Git, edit the `src/colornames.csv` file
|
|
65
65
|
and ensure it builds correctly (`npm run ci && npm run build`).
|
|
66
66
|
|
|
67
|
-
## Color Count:
|
|
67
|
+
## Color Count: __30119__ 🎉
|
|
68
68
|
|
|
69
69
|
~__0.18%__ of the RGB color space
|
|
70
70
|
|
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 990">
|
|
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="990"/>
|
|
13
|
+
<text x="40" y="90" fill="#903f45">Apple-a-Day</text><text x="40" y="160" fill="#e7d9b9">At the Beach</text><text x="40" y="230" fill="#a0b7ba">Blue by You</text><text x="40" y="300" fill="#babfc5">Blue to You</text><text x="40" y="370" fill="#145775">Broadway</text><text x="40" y="440" fill="#ddbda3">Brown-Bag It</text><text x="40" y="510" fill="#8d999e">By the Sea</text><text x="40" y="580" fill="#ba7f38">Cut the Mustard</text><text x="40" y="650" fill="#44aa55">Devil’s Grass</text><text x="40" y="720" fill="#978c59">In a Pickle</text><text x="40" y="790" fill="#c92d21">Red Seal</text><text x="40" y="860" fill="#ffffbf">Sour Veil</text><text x="40" y="930" fill="#c4bf0b">Sweet & Sour</text>
|
|
14
14
|
</svg>
|
|
@@ -951,6 +951,7 @@ Curry Bubbles,#f5b700
|
|
|
951
951
|
Curry Sauce,#be9e6f
|
|
952
952
|
Currywurst,#ddaa33
|
|
953
953
|
Cursed Black,#131313
|
|
954
|
+
Cut the Mustard,#ba7f38
|
|
954
955
|
Cute Crab,#dd4444
|
|
955
956
|
Cuttlefish,#7fbbc2
|
|
956
957
|
Cyan,#0ff0fe
|
|
@@ -1069,6 +1070,7 @@ Desire,#ea3c53
|
|
|
1069
1070
|
Desired Dawn,#d8d7d9
|
|
1070
1071
|
Detective Coat,#8b8685
|
|
1071
1072
|
Devil’s Advocate,#ff3344
|
|
1073
|
+
Devil’s Grass,#44aa55
|
|
1072
1074
|
Deviled Eggs,#fecd82
|
|
1073
1075
|
Devilish,#dd3322
|
|
1074
1076
|
Devilish Diva,#ce7790
|
|
@@ -2018,7 +2020,7 @@ Imperial Lilac,#a99fcf
|
|
|
2018
2020
|
Imperial Purple,#5b3167
|
|
2019
2021
|
Imperial Red,#ec2938
|
|
2020
2022
|
Imperial Yellow,#ffb200
|
|
2021
|
-
In
|
|
2023
|
+
In a Pickle,#978c59
|
|
2022
2024
|
In for a Penny,#ee8877
|
|
2023
2025
|
In Good Taste,#b6d4a0
|
|
2024
2026
|
In the Dark,#3b3c41
|
|
@@ -3537,6 +3539,7 @@ Red Republic,#d70200
|
|
|
3537
3539
|
Red Ribbon,#ed0a3f
|
|
3538
3540
|
Red Riding Hood,#fe2713
|
|
3539
3541
|
Red Robin,#7d4138
|
|
3542
|
+
Red Seal,#c92d21
|
|
3540
3543
|
Red Stop,#ff2222
|
|
3541
3544
|
Red Tape,#cc1133
|
|
3542
3545
|
Red Wrath of Zeus,#e0180c
|
|
@@ -3913,6 +3916,7 @@ Sour Cherry,#e24736
|
|
|
3913
3916
|
Sour Green,#c1e613
|
|
3914
3917
|
Sour Lemon,#ffeea5
|
|
3915
3918
|
Sour Lime,#acc326
|
|
3919
|
+
Sour Veil,#ffffbf
|
|
3916
3920
|
Sour Yellow,#eeff04
|
|
3917
3921
|
Sovereign Red,#ce243f
|
|
3918
3922
|
Soviet Gold,#ffd900
|
|
@@ -4148,7 +4152,6 @@ Thai Hot,#fe1c06
|
|
|
4148
4152
|
Thalassa,#53b1ba
|
|
4149
4153
|
Thalassophile,#44aadd
|
|
4150
4154
|
The Count’s Black,#102030
|
|
4151
|
-
The Devil’s Grass,#666420
|
|
4152
4155
|
The End,#2a2a2a
|
|
4153
4156
|
The Grape War of 97’,#bb00ff
|
|
4154
4157
|
The Legend of Green,#558844
|
|
@@ -4504,7 +4507,6 @@ Whisky Cola,#772233
|
|
|
4504
4507
|
Whisky Sour,#eeaa33
|
|
4505
4508
|
Whisper of Smoke,#cbcecf
|
|
4506
4509
|
Whisper of White,#eadbca
|
|
4507
|
-
Whisper White,#eae2d3
|
|
4508
4510
|
Whispering Frost,#d7e5d8
|
|
4509
4511
|
Whispering Smoke,#d8d8d4
|
|
4510
4512
|
Whispering Willow,#919c81
|
|
@@ -4599,7 +4601,6 @@ Yakitori,#ecab3f
|
|
|
4599
4601
|
Yang Mist,#ede8dd
|
|
4600
4602
|
Yearning Desire,#ca135e
|
|
4601
4603
|
Yell for Yellow,#fffe00
|
|
4602
|
-
Yell Yellow,#ffffbf
|
|
4603
4604
|
Yellow,#ffff00
|
|
4604
4605
|
Yellow Buzzing,#eedd11
|
|
4605
4606
|
Yellow Chalk,#f5f9ad
|