Skip to content

Commit ba83a16

Browse files
committed
fix
1 parent 9693f1a commit ba83a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CodeTabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from "react";
2-
import { codeToHtml } from "shiki";
2+
import { codeToHtml, } from "shiki";
33
import { Home, Route, Code2, Cog, Shield } from "lucide-react";
44

55
type Section = "Entry" | "Router" | "Controller" | "Service" | "Middleware";
@@ -98,7 +98,7 @@ export default function CodeTabs() {
9898

9999
useEffect(() => {
100100
const { code, lang } = FILES[active];
101-
codeToHtml(code, { lang, theme: "nord" }).then((html) => {
101+
codeToHtml(code, { lang, theme: "github-dark" }).then((html) => {
102102
const clean = html.replace(/background-color:[^;"]+;?/g, "");
103103
setHighlighted(clean);
104104
});

0 commit comments

Comments
 (0)