Skip to content

Commit cc314cc

Browse files
authored
fix: improve line highlighting contrast, light mode code blocks (#410)
1 parent 9e1d03b commit cc314cc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docusaurus.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ const config: Config = {
265265
"toml",
266266
"properties",
267267
],
268-
theme: themes.vsDark,
268+
theme: themes.vsLight,
269+
darkTheme: themes.vsDark,
269270
},
270271
algolia: {
271272
appId: "P1BCDPTG1Q",

src/css/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
:root {
2+
/* adjusted for VS Light theme */
3+
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 10%);
4+
25
--ifm-color-primary: #0240dc;
36
--ifm-color-primary-dark: #033ed5;
47
--ifm-color-secondary: #868686;
@@ -21,6 +24,9 @@
2124
}
2225

2326
html[data-theme="dark"] {
27+
/* adjusted for VS Dark theme */
28+
--docusaurus-highlighted-code-line-bg: rgb(66 66 66 / 35%);
29+
2430
--ifm-color-primary: #409efe;
2531
--ifm-color-primary-dark: #0175ec;
2632
--ifm-color-secondary: #ebedf0;

0 commit comments

Comments
 (0)