fix(theme): update code block styles to use useTheme hook value

This commit is contained in:
cfngc4594 2025-03-09 20:30:02 +08:00
parent 0868f45a10
commit 8c847018f0

View File

@ -121,10 +121,8 @@ code[data-theme*=" "] span {
background-color: var(--shiki-light-bg);
}
@media (prefers-color-scheme: dark) {
code[data-theme*=" "],
code[data-theme*=" "] span {
.dark code[data-theme*=" "],
.dark code[data-theme*=" "] span {
color: var(--shiki-dark);
background-color: var(--shiki-dark-bg);
}
}