Skip to content
Open
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
16 changes: 15 additions & 1 deletion apps/docs/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,18 @@
#nd-sidebar { @apply mt-[146px]!; }
:root { --fd-layout-width: 1308px; --fd-page-width: 100%; }
#nd-page > article { @apply pt-[76px]!; }
#nd-tocnav { @apply top-[53px]!; }
#nd-tocnav { @apply top-[53px]!; }

@layer base {
/* 当处于暗色模式时,强制覆盖 Shiki 的行内 color */
.dark pre[style*="--shiki-dark"],
.dark code[style*="--shiki-dark"] {
color: var(--shiki-dark) !important;
background-color: #0d1117 !important;
}

/* 针对 span 级别的语法高亮颜色 */
.dark span[style*="--shiki-dark"] {
color: var(--shiki-dark) !important;
}
}