Skip to content
Merged
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
15 changes: 15 additions & 0 deletions apps/docs/app/styles/geistdocs.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,18 @@ div[data-streamdown="code-block-body"] > pre {
:root:not(.dark-theme) {
--color-fd-muted-foreground: var(--ds-gray-900);
}

/* @vercel/geistdocs 3.1.5 styles `[&_code]` with `!important` on Callouts
(tinted background, text color, and 12px font size). That selector also
matches `<pre><code>` inside fenced code blocks, painting a tinted
background behind Shiki tokens and failing dark-mode color contrast. Keep
this in `@layer utilities` because CSS cascade layers invert for
`!important`, so higher specificity inside the same layer is required to
override Tailwind's `[&_code]:*!` utilities. */
@layer utilities {
.geistdocs-callout pre > code {
background-color: transparent !important;
color: var(--ds-gray-1000) !important;
font-size: 13px !important;
}
}