Skip to content

Commit 20ae208

Browse files
docs: Add dark mode background and logo visibility fixes to pdoc docs (#806)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 6b747fe commit 20ae208

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/templates/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ body {
106106
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
107107
}
108108

109+
/* Logo styling - swap to light logo in dark mode for better visibility */
110+
@media (prefers-color-scheme: dark) {
111+
.logo {
112+
/* Replace the dark logo with the light logo in dark mode */
113+
content: url("https://docs.airbyte.com/img/logo-light.png");
114+
}
115+
}
116+
109117
/* Enhanced heading styles */
110118
h1, h2, h3, h4, h5, h6 {
111119
font-weight: 600;

docs/templates/theme.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,27 @@
2020
--def: #3f3bff;
2121
--annotation: #007020;
2222
}
23+
24+
/* Dark mode theme */
25+
@media (prefers-color-scheme: dark) {
26+
:root {
27+
--pdoc-background: #212529;
28+
}
29+
30+
.pdoc {
31+
--text: hsl(240, 10%, 90%);
32+
--muted: #9d9d9d;
33+
--link: #9492ff;
34+
--link-hover: #c8c7ff;
35+
--code: hsl(252, 25%, 18%);
36+
--active: #555;
37+
38+
--accent: hsl(240, 14%, 14%);
39+
--accent2: #555;
40+
41+
--nav-hover: rgba(0, 0, 0, 0.1);
42+
--name: #9492ff;
43+
--def: #8381ff;
44+
--annotation: #00c037;
45+
}
46+
}

0 commit comments

Comments
 (0)