Skip to content

Commit

Permalink
fix: #356 code block text color in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jan 11, 2024
1 parent b3c7875 commit 4dd8ced
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/.vitepress/theme/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
--vp-code-block-bg: #2b2b2b;
}

// Since we force all code backgrounds to dark,
// we need to set an explicit base text color
// so that unhighlighted code blocks are readable. #356
.vp-doc div[class*="language-"] code {
color: var(--vp-c-bg)
}

.dark {
--vp-c-text-1: rgb(185, 185, 185);
--logo-text-color: #e7e7e7;
Expand Down

0 comments on commit 4dd8ced

Please sign in to comment.