Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/docs/app/styles/geistdocs.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
html {
text-rendering: optimizelegibility;
}

/* Shiki dark mode styles */
html.dark .shiki,
html.dark .shiki span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
/* Optional, if you also want font styles */
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}

body {
@apply min-h-dvh;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/components/custom/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Preview = async ({ path, className }: ComponentPreviewProps) => {
</CodeBlockTab>
<CodeBlockTab className="p-0" value="code">
<div className="not-prose h-[600px] overflow-y-auto">
<CodeBlock>
<CodeBlock className="pt-0">
{/** biome-ignore lint/security/noDangerouslySetInnerHtml: "this is needed." */}
<pre dangerouslySetInnerHTML={{ __html: highlightedCode }} />
</CodeBlock>
Expand Down