summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ming-jun Lu <40516784+mingjunlu@users.noreply.github.com> 2024-07-01 17:15:35 +0800
committerGravatar GitHub <noreply@github.com> 2024-07-01 10:15:35 +0100
commit3a223b4811708cc93ebb27706118c1723e1fc013 (patch)
tree6ee6e071f5595d69b471f2343031bdc07bd5a08e
parente60aab9a9f2510c4ebc037b673bb665b8e754854 (diff)
downloadastro-3a223b4811708cc93ebb27706118c1723e1fc013.tar.gz
astro-3a223b4811708cc93ebb27706118c1723e1fc013.tar.zst
astro-3a223b4811708cc93ebb27706118c1723e1fc013.zip
fix(overlay): adjust the color of punctuations (#11388)
* fix(overlay): adjust the color of punctuations * chore: add changeset
-rw-r--r--.changeset/fair-wolves-move.md5
-rw-r--r--packages/astro/src/core/errors/overlay.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/fair-wolves-move.md b/.changeset/fair-wolves-move.md
new file mode 100644
index 000000000..8e64bbf96
--- /dev/null
+++ b/.changeset/fair-wolves-move.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Adjusts the color of punctuations in error overlay.
diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts
index 02303409d..4a7818d66 100644
--- a/packages/astro/src/core/errors/overlay.ts
+++ b/packages/astro/src/core/errors/overlay.ts
@@ -76,7 +76,7 @@ const style = /* css */ `
--astro-code-token-parameter: #aa0000;
--astro-code-token-function: #4ca48f;
--astro-code-token-string-expression: #9f722a;
- --astro-code-token-punctuation: #ffffff;
+ --astro-code-token-punctuation: #000000;
--astro-code-token-link: #9f722a;
}