color-name-list 10.27.0 → 10.28.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/README.md +63 -5
- package/dist/colornames.bestof.csv +2 -0
- 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 +8 -0
- package/dist/colornames.bestof.yaml +6 -0
- package/dist/colornames.csv +5 -1
- 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 +17 -1
- package/dist/colornames.yaml +13 -1
- package/dist/history.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +21 -16
- package/src/colornames.csv +6 -2
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -418,22 +418,27 @@ const svgTpl = fs.readFileSync(
|
|
|
418
418
|
|
|
419
419
|
// generates an SVG image with the new color based on the diff ot the last commit to the current
|
|
420
420
|
function diffSVG() {
|
|
421
|
-
exec(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
421
|
+
exec(
|
|
422
|
+
`git diff -U0 HEAD ${baseFolder}${folderDist}${fileNameSrc}.csv | tr -d '\\n'`,
|
|
423
|
+
function (err, stdout, stderr) {
|
|
424
|
+
const diffTxt = stdout;
|
|
425
|
+
if (!/(?<=^[\+])[^\+].*/gm.test(diffTxt)) return;
|
|
426
|
+
const changes = diffTxt.match(/(?<=^[\+])[^\+].*/gm).filter((i) => i);
|
|
427
|
+
const svgTxtStr = changes.reduce((str, change, i) => {
|
|
428
|
+
const changeParts = change.split(",");
|
|
429
|
+
return `${str}<text x="40" y="${20 + (i + 1) * 70}" fill="${
|
|
430
|
+
changeParts[1]
|
|
431
|
+
}">${changeParts[0].replace(/&/g, "&")}</text>`;
|
|
432
|
+
}, "");
|
|
433
|
+
|
|
434
|
+
fs.writeFileSync(
|
|
435
|
+
path.normalize(`${baseFolder}changes.svg`),
|
|
436
|
+
svgTpl
|
|
437
|
+
.replace(/{height}/g, changes.length * 70 + 80)
|
|
438
|
+
.replace(/{items}/g, svgTxtStr)
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
);
|
|
437
442
|
};
|
|
438
443
|
|
|
439
444
|
diffSVG();
|
package/src/colornames.csv
CHANGED
|
@@ -2345,6 +2345,7 @@ Berry Chocolate,#3f000f,
|
|
|
2345
2345
|
Berry Conserve,#765269,
|
|
2346
2346
|
Berry Cream,#9a8ca2,
|
|
2347
2347
|
Berry Crush,#aa6772,
|
|
2348
|
+
Berry Curious,#9b1c5d,
|
|
2348
2349
|
Berry Frappé,#b3a1c6,
|
|
2349
2350
|
Berry Frost,#ebded7,
|
|
2350
2351
|
Berry Good,#edc3c5,x
|
|
@@ -14356,7 +14357,7 @@ Lady Nicole,#d6d6cd,
|
|
|
14356
14357
|
Lady of the Night,#05498b,
|
|
14357
14358
|
Lady of the Sea,#0000cc,
|
|
14358
14359
|
Lady Pink,#f3d2cf,
|
|
14359
|
-
Lady
|
|
14360
|
+
Lady’s Cushions Pink,#c99bb0,
|
|
14360
14361
|
Lady’s Slipper,#e3e3ea,
|
|
14361
14362
|
Ladybug,#bd474e,
|
|
14362
14363
|
Ladylike,#ffc3bf,
|
|
@@ -19615,6 +19616,7 @@ Peaceful Rain,#f1fbf1,
|
|
|
19615
19616
|
Peaceful River,#47a0d2,
|
|
19616
19617
|
Peach,#ffb07c,x
|
|
19617
19618
|
Peach Amber,#fb9f93,
|
|
19619
|
+
Peach and Quiet,#ffccb6,x
|
|
19618
19620
|
Peach Ash,#efc4bb,
|
|
19619
19621
|
Peach Beach,#fdcfa1,x
|
|
19620
19622
|
Peach Beauty,#e7c3ab,
|
|
@@ -24674,6 +24676,7 @@ Slate,#516572,
|
|
|
24674
24676
|
Slate Black,#4b3d33,
|
|
24675
24677
|
Slate Blue,#5b7c99,
|
|
24676
24678
|
Slate Brown,#a0987c,
|
|
24679
|
+
Slate Expectations,#6e7f8d,
|
|
24677
24680
|
Slate Green,#658d6d,
|
|
24678
24681
|
Slate Grey,#59656d,
|
|
24679
24682
|
Slate Mauve,#625c63,
|
|
@@ -30236,4 +30239,5 @@ Zumthor,#cdd5d5,
|
|
|
30236
30239
|
Zunda Green,#6bc026,x
|
|
30237
30240
|
Zuni,#008996,
|
|
30238
30241
|
Zürich Blue,#248bcc,
|
|
30239
|
-
Zürich White,#e6e1d9,
|
|
30242
|
+
Zürich White,#e6e1d9,
|
|
30243
|
+
Rrosy-Fingered Dawn,#c11c84,x
|