Skip to content

Commit ce5e097

Browse files
committed
Docs: switch to dark color scheme + add dark-moke custom CSS
1 parent cf90826 commit ce5e097

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

docs/_config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ baseurl: "/gitfetch"
66

77
# Theme
88
remote_theme: just-the-docs/just-the-docs
9-
color_scheme: light
9+
color_scheme: dark
10+
11+
# Just-the-docs custom tweaks (used by theme when available)
12+
just_the_docs:
13+
# visual flavor hint; not an official key but useful for future tweaks
14+
flavor: "dark-moke"
15+
# prefer the sidebar visible by default on large screens
16+
show_sidebar: true
1017

1118
# Just the Docs settings
1219
logo: "/assets/images/logo.png" # Optional logo
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* Custom "dark-moke" tweaks for just-the-docs
2+
This file contains a few conservative overrides to nudge the
3+
theme toward a darker, slightly desaturated "moke" look.
4+
5+
Note: The theme will only use this automatically if the layout
6+
includes or links to custom CSS. If you want me to inject this
7+
into the site's <head> automatically, tell me and I'll add a
8+
small include that links it.
9+
*/
10+
11+
:root {
12+
/* slightly desaturated dark background */
13+
--jtd-body-bg: #0f1113; /* near-black */
14+
--jtd-page-bg: #0f1113;
15+
--jtd-accent: #8ab4f8; /* soft blue accent */
16+
--jtd-primary-text: #d6d7d9; /* light gray text */
17+
--jtd-muted-text: #9aa0a6; /* muted text */
18+
--jtd-border: rgba(255,255,255,0.06);
19+
}
20+
21+
body {
22+
background-color: var(--jtd-body-bg) !important;
23+
color: var(--jtd-primary-text) !important;
24+
}
25+
26+
/* Sidebar tweaks */
27+
.jtd-sidebar {
28+
background-color: #0b0c0d; /* slightly darker */
29+
border-right: 1px solid var(--jtd-border);
30+
}
31+
32+
.jtd-sidebar a,
33+
.jtd-sidebar a:visited {
34+
color: var(--jtd-primary-text);
35+
}
36+
37+
/* Links and accents */
38+
a, .btn, .site-header a {
39+
color: var(--jtd-accent);
40+
}
41+
42+
/* Make code blocks slightly warmer */
43+
.highlight, pre {
44+
background: #0b0c0d; /* dark */
45+
color: #e6e6e6;
46+
}
47+
48+
/* Make the sidebar more persistent visualy (desktop) */
49+
@media (min-width: 900px) {
50+
.jtd-sidebar {
51+
position: sticky;
52+
top: 0;
53+
height: 100vh;
54+
overflow: auto;
55+
}
56+
}

0 commit comments

Comments
 (0)