From 77d60a297617c0256fbe4905ac6e3bb7cd4de9eb Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 13 Mar 2024 15:04:26 +0100 Subject: [PATCH] Regenerate CSS Removes some duplicated CSS variables and changes the color of `comment` tokens. --- package.json | 3 +-- style/both.css | 32 +------------------------------- style/colorblind-light.css | 2 +- style/colorblind.css | 2 +- style/dimmed.css | 32 +------------------------------- style/high-contrast-light.css | 2 +- style/high-contrast.css | 2 +- style/light.css | 32 +------------------------------- style/tritanopia-light.css | 2 +- style/tritanopia.css | 2 +- 10 files changed, 10 insertions(+), 101 deletions(-) diff --git a/package.json b/package.json index d9061d3..f2fa7a1 100644 --- a/package.json +++ b/package.json @@ -84,8 +84,7 @@ "generate-css": "node --conditions development script/css.js", "generate-crawl": "gem install github-linguist -i gems", "generate-list": "node --conditions development script/list.js", - "#": " && npm run generate-css", - "generate": "npm run generate-build && npm run generate-list", + "generate": "npm run generate-build && npm run generate-list && npm run generate-css", "prepack": "npm run build && npm run format", "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", "test": "npm run generate && npm run build && npm run format && npm run test-coverage", diff --git a/style/both.css b/style/both.css index 01fe4fe..0cb8092 100644 --- a/style/both.css +++ b/style/both.css @@ -2,37 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; - --color-prettylights-syntax-constant: #0550ae; - --color-prettylights-syntax-entity: #6639ba; - --color-prettylights-syntax-storage-modifier-import: #24292f; - --color-prettylights-syntax-entity-tag: #116329; - --color-prettylights-syntax-keyword: #cf222e; - --color-prettylights-syntax-string: #0a3069; - --color-prettylights-syntax-variable: #953800; - --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; - --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; - --color-prettylights-syntax-invalid-illegal-bg: #82071e; - --color-prettylights-syntax-carriage-return-text: #f6f8fa; - --color-prettylights-syntax-carriage-return-bg: #cf222e; - --color-prettylights-syntax-string-regexp: #116329; - --color-prettylights-syntax-markup-list: #3b2300; - --color-prettylights-syntax-markup-heading: #0550ae; - --color-prettylights-syntax-markup-italic: #24292f; - --color-prettylights-syntax-markup-bold: #24292f; - --color-prettylights-syntax-markup-deleted-text: #82071e; - --color-prettylights-syntax-markup-deleted-bg: #ffebe9; - --color-prettylights-syntax-markup-inserted-text: #116329; - --color-prettylights-syntax-markup-inserted-bg: #dafbe1; - --color-prettylights-syntax-markup-changed-text: #953800; - --color-prettylights-syntax-markup-changed-bg: #ffd8b5; - --color-prettylights-syntax-markup-ignored-text: #eaeef2; - --color-prettylights-syntax-markup-ignored-bg: #0550ae; - --color-prettylights-syntax-meta-diff-range: #8250df; - --color-prettylights-syntax-brackethighlighter-angle: #57606a; - --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; - --color-prettylights-syntax-constant-other-reference-link: #0a3069; - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/colorblind-light.css b/style/colorblind-light.css index fe37635..c26cb65 100644 --- a/style/colorblind-light.css +++ b/style/colorblind-light.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/colorblind.css b/style/colorblind.css index 0d3cf1d..7f1b69a 100644 --- a/style/colorblind.css +++ b/style/colorblind.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/dimmed.css b/style/dimmed.css index d65e6af..c60d86a 100644 --- a/style/dimmed.css +++ b/style/dimmed.css @@ -2,37 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; - --color-prettylights-syntax-constant: #0550ae; - --color-prettylights-syntax-entity: #6639ba; - --color-prettylights-syntax-storage-modifier-import: #24292f; - --color-prettylights-syntax-entity-tag: #116329; - --color-prettylights-syntax-keyword: #cf222e; - --color-prettylights-syntax-string: #0a3069; - --color-prettylights-syntax-variable: #953800; - --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; - --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; - --color-prettylights-syntax-invalid-illegal-bg: #82071e; - --color-prettylights-syntax-carriage-return-text: #f6f8fa; - --color-prettylights-syntax-carriage-return-bg: #cf222e; - --color-prettylights-syntax-string-regexp: #116329; - --color-prettylights-syntax-markup-list: #3b2300; - --color-prettylights-syntax-markup-heading: #0550ae; - --color-prettylights-syntax-markup-italic: #24292f; - --color-prettylights-syntax-markup-bold: #24292f; - --color-prettylights-syntax-markup-deleted-text: #82071e; - --color-prettylights-syntax-markup-deleted-bg: #ffebe9; - --color-prettylights-syntax-markup-inserted-text: #116329; - --color-prettylights-syntax-markup-inserted-bg: #dafbe1; - --color-prettylights-syntax-markup-changed-text: #953800; - --color-prettylights-syntax-markup-changed-bg: #ffd8b5; - --color-prettylights-syntax-markup-ignored-text: #eaeef2; - --color-prettylights-syntax-markup-ignored-bg: #0550ae; - --color-prettylights-syntax-meta-diff-range: #8250df; - --color-prettylights-syntax-brackethighlighter-angle: #57606a; - --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; - --color-prettylights-syntax-constant-other-reference-link: #0a3069; - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/high-contrast-light.css b/style/high-contrast-light.css index ac0bb56..a161a8e 100644 --- a/style/high-contrast-light.css +++ b/style/high-contrast-light.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #66707b; + --color-prettylights-syntax-comment: #4b535d; --color-prettylights-syntax-constant: #023b95; --color-prettylights-syntax-entity: #512598; --color-prettylights-syntax-storage-modifier-import: #0e1116; diff --git a/style/high-contrast.css b/style/high-contrast.css index b11eb86..0b3b5ce 100644 --- a/style/high-contrast.css +++ b/style/high-contrast.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #66707b; + --color-prettylights-syntax-comment: #4b535d; --color-prettylights-syntax-constant: #023b95; --color-prettylights-syntax-entity: #512598; --color-prettylights-syntax-storage-modifier-import: #0e1116; diff --git a/style/light.css b/style/light.css index 13f25f0..66993d8 100644 --- a/style/light.css +++ b/style/light.css @@ -2,37 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; - --color-prettylights-syntax-constant: #0550ae; - --color-prettylights-syntax-entity: #6639ba; - --color-prettylights-syntax-storage-modifier-import: #24292f; - --color-prettylights-syntax-entity-tag: #116329; - --color-prettylights-syntax-keyword: #cf222e; - --color-prettylights-syntax-string: #0a3069; - --color-prettylights-syntax-variable: #953800; - --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; - --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; - --color-prettylights-syntax-invalid-illegal-bg: #82071e; - --color-prettylights-syntax-carriage-return-text: #f6f8fa; - --color-prettylights-syntax-carriage-return-bg: #cf222e; - --color-prettylights-syntax-string-regexp: #116329; - --color-prettylights-syntax-markup-list: #3b2300; - --color-prettylights-syntax-markup-heading: #0550ae; - --color-prettylights-syntax-markup-italic: #24292f; - --color-prettylights-syntax-markup-bold: #24292f; - --color-prettylights-syntax-markup-deleted-text: #82071e; - --color-prettylights-syntax-markup-deleted-bg: #ffebe9; - --color-prettylights-syntax-markup-inserted-text: #116329; - --color-prettylights-syntax-markup-inserted-bg: #dafbe1; - --color-prettylights-syntax-markup-changed-text: #953800; - --color-prettylights-syntax-markup-changed-bg: #ffd8b5; - --color-prettylights-syntax-markup-ignored-text: #eaeef2; - --color-prettylights-syntax-markup-ignored-bg: #0550ae; - --color-prettylights-syntax-meta-diff-range: #8250df; - --color-prettylights-syntax-brackethighlighter-angle: #57606a; - --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; - --color-prettylights-syntax-constant-other-reference-link: #0a3069; - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/tritanopia-light.css b/style/tritanopia-light.css index bbdb1a8..ff22d5b 100644 --- a/style/tritanopia-light.css +++ b/style/tritanopia-light.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f; diff --git a/style/tritanopia.css b/style/tritanopia.css index 998b56e..da228f3 100644 --- a/style/tritanopia.css +++ b/style/tritanopia.css @@ -2,7 +2,7 @@ * It’s based on what GitHub uses on their site. * See for more info. */ :root { - --color-prettylights-syntax-comment: #6e7781; + --color-prettylights-syntax-comment: #57606a; --color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-storage-modifier-import: #24292f;