color-name-list 10.24.0 → 10.24.2
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.yml +0 -1
- package/.github/workflows/updatesponsors.yml +25 -0
- package/README.md +9 -13
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +4 -12
- 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 +12 -44
- package/dist/colornames.bestof.yaml +9 -33
- package/dist/colornames.csv +7 -42
- 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 +25 -165
- package/dist/colornames.yaml +19 -124
- package/dist/history.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +15 -7
- package/scripts/tools/getImageColors.sh +1 -1
- package/scripts/tools/history.js +26 -20
- package/src/colornames.csv +7 -42
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -71,14 +71,22 @@ colorsSrc.values['name'].forEach((name) => {
|
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
// loop good name markers
|
|
74
|
-
colorsSrc.values[
|
|
74
|
+
colorsSrc.values[bestOfKey].forEach((str) => {
|
|
75
75
|
// check for spaces
|
|
76
76
|
if (spacesValidation.test(str)) {
|
|
77
|
-
log(
|
|
77
|
+
log(
|
|
78
|
+
`"${bestOfKey}" marker'`,
|
|
79
|
+
str,
|
|
80
|
+
`${str} found either a leading or trailing space (or both)`
|
|
81
|
+
);
|
|
78
82
|
}
|
|
79
83
|
|
|
80
|
-
if (!(str ==
|
|
81
|
-
log(
|
|
84
|
+
if (!(str == "x" || str == "")) {
|
|
85
|
+
log(
|
|
86
|
+
`"${bestOfKey}" marker`,
|
|
87
|
+
str,
|
|
88
|
+
`${str} must be a lowercase "x" character or empty`
|
|
89
|
+
);
|
|
82
90
|
}
|
|
83
91
|
});
|
|
84
92
|
|
|
@@ -101,7 +109,7 @@ const JSONExportString = JSON.stringify(
|
|
|
101
109
|
|
|
102
110
|
const JSONExportStringBestOf = JSON.stringify(
|
|
103
111
|
[...colorsSrc.entires].filter(
|
|
104
|
-
(val) => (val[
|
|
112
|
+
(val) => (val[bestOfKey])
|
|
105
113
|
).map( // removes good name attributes
|
|
106
114
|
(val) => ({
|
|
107
115
|
name: val.name,
|
|
@@ -127,7 +135,7 @@ const miniJSONExportObj = colorsSrc.entires.reduce((obj, entry) => {
|
|
|
127
135
|
}, {});
|
|
128
136
|
|
|
129
137
|
const miniJSONExportObjBestOf = colorsSrc.entires.reduce((obj, entry) => {
|
|
130
|
-
if(entry[
|
|
138
|
+
if(entry[bestOfKey]) {
|
|
131
139
|
obj[entry.hex.replace('#', '')] = entry.name;
|
|
132
140
|
}
|
|
133
141
|
return obj;
|
|
@@ -242,7 +250,7 @@ for (const outputFormat in outputFormats) {
|
|
|
242
250
|
for (const outputFormat in outputFormats) {
|
|
243
251
|
if (outputFormats[outputFormat]) {
|
|
244
252
|
let outputString = objArrToString(
|
|
245
|
-
colorsSrc.entires.filter((val) => (val[
|
|
253
|
+
colorsSrc.entires.filter((val) => (val[bestOfKey])),
|
|
246
254
|
csvKeys,
|
|
247
255
|
outputFormats[outputFormat]
|
|
248
256
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# getImageColors 'https://upload.wikimedia.org/wikipedia/commons/a/a1/AmstradCPC_palette.png' cpc 32
|
|
4
4
|
# creates a cpc.txt with 32 colors from the download picture
|
|
5
5
|
|
|
6
|
-
# ! uses gawk (
|
|
6
|
+
# ! uses gawk (brew install gawk) & imagemagick (brew install imagemagick)
|
|
7
7
|
|
|
8
8
|
curl "$1" > "$2.png" &&
|
|
9
9
|
convert "$2.png" -colors $3 -depth 8 -format '%c' histogram:info:- \
|
package/scripts/tools/history.js
CHANGED
|
@@ -7,37 +7,41 @@ function cmd(c) {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// Print the list of colors added/removed/changed by date.
|
|
10
|
-
// Pretty inefficient due to the many git commands (optimized for clarity)
|
|
11
10
|
async function main() {
|
|
12
|
-
|
|
13
11
|
// Grab the list of all git commits
|
|
14
|
-
const allCommits = cmd("git log --pretty=format:%h")
|
|
12
|
+
const allCommits = cmd("git log --pretty=format:%h")
|
|
13
|
+
.split("\n")
|
|
14
|
+
.filter(Boolean);
|
|
15
15
|
|
|
16
16
|
// The data, one element for each commit (date)
|
|
17
17
|
const dat = [];
|
|
18
18
|
|
|
19
19
|
for (const commit of allCommits) {
|
|
20
|
-
|
|
21
20
|
// Figure out what changed in that particular commit
|
|
22
21
|
const diff = cmd(`git show ${commit} -- ./src/colornames.csv`)
|
|
23
|
-
.split("\n")
|
|
22
|
+
.split("\n")
|
|
23
|
+
.filter(Boolean);
|
|
24
24
|
|
|
25
25
|
// Grab the date for said commit
|
|
26
26
|
const dt = cmd(`git show -s ${commit} --format=%ci`);
|
|
27
27
|
|
|
28
|
-
// The list of
|
|
28
|
+
// The list of colors modified (indexed by hex value) with "op" (+/-/~)
|
|
29
29
|
const modified = {};
|
|
30
30
|
|
|
31
|
-
for(const line of diff) {
|
|
32
|
-
const res = line.match(/^((?<op>(\+|-)))(?<name>[^,]+),(?<hex>[^,]+)/)
|
|
33
|
-
if(!res) {
|
|
31
|
+
for (const line of diff) {
|
|
32
|
+
const res = line.match(/^((?<op>(\+|-)))(?<name>[^,]+),(?<hex>[^,]+)/);
|
|
33
|
+
if (!res) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
34
36
|
const name = res.groups?.name;
|
|
35
|
-
const hex = res.groups?.hex;
|
|
37
|
+
const hex = res.groups?.hex?.trim(); // Remove any \r or whitespace
|
|
36
38
|
var op = res.groups?.op;
|
|
37
39
|
|
|
38
40
|
// If a value already introduced with a different op, then it's
|
|
39
41
|
// a modification
|
|
40
|
-
if(modified[hex] && modified[hex].op !== op) {
|
|
42
|
+
if (modified[hex] && modified[hex].op !== op) {
|
|
43
|
+
op = "~";
|
|
44
|
+
}
|
|
41
45
|
|
|
42
46
|
modified[hex] = { hex, name, op };
|
|
43
47
|
}
|
|
@@ -45,22 +49,24 @@ async function main() {
|
|
|
45
49
|
// Partition by added/removed/changed
|
|
46
50
|
|
|
47
51
|
const added = Object.values(modified)
|
|
48
|
-
.filter(x => x.op === "+")
|
|
49
|
-
.map(({name, hex}) => ({ name, hex }));
|
|
52
|
+
.filter((x) => x.op === "+")
|
|
53
|
+
.map(({ name, hex }) => ({ name, hex }));
|
|
50
54
|
|
|
51
55
|
const removed = Object.values(modified)
|
|
52
|
-
.filter(x => x.op === "-")
|
|
53
|
-
.map(({name, hex}) => ({ name, hex }));
|
|
56
|
+
.filter((x) => x.op === "-")
|
|
57
|
+
.map(({ name, hex }) => ({ name, hex }));
|
|
54
58
|
|
|
55
59
|
const changed = Object.values(modified)
|
|
56
|
-
.filter(x => x.op === "~")
|
|
57
|
-
.map(({name, hex}) => ({ name, hex }));
|
|
60
|
+
.filter((x) => x.op === "~")
|
|
61
|
+
.map(({ name, hex }) => ({ name, hex }));
|
|
58
62
|
|
|
59
|
-
// Add the day
|
|
60
|
-
|
|
63
|
+
// Add the day only if there were changes
|
|
64
|
+
if (added.length > 0 || removed.length > 0 || changed.length > 0) {
|
|
65
|
+
dat.push({ date: dt, added, removed, changed });
|
|
66
|
+
}
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
console.log(JSON.stringify(dat));
|
|
64
70
|
}
|
|
65
71
|
|
|
66
|
-
main()
|
|
72
|
+
main();
|
package/src/colornames.csv
CHANGED
|
@@ -306,7 +306,6 @@ Alabaster,#f3e7db,
|
|
|
306
306
|
Alabaster Beauty,#e9e3d2,
|
|
307
307
|
Alabaster Gleam,#f0debd,
|
|
308
308
|
Alabaster White,#dfd4bf,
|
|
309
|
-
Aladdin’s Feather,#5500ff,
|
|
310
309
|
Alaea,#81585b,
|
|
311
310
|
Alaitoc Blue,#8e8c97,
|
|
312
311
|
Alajuela Toad,#ffae52,
|
|
@@ -1342,6 +1341,7 @@ Asian Fusion,#ece0cd,
|
|
|
1342
1341
|
Asian Ivory,#e8e0cd,
|
|
1343
1342
|
Asian Jute,#d4b78f,
|
|
1344
1343
|
Asian Pear,#ae9156,
|
|
1344
|
+
Asian Spice,#118822,x
|
|
1345
1345
|
Asian Violet,#8b818c,
|
|
1346
1346
|
Āsmānī Sky,#88ddbb,
|
|
1347
1347
|
Aspara,#70b2cc,
|
|
@@ -2603,7 +2603,6 @@ Black Ice,#4d5051,
|
|
|
2603
2603
|
Black Ink,#44413c,
|
|
2604
2604
|
Black Iris,#2b3042,
|
|
2605
2605
|
Black is Back,#0f1519,
|
|
2606
|
-
Black Is Beautiful,#552222,
|
|
2607
2606
|
Black Jasmine Rice,#74563d,
|
|
2608
2607
|
Black Kite,#351e1c,
|
|
2609
2608
|
Black Knight,#010b13,x
|
|
@@ -3361,9 +3360,6 @@ Bologna Sausage,#ffcfdc,
|
|
|
3361
3360
|
Bolognese,#bb4400,x
|
|
3362
3361
|
Bolt from the Blue,#2277ff,
|
|
3363
3362
|
Boltgun Metal,#393939,
|
|
3364
|
-
Bombay,#aeaead,
|
|
3365
|
-
Bombay Brown,#af6135,
|
|
3366
|
-
Bombay Pink,#c9736a,
|
|
3367
3363
|
Bon Voyage,#8baeb2,
|
|
3368
3364
|
Bona Fide,#304471,
|
|
3369
3365
|
Bona Fide Beige,#cbb9ab,
|
|
@@ -4427,7 +4423,6 @@ Canadian Maple,#cab266,x
|
|
|
4427
4423
|
Canadian Pancake,#edd8c3,
|
|
4428
4424
|
Canadian Pine,#2e7b52,
|
|
4429
4425
|
Canadian Tuxedo,#579aca,x
|
|
4430
|
-
Canadian Voodoo Grey,#b8b7a3,
|
|
4431
4426
|
Canal Blue,#9cc2c5,
|
|
4432
4427
|
Canal Street,#969281,
|
|
4433
4428
|
Canaletto,#818c72,
|
|
@@ -12062,14 +12057,6 @@ Gyoza Dumpling,#dfb46f,
|
|
|
12062
12057
|
Gypsum,#eeede4,
|
|
12063
12058
|
Gypsum Rose,#e2c4af,
|
|
12064
12059
|
Gypsum Sand,#d6cfbf,
|
|
12065
|
-
Gypsy,#e59368,
|
|
12066
|
-
Gypsy Canvas,#b7a467,
|
|
12067
|
-
Gypsy Caravan,#d1c8d7,
|
|
12068
|
-
Gypsy Dancer,#c07c7b,x
|
|
12069
|
-
Gypsy Jewels,#613a57,
|
|
12070
|
-
Gypsy Magic,#917d82,
|
|
12071
|
-
Gypsy Red,#b6363b,
|
|
12072
|
-
Gypsy’s Gown,#a698a8,
|
|
12073
12060
|
H₂O,#bfe1e6,x
|
|
12074
12061
|
Habañero,#f98513,x
|
|
12075
12062
|
Habañero Chile,#b8473d,
|
|
@@ -12327,7 +12314,6 @@ Healing Plant,#6c7d42,
|
|
|
12327
12314
|
Healing Retreat,#bac2aa,
|
|
12328
12315
|
Healing Springs,#e1e2c2,
|
|
12329
12316
|
Heart Chakra,#5bbd7f,
|
|
12330
|
-
Heart Gold,#808000,
|
|
12331
12317
|
Heart of Gold,#9d7f4c,
|
|
12332
12318
|
Heart of Ice,#f7fcff,x
|
|
12333
12319
|
Heart of Palm,#d2cfa6,
|
|
@@ -13980,7 +13966,6 @@ Kabul,#6c5e53,x
|
|
|
13980
13966
|
Kacey’s Pink,#e94b7e,
|
|
13981
13967
|
Kachi Indigo,#393e4f,
|
|
13982
13968
|
Kaffee,#816d5a,
|
|
13983
|
-
Kaffir Lime,#b9ab85,
|
|
13984
13969
|
Kahili,#b7bfb0,
|
|
13985
13970
|
Kahlua Milk,#bab099,
|
|
13986
13971
|
Kahu Blue,#0093d6,
|
|
@@ -15003,7 +14988,6 @@ Light Mosque,#d8cdd0,
|
|
|
15003
14988
|
Light Mulberry,#d1cae1,
|
|
15004
14989
|
Light My Fire,#f8611a,x
|
|
15005
14990
|
Light Mystified,#d6e4d4,
|
|
15006
|
-
Light Naked Pink,#e2d4e1,
|
|
15007
14991
|
Light Nougat,#fbe6c7,
|
|
15008
14992
|
Light Nursery,#f4dcdc,
|
|
15009
14993
|
Light Nut Milk,#e3d8d4,
|
|
@@ -15015,7 +14999,6 @@ Light Opale,#c1e8ea,
|
|
|
15015
14999
|
Light Opus,#dad7e8,
|
|
15016
15000
|
Light Orchid,#e6a8d7,
|
|
15017
15001
|
Light Orchid Haze,#d6cdd0,
|
|
15018
|
-
Light Oriental Blush,#e1d4e8,
|
|
15019
15002
|
Light Otto Ice,#cde7dd,
|
|
15020
15003
|
Light Pale Icelandish,#ccdfdc,
|
|
15021
15004
|
Light Pale Lilac,#ced5e4,
|
|
@@ -15993,6 +15976,7 @@ Make-Up Blue,#335f8d,
|
|
|
15993
15976
|
Makin it Rain,#88bb55,x
|
|
15994
15977
|
Mako,#505555,
|
|
15995
15978
|
Makore Veneer Red,#6e2f2c,
|
|
15979
|
+
Makrut Lime,#688c43,
|
|
15996
15980
|
Malabar,#cfbea9,
|
|
15997
15981
|
Malachite,#0bda51,
|
|
15998
15982
|
Malachite Blue Turquoise,#0e4f4f,
|
|
@@ -17768,6 +17752,7 @@ Mystic Magenta,#e02e82,x
|
|
|
17768
17752
|
Mystic Maroon,#ad4379,
|
|
17769
17753
|
Mystic Mauve,#dbb7ba,
|
|
17770
17754
|
Mystic Melon,#edebb4,
|
|
17755
|
+
Mystic Nights,#4b2c74,x
|
|
17771
17756
|
Mystic Opal,#fbddbe,
|
|
17772
17757
|
Mystic Pool,#d5dde2,
|
|
17773
17758
|
Mystic Red,#ff5500,
|
|
@@ -17808,10 +17793,7 @@ Nail Polish Pink,#bd4e84,
|
|
|
17808
17793
|
Nairobi Dusk,#d9a787,
|
|
17809
17794
|
Naive Peach,#fce7d3,
|
|
17810
17795
|
Nakabeni Pink,#c93756,
|
|
17811
|
-
Naked Lady,#d6b3a9,
|
|
17812
|
-
Naked Light,#e9b6c1,
|
|
17813
17796
|
Naked Noodle,#f7cb6e,x
|
|
17814
|
-
Naked Pink,#d8c6d6,
|
|
17815
17797
|
Naked Rose,#ebb5b3,
|
|
17816
17798
|
Namakabe Brown,#785e49,
|
|
17817
17799
|
Namara Grey,#7b7c7d,
|
|
@@ -18361,7 +18343,6 @@ Nuclear Mango,#ee9933,x
|
|
|
18361
18343
|
Nuclear Meltdown,#44ee00,x
|
|
18362
18344
|
Nuclear Throne,#00de00,x
|
|
18363
18345
|
Nuclear Waste,#7cfc00,
|
|
18364
|
-
Nude,#f2d3bc,
|
|
18365
18346
|
Nude Flamingo,#e58f7c,x
|
|
18366
18347
|
Nude Lips,#b5948d,x
|
|
18367
18348
|
Nugget,#bc9229,x
|
|
@@ -18960,22 +18941,6 @@ Organza,#ffdea6,
|
|
|
18960
18941
|
Organza Green,#bbccbd,
|
|
18961
18942
|
Organza Peach,#fbeeda,
|
|
18962
18943
|
Organza Violet,#7391cc,
|
|
18963
|
-
Orient,#255b77,
|
|
18964
|
-
Orient Blue,#4e4981,
|
|
18965
|
-
Orient Green,#77997d,
|
|
18966
|
-
Orient Mosaic Green,#7cb8a1,
|
|
18967
|
-
Orient Pink,#8f415f,
|
|
18968
|
-
Orient Yellow,#f7b969,
|
|
18969
|
-
Oriental Blush,#d7c6e1,x
|
|
18970
|
-
Oriental Eggplant,#533e4f,
|
|
18971
|
-
Oriental Herbs,#118822,x
|
|
18972
|
-
Oriental Nights,#4b2c74,x
|
|
18973
|
-
Oriental Olive,#445533,x
|
|
18974
|
-
Oriental Pink,#c28e88,x
|
|
18975
|
-
Oriental Ruby,#ce536b,x
|
|
18976
|
-
Oriental Scent,#e2bfa8,x
|
|
18977
|
-
Oriental Silk,#efe5d6,x
|
|
18978
|
-
Oriental Spice,#8b5131,x
|
|
18979
18944
|
Origami,#ece0c6,
|
|
18980
18945
|
Origami White,#e5e2da,
|
|
18981
18946
|
Original White,#f0e5d3,
|
|
@@ -19400,9 +19365,8 @@ Paper Moon,#ead4a6,
|
|
|
19400
19365
|
Paper Plane,#f1ece0,x
|
|
19401
19366
|
Paper Sack,#b4a07a,
|
|
19402
19367
|
Paper Tiger,#fdf1af,
|
|
19403
|
-
Paper White,#
|
|
19368
|
+
Paper White,#f6efdf,x
|
|
19404
19369
|
Paperboy’s Lawn,#249148,
|
|
19405
|
-
Paperwhite,#f6efdf,x
|
|
19406
19370
|
Papier Blanc,#efeadc,
|
|
19407
19371
|
Papilio Argeotus,#8590ae,
|
|
19408
19372
|
Pappardelle Noodle,#f9ebcc,
|
|
@@ -21104,6 +21068,7 @@ Precious Copper,#885522,x
|
|
|
21104
21068
|
Precious Dewdrop,#f5f5e4,
|
|
21105
21069
|
Precious Emerald,#186e50,
|
|
21106
21070
|
Precious Garnet,#b7757c,
|
|
21071
|
+
Precious Jewels,#613a57,
|
|
21107
21072
|
Precious Nectar,#ffde9c,
|
|
21108
21073
|
Precious Oxley,#6d9a79,
|
|
21109
21074
|
Precious Pearls,#f1f0ef,
|
|
@@ -21708,6 +21673,7 @@ Radar,#b6c8e4,
|
|
|
21708
21673
|
Radar Blip Green,#96f97b,
|
|
21709
21674
|
Radiance,#bb9157,
|
|
21710
21675
|
Radiant Dawn,#ece2ce,
|
|
21676
|
+
Radiant Feather,#5500ff,
|
|
21711
21677
|
Radiant Foliage,#659c35,x
|
|
21712
21678
|
Radiant Glow,#ffeed2,
|
|
21713
21679
|
Radiant Hulk,#10f144,x
|
|
@@ -25412,7 +25378,6 @@ Spiced Up Orange,#e67a37,x
|
|
|
25412
25378
|
Spiced Vinegar,#cdba99,
|
|
25413
25379
|
Spiced Wine,#664942,
|
|
25414
25380
|
Spicy,#ff1111,
|
|
25415
|
-
Spicy and Oriental,#c75f26,
|
|
25416
25381
|
Spicy Berry,#cc3366,x
|
|
25417
25382
|
Spicy Cayenne,#9b5b4f,
|
|
25418
25383
|
Spicy Cinnamon,#a85624,x
|
|
@@ -29466,7 +29431,6 @@ Wild Maple,#ffe2c7,
|
|
|
29466
29431
|
Wild Mulberry,#a96388,
|
|
29467
29432
|
Wild Mushroom,#84704b,
|
|
29468
29433
|
Wild Mustang,#695649,
|
|
29469
|
-
Wild Nude,#beae8a,
|
|
29470
29434
|
Wild Oats,#ecdbc3,
|
|
29471
29435
|
Wild Olive,#9c8042,
|
|
29472
29436
|
Wild Orchid,#d979a2,
|
|
@@ -30185,6 +30149,7 @@ Zen,#cfd9de,x
|
|
|
30185
30149
|
Zen Blue,#99a4ba,
|
|
30186
30150
|
Zen Essence,#c6bfa7,
|
|
30187
30151
|
Zen Garden,#d1dac0,x
|
|
30152
|
+
Zen Garden Olive,#445533,x
|
|
30188
30153
|
Zen Retreat,#5b5d5c,
|
|
30189
30154
|
Zenith,#497a9f,x
|
|
30190
30155
|
Zenith Heights,#a6c8c7,
|