@@ -5,7 +5,7 @@ import { ExecFile } from "../terminal/exec";
55import { useChangeTheme } from "./themeToggle" ;
66import {
77 tomorrow ,
8- atomOneDark ,
8+ tomorrowNight ,
99} from "react-syntax-highlighter/dist/esm/styles/hljs" ;
1010import { ReactNode } from "react" ;
1111import { getRuntimeLang } from "@/terminal/runtime" ;
@@ -45,7 +45,7 @@ const components: Components = {
4545 < strong className = "text-primary" { ...props } />
4646 ) ,
4747 table : ( { node, ...props } ) => (
48- < div className = "w-max max-w-full overflow-x-auto mx-auto my-2 rounded-box border border-base-content/5 shadow-sm" >
48+ < div className = "w-max max-w-full overflow-x-auto mx-auto my-2 rounded-box border border-current/20 shadow-sm" >
4949 < table className = "table w-max" { ...props } />
5050 </ div >
5151 ) ,
@@ -94,7 +94,7 @@ function CodeComponent({
9494 [ key : string ] : unknown ;
9595} ) {
9696 const theme = useChangeTheme ( ) ;
97- const codetheme = theme === "tomorrow" ? tomorrow : atomOneDark ;
97+ const codetheme = theme === "tomorrow" ? tomorrow : tomorrowNight ;
9898 const match = / ^ l a n g u a g e - ( \w + ) ( - r e p l | - e x e c | - r e a d o n l y ) ? \: ? ( .+ ) ? $ / . exec (
9999 className || ""
100100 ) ;
@@ -152,7 +152,7 @@ function CodeComponent({
152152 < SyntaxHighlighter
153153 language = { match [ 1 ] }
154154 PreTag = "div"
155- className = "border border-base-300 mx-2 my-2 rounded-box p-4!"
155+ className = "border border-current/20 mx-2 my-2 rounded-box p-4!"
156156 style = { codetheme }
157157 { ...props }
158158 >
@@ -164,7 +164,7 @@ function CodeComponent({
164164 return (
165165 < SyntaxHighlighter
166166 PreTag = "div"
167- className = "border border-base-300 mx-2 my-2 rounded-box p-4!"
167+ className = "border border-current/20 mx-2 my-2 rounded-box p-4!"
168168 style = { codetheme }
169169 { ...props }
170170 >
0 commit comments