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 843589c commit ad6e83bCopy full SHA for ad6e83b
lib/Code/Code.css
@@ -0,0 +1,9 @@
1
+html.dark .code-block,
2
+html.dark .code-block span {
3
+ color: var(--shiki-dark) !important;
4
+ background-color: var(--shiki-dark-bg) !important;
5
+ /* Optional, if you also want font styles */
6
+ font-style: var(--shiki-dark-font-style) !important;
7
+ font-weight: var(--shiki-dark-font-weight) !important;
8
+ text-decoration: var(--shiki-dark-text-decoration) !important;
9
+}
lib/Code/Code.tsx
@@ -4,6 +4,7 @@ import { codeToHast } from 'shiki';
import { Components, toJsxRuntime } from 'hast-util-to-jsx-runtime';
import { Fragment } from 'react';
import { jsx, jsxs } from 'react/jsx-runtime';
+import './Code.css';
interface Props {
10
children: string;
0 commit comments