diff options
| author | Adam <[email protected]> | 2025-11-07 12:48:12 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-11-07 12:48:17 -0600 |
| commit | 3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb (patch) | |
| tree | 29d1d3e919aee5d34051582b7354706ad3cf0481 /packages/ui/src/components/code.tsx | |
| parent | 4463d319c97ab167022b056aa199396bd97762e4 (diff) | |
| download | opencode-3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb.tar.gz opencode-3a1d1a6284b66aaf385c3c97bb842a8e1d8985cb.zip | |
feat(desktop): custom syntax colors
Diffstat (limited to 'packages/ui/src/components/code.tsx')
| -rw-r--r-- | packages/ui/src/components/code.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/ui/src/components/code.tsx b/packages/ui/src/components/code.tsx index a31649788..6b95e6653 100644 --- a/packages/ui/src/components/code.tsx +++ b/packages/ui/src/components/code.tsx @@ -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, |
