Skip to content

Commit 846f417

Browse files
authored
Fix code sample contrast in dark mode (#210)
1 parent 5098073 commit 846f417

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/website/src/styles/global.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
--bg-color: #1a1a1a;
3434
--border-color: #444;
3535
--link-color: #66b3ff;
36-
--code-bg: #1e1e1e;
37-
--code-text: #d4d4d4;
38-
--code-keyword: #569cd6;
39-
--code-string: #ce9178;
40-
--code-comment: #6a9955;
36+
--code-bg: #0d1117;
37+
--code-text: #f0f6fc;
38+
--code-keyword: #79c0ff;
39+
--code-string: #a5d6ff;
40+
--code-comment: #8b949e;
4141
--header-bg: #0a0a0a;
4242
--nav-bg: #7744bb;
4343
--feature-bg: #2d2d2d;
@@ -228,6 +228,7 @@ main {
228228
margin: 1rem 0;
229229
border: 1px solid var(--border-color);
230230
line-height: 1.5;
231+
font-weight: 400;
231232
}
232233

233234
.doc-content pre code {

0 commit comments

Comments
 (0)