color-name-list 10.26.1 → 10.28.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/README.md +3 -3
- package/changes.svg +3 -3
- package/dist/colornames.bestof.csv +4 -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 +16 -0
- package/dist/colornames.bestof.yaml +12 -0
- package/dist/colornames.csv +6 -0
- 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 +2 -0
- 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 +8 -0
- package/dist/colornames.short.yaml +6 -0
- package/dist/colornames.umd.js +1 -1
- package/dist/colornames.xml +24 -0
- package/dist/colornames.yaml +18 -0
- package/dist/history.json +1 -1
- package/package.json +1 -1
- package/scripts/build.js +21 -16
- package/src/colornames.csv +6 -0
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
|
|
@@ -5900,6 +5901,7 @@ Clytemnestra,#e8e2e0,
|
|
|
5900
5901
|
Co Pilot,#4978a9,
|
|
5901
5902
|
CO₂,#cadfec,
|
|
5902
5903
|
Coach Green,#003527,
|
|
5904
|
+
Coal Hard Truth,#3b3b3d,x
|
|
5903
5905
|
Coal Mine,#54555d,
|
|
5904
5906
|
Coal Miner,#777872,
|
|
5905
5907
|
Coalmine,#220033,x
|
|
@@ -14599,6 +14601,7 @@ Lavender Violet,#767ba5,
|
|
|
14599
14601
|
Lavender Vista,#e3d7e5,
|
|
14600
14602
|
Lavender Wash,#aab0d4,
|
|
14601
14603
|
Lavender Water,#d2c9df,
|
|
14604
|
+
Lavendless,#b86fc2,x
|
|
14602
14605
|
Lavendula,#bca4cb,
|
|
14603
14606
|
Lavish Gold,#a38154,
|
|
14604
14607
|
Lavish Lavender,#c2aec3,
|
|
@@ -16519,6 +16522,7 @@ Mellow Apricot,#f8b878,x
|
|
|
16519
16522
|
Mellow Blue,#d7e2dd,
|
|
16520
16523
|
Mellow Buff,#d5af91,
|
|
16521
16524
|
Mellow Coral,#e0897e,
|
|
16525
|
+
Mellow Drama,#ffc65f,x
|
|
16522
16526
|
Mellow Flower,#f1dfe9,
|
|
16523
16527
|
Mellow Glow,#ffcfad,
|
|
16524
16528
|
Mellow Green,#d5d593,
|
|
@@ -19612,6 +19616,7 @@ Peaceful Rain,#f1fbf1,
|
|
|
19612
19616
|
Peaceful River,#47a0d2,
|
|
19613
19617
|
Peach,#ffb07c,x
|
|
19614
19618
|
Peach Amber,#fb9f93,
|
|
19619
|
+
Peach and Quiet,#ffccb6,x
|
|
19615
19620
|
Peach Ash,#efc4bb,
|
|
19616
19621
|
Peach Beach,#fdcfa1,x
|
|
19617
19622
|
Peach Beauty,#e7c3ab,
|
|
@@ -24671,6 +24676,7 @@ Slate,#516572,
|
|
|
24671
24676
|
Slate Black,#4b3d33,
|
|
24672
24677
|
Slate Blue,#5b7c99,
|
|
24673
24678
|
Slate Brown,#a0987c,
|
|
24679
|
+
Slate Expectations,#6e7f8d,
|
|
24674
24680
|
Slate Green,#658d6d,
|
|
24675
24681
|
Slate Grey,#59656d,
|
|
24676
24682
|
Slate Mauve,#625c63,
|