fix codeblock styles

This commit is contained in:
2025-11-14 19:21:30 -05:00
parent a68115049d
commit 08324cbebe
4 changed files with 28 additions and 2 deletions
+16
View File
@@ -136,3 +136,19 @@ kbd {
.icon-button > svg {
color: var(--text);
}
/* shiki */
.astro-code,
.astro-code span {
background-color: var(--background) !important;
/* Optional, if you also want font styles */
font-style: var(--shiki-light-font-style);
font-weight: var(--shiki-light-font-weight);
text-decoration: var(--shiki-light-text-decoration);
}
.theme-dark .astro-code,
.theme-dark .astro-code span {
color: var(--shiki-dark) !important;
}