Skip to content

Commit 20b3f92

Browse files
Fix SVG readability on dark theme with explicit class + !important
The attribute selector alone wasn't applying. Added .svg-light-bg class directly to SVG images in setup and agentic-tools pages, plus !important to override any competing styles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4cb0000 commit 20b3f92

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

docs/hackathon/agentic-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This tutorial introduces AI coding agents: tools that can read files, write code
2020

2121
A coding agent is not a single thing — it is a stack of three layers:
2222

23-
![Agent → Provider → Model](../assets/images/stack-of-agents.svg)
23+
![Agent → Provider → Model](../assets/images/stack-of-agents.svg){ .svg-light-bg }
2424

2525
| Layer | What it does | Examples |
2626
|-------|-------------|----------|

docs/stylesheets/clawbio.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@
284284
SVG images: light background on dark theme for readability
285285
============================================================ */
286286

287-
[data-md-color-scheme="clawbio"] .md-typeset img[src$=".svg"] {
288-
background: #f6f8fa;
287+
[data-md-color-scheme="clawbio"] .md-typeset img[src*=".svg"],
288+
[data-md-color-scheme="clawbio"] .md-typeset .svg-light-bg {
289+
background: #f6f8fa !important;
289290
border-radius: 8px;
290291
padding: 1rem;
291292
}

docs/tutorials/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Coding agents are distinct from chatbots because they can read and write files o
2020

2121
A coding agent is not a single thing — it is a stack of three layers:
2222

23-
![Agent → Provider → Model](../assets/images/stack-of-agents.svg)
23+
![Agent → Provider → Model](../assets/images/stack-of-agents.svg){ .svg-light-bg }
2424

2525
- **Agent** — the program on your computer (or in the cloud) that reads your files, runs commands, and writes code. Examples: GitHub Copilot, Claude Code, OpenCode.
2626
- **Provider** — the service that hosts and serves the AI model. Examples: GitHub, Anthropic, OpenRouter.
2727
- **Model** — the large language model that actually generates the code. Examples: Claude Opus 4.5, GPT-4.1, Kimi K2.5.
2828

2929
You choose an agent, connect it to a provider, and pick a model. Different combinations have different privacy and cost implications:
3030

31-
![Privacy comparison across providers](../assets/images/table-of-privacy.svg)
31+
![Privacy comparison across providers](../assets/images/table-of-privacy.svg){ .svg-light-bg }
3232

3333
!!! note
3434
Free models on OpenRouter may train on your interactions. If data privacy is important, use a paid model or check the model's training policy on OpenRouter before use.

0 commit comments

Comments
 (0)