mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-25 19:54:22 +01:00
feat(desktop): custom syntax colors
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user