Skip to content

Commit eca0588

Browse files
fjbarrettclaude
andauthored
chore: use the lighter palette tones for syntax highlighting (#140)
Shift the Shiki theme to the lighter end of each palette ramp (light pink keywords, light green strings, light blue functions, light orange constants) so code reads more softly against the dark editor. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 542fa63 commit eca0588

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

lib/shikiTheme.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@ export const keepPaletteTheme = {
1111
"editor.foreground": "#ececee",
1212
"editor.background": "#00000000",
1313
},
14+
// Uses the lighter end of each palette ramp so code reads softly on the dark UI.
1415
tokenColors: [
1516
{ scope: ["comment", "punctuation.definition.comment"], settings: { foreground: "#717179", fontStyle: "italic" } },
1617
{
1718
scope: ["keyword", "storage", "storage.type", "storage.modifier", "keyword.control", "keyword.operator.new", "constant.language", "variable.language"],
18-
settings: { foreground: "#f80058" },
19+
settings: { foreground: "#fb70a1" },
1920
},
2021
{ scope: ["entity.name.tag", "keyword.operator.expression"], settings: { foreground: "#fb4082" } },
2122
{
2223
scope: ["string", "string.quoted", "string.template", "punctuation.definition.string", "constant.other.symbol"],
23-
settings: { foreground: "#88fb13" },
24+
settings: { foreground: "#b7fc71" },
2425
},
25-
{ scope: ["constant.numeric", "constant", "constant.character", "support.constant", "keyword.other.unit"], settings: { foreground: "#ffb313" } },
26-
{ scope: ["entity.name.function", "support.function", "meta.function-call.generic", "variable.function"], settings: { foreground: "#527ef3" } },
27-
{ scope: ["entity.name.type", "entity.name.class", "support.type", "support.class", "entity.other.inherited-class"], settings: { foreground: "#7c9df5" } },
28-
{ scope: ["entity.other.attribute-name", "variable.parameter"], settings: { foreground: "#ffc242" } },
26+
{ scope: ["constant.numeric", "constant", "constant.character", "support.constant", "keyword.other.unit"], settings: { foreground: "#ffd272" } },
27+
{ scope: ["entity.name.function", "support.function", "meta.function-call.generic", "variable.function"], settings: { foreground: "#7c9df5" } },
28+
{ scope: ["entity.name.type", "entity.name.class", "support.type", "support.class", "entity.other.inherited-class"], settings: { foreground: "#9ffc41" } },
29+
{ scope: ["entity.other.attribute-name", "variable.parameter"], settings: { foreground: "#ffd272" } },
2930
{ scope: ["variable", "variable.other", "meta.definition.variable", "support.variable"], settings: { foreground: "#ececee" } },
3031
{ scope: ["punctuation", "meta.brace", "meta.delimiter", "keyword.operator"], settings: { foreground: "#8f8f98" } },
31-
{ scope: ["markup.heading", "entity.name.section"], settings: { foreground: "#527ef3", fontStyle: "bold" } },
32-
{ scope: ["markup.bold"], settings: { foreground: "#ffb313", fontStyle: "bold" } },
33-
{ scope: ["markup.italic"], settings: { foreground: "#88fb13", fontStyle: "italic" } },
32+
{ scope: ["markup.heading", "entity.name.section"], settings: { foreground: "#7c9df5", fontStyle: "bold" } },
33+
{ scope: ["markup.bold"], settings: { foreground: "#ffd272", fontStyle: "bold" } },
34+
{ scope: ["markup.italic"], settings: { foreground: "#b7fc71", fontStyle: "italic" } },
3435
{ scope: ["markup.inline.raw", "markup.fenced_code"], settings: { foreground: "#9ffc41" } },
3536
{ scope: ["markup.underline.link", "string.other.link"], settings: { foreground: "#7c9df5" } },
3637
],

0 commit comments

Comments
 (0)