We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ed53b commit 3885978Copy full SHA for 3885978
playground/src/preview.jsx
@@ -5,6 +5,7 @@ import { remarkCodeHike } from "@code-hike/mdx";
5
import { CH } from "@code-hike/mdx/components";
6
import "@code-hike/mdx/styles.css";
7
import { ErrorBoundary } from "react-error-boundary";
8
+import theme from "shiki/themes/material-darker.json";
9
10
export function Preview(props) {
11
return (
@@ -30,7 +31,7 @@ function InnerPreview({ code }) {
30
31
useEffect(() => {
32
compile(code, {
33
outputFormat: "function-body",
- remarkPlugins: [[remarkCodeHike, { autoImport: false }]],
34
+ remarkPlugins: [[remarkCodeHike, { autoImport: false, theme }]],
35
})
36
.then((c) => {
37
return run(String(c), runtime);
0 commit comments