Skip to content

Commit 6fe793b

Browse files
committed
refactor(code-explorer): use geist theme instead of css variables
1 parent 1368440 commit 6fe793b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/api/code-explorer/[...path].get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { parseMarkdown, type MarkdownDocument } from 'comark'
33
import rangi from 'comark/plugins/rangi'
44
import fs from 'comark-content/sources/fs'
55
import github from 'comark-content/sources/github'
6-
import { cssVariables } from 'rangi/themes'
6+
import { geistTheme } from '../../../utils/geist-theme.ts'
77

88
// A read source for one example directory. Dev: working tree. Prod: authenticated GitHub — the repo may be
99
// private, so jsDelivr / unauthenticated raw are out. Mirrors {@link contentSource}'s dev/prod split.
@@ -93,7 +93,7 @@ export default defineEventHandler(async (event) => {
9393
}
9494

9595
const highlightPlugin = rangi({
96-
theme: cssVariables,
96+
theme: geistTheme,
9797
})
9898
const fileResults: Record<string, MarkdownDocument> = {}
9999

0 commit comments

Comments
 (0)