color-name-list 10.24.0 → 10.24.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/.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 -37
- 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 -145
- package/dist/colornames.yaml +19 -109
- 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 -37
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,
|
|
@@ -12062,14 +12062,6 @@ Gyoza Dumpling,#dfb46f,
|
|
|
12062
12062
|
Gypsum,#eeede4,
|
|
12063
12063
|
Gypsum Rose,#e2c4af,
|
|
12064
12064
|
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
12065
|
H₂O,#bfe1e6,x
|
|
12074
12066
|
Habañero,#f98513,x
|
|
12075
12067
|
Habañero Chile,#b8473d,
|
|
@@ -12327,7 +12319,6 @@ Healing Plant,#6c7d42,
|
|
|
12327
12319
|
Healing Retreat,#bac2aa,
|
|
12328
12320
|
Healing Springs,#e1e2c2,
|
|
12329
12321
|
Heart Chakra,#5bbd7f,
|
|
12330
|
-
Heart Gold,#808000,
|
|
12331
12322
|
Heart of Gold,#9d7f4c,
|
|
12332
12323
|
Heart of Ice,#f7fcff,x
|
|
12333
12324
|
Heart of Palm,#d2cfa6,
|
|
@@ -13980,7 +13971,6 @@ Kabul,#6c5e53,x
|
|
|
13980
13971
|
Kacey’s Pink,#e94b7e,
|
|
13981
13972
|
Kachi Indigo,#393e4f,
|
|
13982
13973
|
Kaffee,#816d5a,
|
|
13983
|
-
Kaffir Lime,#b9ab85,
|
|
13984
13974
|
Kahili,#b7bfb0,
|
|
13985
13975
|
Kahlua Milk,#bab099,
|
|
13986
13976
|
Kahu Blue,#0093d6,
|
|
@@ -15003,7 +14993,6 @@ Light Mosque,#d8cdd0,
|
|
|
15003
14993
|
Light Mulberry,#d1cae1,
|
|
15004
14994
|
Light My Fire,#f8611a,x
|
|
15005
14995
|
Light Mystified,#d6e4d4,
|
|
15006
|
-
Light Naked Pink,#e2d4e1,
|
|
15007
14996
|
Light Nougat,#fbe6c7,
|
|
15008
14997
|
Light Nursery,#f4dcdc,
|
|
15009
14998
|
Light Nut Milk,#e3d8d4,
|
|
@@ -15015,7 +15004,6 @@ Light Opale,#c1e8ea,
|
|
|
15015
15004
|
Light Opus,#dad7e8,
|
|
15016
15005
|
Light Orchid,#e6a8d7,
|
|
15017
15006
|
Light Orchid Haze,#d6cdd0,
|
|
15018
|
-
Light Oriental Blush,#e1d4e8,
|
|
15019
15007
|
Light Otto Ice,#cde7dd,
|
|
15020
15008
|
Light Pale Icelandish,#ccdfdc,
|
|
15021
15009
|
Light Pale Lilac,#ced5e4,
|
|
@@ -15993,6 +15981,7 @@ Make-Up Blue,#335f8d,
|
|
|
15993
15981
|
Makin it Rain,#88bb55,x
|
|
15994
15982
|
Mako,#505555,
|
|
15995
15983
|
Makore Veneer Red,#6e2f2c,
|
|
15984
|
+
Makrut Lime,#688c43,
|
|
15996
15985
|
Malabar,#cfbea9,
|
|
15997
15986
|
Malachite,#0bda51,
|
|
15998
15987
|
Malachite Blue Turquoise,#0e4f4f,
|
|
@@ -17768,6 +17757,7 @@ Mystic Magenta,#e02e82,x
|
|
|
17768
17757
|
Mystic Maroon,#ad4379,
|
|
17769
17758
|
Mystic Mauve,#dbb7ba,
|
|
17770
17759
|
Mystic Melon,#edebb4,
|
|
17760
|
+
Mystic Nights,#4b2c74,x
|
|
17771
17761
|
Mystic Opal,#fbddbe,
|
|
17772
17762
|
Mystic Pool,#d5dde2,
|
|
17773
17763
|
Mystic Red,#ff5500,
|
|
@@ -17808,10 +17798,7 @@ Nail Polish Pink,#bd4e84,
|
|
|
17808
17798
|
Nairobi Dusk,#d9a787,
|
|
17809
17799
|
Naive Peach,#fce7d3,
|
|
17810
17800
|
Nakabeni Pink,#c93756,
|
|
17811
|
-
Naked Lady,#d6b3a9,
|
|
17812
|
-
Naked Light,#e9b6c1,
|
|
17813
17801
|
Naked Noodle,#f7cb6e,x
|
|
17814
|
-
Naked Pink,#d8c6d6,
|
|
17815
17802
|
Naked Rose,#ebb5b3,
|
|
17816
17803
|
Namakabe Brown,#785e49,
|
|
17817
17804
|
Namara Grey,#7b7c7d,
|
|
@@ -18361,7 +18348,6 @@ Nuclear Mango,#ee9933,x
|
|
|
18361
18348
|
Nuclear Meltdown,#44ee00,x
|
|
18362
18349
|
Nuclear Throne,#00de00,x
|
|
18363
18350
|
Nuclear Waste,#7cfc00,
|
|
18364
|
-
Nude,#f2d3bc,
|
|
18365
18351
|
Nude Flamingo,#e58f7c,x
|
|
18366
18352
|
Nude Lips,#b5948d,x
|
|
18367
18353
|
Nugget,#bc9229,x
|
|
@@ -18960,22 +18946,6 @@ Organza,#ffdea6,
|
|
|
18960
18946
|
Organza Green,#bbccbd,
|
|
18961
18947
|
Organza Peach,#fbeeda,
|
|
18962
18948
|
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
18949
|
Origami,#ece0c6,
|
|
18980
18950
|
Origami White,#e5e2da,
|
|
18981
18951
|
Original White,#f0e5d3,
|
|
@@ -19400,9 +19370,8 @@ Paper Moon,#ead4a6,
|
|
|
19400
19370
|
Paper Plane,#f1ece0,x
|
|
19401
19371
|
Paper Sack,#b4a07a,
|
|
19402
19372
|
Paper Tiger,#fdf1af,
|
|
19403
|
-
Paper White,#
|
|
19373
|
+
Paper White,#f6efdf,x
|
|
19404
19374
|
Paperboy’s Lawn,#249148,
|
|
19405
|
-
Paperwhite,#f6efdf,x
|
|
19406
19375
|
Papier Blanc,#efeadc,
|
|
19407
19376
|
Papilio Argeotus,#8590ae,
|
|
19408
19377
|
Pappardelle Noodle,#f9ebcc,
|
|
@@ -21104,6 +21073,7 @@ Precious Copper,#885522,x
|
|
|
21104
21073
|
Precious Dewdrop,#f5f5e4,
|
|
21105
21074
|
Precious Emerald,#186e50,
|
|
21106
21075
|
Precious Garnet,#b7757c,
|
|
21076
|
+
Precious Jewels,#613a57,
|
|
21107
21077
|
Precious Nectar,#ffde9c,
|
|
21108
21078
|
Precious Oxley,#6d9a79,
|
|
21109
21079
|
Precious Pearls,#f1f0ef,
|
|
@@ -21708,6 +21678,7 @@ Radar,#b6c8e4,
|
|
|
21708
21678
|
Radar Blip Green,#96f97b,
|
|
21709
21679
|
Radiance,#bb9157,
|
|
21710
21680
|
Radiant Dawn,#ece2ce,
|
|
21681
|
+
Radiant Feather,#5500ff,
|
|
21711
21682
|
Radiant Foliage,#659c35,x
|
|
21712
21683
|
Radiant Glow,#ffeed2,
|
|
21713
21684
|
Radiant Hulk,#10f144,x
|
|
@@ -25412,7 +25383,6 @@ Spiced Up Orange,#e67a37,x
|
|
|
25412
25383
|
Spiced Vinegar,#cdba99,
|
|
25413
25384
|
Spiced Wine,#664942,
|
|
25414
25385
|
Spicy,#ff1111,
|
|
25415
|
-
Spicy and Oriental,#c75f26,
|
|
25416
25386
|
Spicy Berry,#cc3366,x
|
|
25417
25387
|
Spicy Cayenne,#9b5b4f,
|
|
25418
25388
|
Spicy Cinnamon,#a85624,x
|
|
@@ -29466,7 +29436,6 @@ Wild Maple,#ffe2c7,
|
|
|
29466
29436
|
Wild Mulberry,#a96388,
|
|
29467
29437
|
Wild Mushroom,#84704b,
|
|
29468
29438
|
Wild Mustang,#695649,
|
|
29469
|
-
Wild Nude,#beae8a,
|
|
29470
29439
|
Wild Oats,#ecdbc3,
|
|
29471
29440
|
Wild Olive,#9c8042,
|
|
29472
29441
|
Wild Orchid,#d979a2,
|
|
@@ -30185,6 +30154,7 @@ Zen,#cfd9de,x
|
|
|
30185
30154
|
Zen Blue,#99a4ba,
|
|
30186
30155
|
Zen Essence,#c6bfa7,
|
|
30187
30156
|
Zen Garden,#d1dac0,x
|
|
30157
|
+
Zen Garden Olive,#445533,x
|
|
30188
30158
|
Zen Retreat,#5b5d5c,
|
|
30189
30159
|
Zenith,#497a9f,x
|
|
30190
30160
|
Zenith Heights,#a6c8c7,
|