8000 docs(style[toc,body]): refine right-panel TOC and body typography · tmux-python/tmuxp@2b483f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b483f3

Browse files
committed
docs(style[toc,body]): refine right-panel TOC and body typography
why: Furo's default TOC title (10px) is nearly invisible and smaller than its own items (12px), inverting typographic hierarchy. Body line-height (1.5) is tighter than WCAG-recommended range. what: - Bump TOC item size 75% → 81.25% (12→13px) via --toc-font-size - Bump TOC title size 62.5% → 87.5% (10→14px) via --toc-title-font-size - Increase .toc-tree line-height 1.3 → 1.4 for wrapped entries - Increase article line-height 1.5 → 1.6 for paragraph readability - Enable text-rendering: optimizeLegibility on body
1 parent 6a62a08 commit 2b483f3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/_static/css/custom.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,33 @@ article h6 {
8383
font-size: 1em;
8484
margin-top: 1rem;
8585
}
86+
87+
/* ── Right-panel TOC refinements ────────────────────────────
88+
* Adjust Furo's table-of-contents proportions for better
89+
* readability. Inspired by Starlight defaults (Biome docs).
90+
* Uses Furo CSS variable overrides where possible.
91+
* ────────────────────────────────────────────────────────── */
92+
93+
/* TOC font sizes: items 75% → 81.25% (12→13px),
94+
title 62.5% → 87.5% (10→14px) */
95+
:root {
96+
--toc-font-size: var(--font-size--small--2);
97+
--toc-title-font-size: var(--font-size--small);
98+
}
99+
100+
/* More generous line-height for wrapped TOC entries */
101+
.toc-tree {
102+
line-height: 1.4;
103+
}
104+
105+
/* ── Body typography refinements ────────────────────────────
106+
* Improve paragraph readability with wider line-height and
107+
* sharper text rendering. Furo already sets font-smoothing.
108+
* ────────────────────────────────────────────────────────── */
109+
body {
110+
text-rendering: optimizeLegibility;
111+
}
112+
113+
article {
114+
line-height: 1.6;
115+
}

0 commit comments

Comments
 (0)
0