Skip to content

Commit d7d088d

Browse files
committed
chore: fix --vp-code-color on light theme
1 parent 6d72943 commit d7d088d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

docs/.vitepress/theme/styles.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,18 @@
1111
* - footer
1212
*/
1313
--color-grey: #867e8e;
14-
/* TODO: code block (remove this once fixed at void0 theme) */
15-
--vp-code-color: #007d38;
1614
}
1715

1816
:root.dark:not([data-theme])[data-variant="vitest"],
1917
:root[data-theme="dark"][data-variant="vitest"] {
2018
--color-brand: var(--color-zest);
21-
/* TODO: code block is fine on dark mode (remove this once fixed at void0 theme) */
22-
--vp-code-color: var(--vp-c-brand-1);
2319
}
2420

21+
:root[data-variant="vitest"]:not(.dark):not([data-theme="light"]),
2522
:root[data-theme="light"][data-variant="vitest"] {
2623
--color-brand: #008039;
24+
/* TODO: code block (remove this once fixed at void0 theme) */
25+
--vp-code-color: #007d38;
2726
}
2827

2928

0 commit comments

Comments
 (0)