fix(05-02): single dark theme for code blocks — github-dark always, remove dual-theme CSS

This commit is contained in:
2026-04-21 16:35:06 +02:00
parent 81eda7e37e
commit 9f5e2e169e
2 changed files with 3 additions and 12 deletions
+2 -8
View File
@@ -7,15 +7,9 @@
scroll-margin-top: 5rem;
}
/* Code blocks: always dark regardless of color mode.
ProsePre wrapper owns the background (#0d1117).
Target pre span directly — .shiki class is absent when ProsePre overrides <pre>. */
.shiki, pre span {
color: var(--shiki-dark) !important;
/* Code blocks: single dark theme (github-dark), background transparent — ProsePre div owns #0d1117 */
pre span {
background-color: transparent !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
@theme {