diff --git a/src/components/InlineEditor.astro b/src/components/InlineEditor.astro index 6dca380..c4f760b 100644 --- a/src/components/InlineEditor.astro +++ b/src/components/InlineEditor.astro @@ -1,12 +1,24 @@ --- import { Code } from "astro:components"; +import lightPlus from "@shikijs/themes/light-plus"; const { code } = Astro.props; import flixGrammar from "../grammars/flix.tmLanguage.json"; + +// Light+ colors `keyword`/`storage` blue but `keyword.control` magenta; +// unify them so all Flix keywords share the magenta. +const theme = { + ...lightPlus, + name: "light-plus-flix", + tokenColors: [ + ...(lightPlus.tokenColors ?? []), + { scope: ["keyword", "storage"], settings: { foreground: "#AF00DB" } }, + ], +}; ---
+