Skip to content

Commit 1e02724

Browse files
manuelcorpasclaude
andcommitted
fix: improve admonition text contrast on dark theme
Body text inside admonition boxes (warning, tip, info, danger) was inheriting the muted grey color (#8b949e), making it hard to read against the dark background. Now set to #c9d1d9 for clear readability. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b488987 commit 1e02724

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/stylesheets/clawbio.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,17 @@
173173
[data-md-color-scheme="clawbio"] .md-typeset .admonition-title,
174174
[data-md-color-scheme="clawbio"] .md-typeset summary {
175175
background: rgba(33, 38, 45, 0.8);
176+
color: #e6edf3;
177+
}
178+
179+
/* Admonition body text: bright enough to read on dark background */
180+
[data-md-color-scheme="clawbio"] .md-typeset .admonition > p,
181+
[data-md-color-scheme="clawbio"] .md-typeset .admonition > ul,
182+
[data-md-color-scheme="clawbio"] .md-typeset .admonition > ol,
183+
[data-md-color-scheme="clawbio"] .md-typeset details > p,
184+
[data-md-color-scheme="clawbio"] .md-typeset details > ul,
185+
[data-md-color-scheme="clawbio"] .md-typeset details > ol {
186+
color: #c9d1d9;
176187
}
177188

178189
/* Warning admonitions in green accent */

0 commit comments

Comments
 (0)