Skip to content

Commit a818468

Browse files
committed
Fix some contrast issues
1 parent 43c6928 commit a818468

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

docs-app/.vitepress/theme/style.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,16 @@
155155
/**
156156
* Contrast fixes
157157
*/
158-
:root {
159-
--vp-code-lang-color: rgb(200,200,200);
158+
html {
159+
--vp-c-text-2: rgb(40, 40, 40);
160+
}
161+
html.dark {
160162
--vp-c-text-2: rgb(200, 200, 200);
161163
}
164+
165+
html [class*='language-'] > span.lang {
166+
--vp-code-lang-color: rgb(40,40,40);
167+
}
168+
html.dark [class*='language-'] > span.lang {
169+
--vp-code-lang-color: rgb(200,200,200);
170+
}

0 commit comments

Comments
 (0)