Skip to content

Commit 449feba

Browse files
committed
fix: Apply Shiki font-style and font-weight CSS variables
1 parent 0e89b3d commit 449feba

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/.vitepress/theme/custom.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@
1717
--vp-c-brand-3: #7c3aed;
1818
}
1919

20+
/* Apply Shiki font-style and font-weight CSS variables */
21+
.vp-code span {
22+
font-style: var(--shiki-light-font-style, inherit);
23+
font-weight: var(--shiki-light-font-weight, inherit);
24+
}
25+
26+
.dark .vp-code span {
27+
font-style: var(--shiki-dark-font-style, inherit);
28+
font-weight: var(--shiki-dark-font-weight, inherit);
29+
}
30+
2031
/* Playground styles */
2132
.djot-playground {
2233
margin: 2rem 0;

0 commit comments

Comments
 (0)