feat(desktop): custom syntax colors

This commit is contained in:
Adam
2025-11-07 12:48:12 -06:00
parent 4463d319c9
commit 3a1d1a6284
9 changed files with 1622 additions and 3591 deletions

View File

@@ -14,7 +14,8 @@ export function Code<T>(props: CodeProps<T>) {
createEffect(() => {
const instance = new File<T>({
theme: { dark: "oc-1-dark", light: "oc-1-light" }, // or any Shiki theme
theme: { dark: "oc-1-dark", light: "oc-1-light" },
// theme: { dark: "pierre-dark", light: "pierre-light" },
overflow: "wrap", // or 'scroll'
themeType: "system", // 'system', 'light', or 'dark'
disableFileHeader: true,