Skip to content

Commit d49d548

Browse files
committed
docs: use themed Blacksmith SVG logos
Blacksmith provided official SVGs for light and dark backgrounds, so the logo now switches with prefers-color-scheme like the CodeRabbit one. The dark-only JPEG rendered as a black box on light themes. docs/public/blacksmith.png stays, re-rendered from the light SVG, because READMEs of already-published npm releases still load it via jsDelivr.
1 parent 0c1bdd1 commit d49d548

6 files changed

Lines changed: 42 additions & 3 deletions

File tree

‎apps/ccusage/README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
</a>
3535
&nbsp;&nbsp;&nbsp;&nbsp;
3636
<a href="https://blacksmith.sh">
37-
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/blacksmith.png" alt="CI powered by Blacksmith" width="320">
37+
<picture>
38+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/blacksmith-logo-dark.svg">
39+
<img src="https://cdn.jsdelivr.net/gh/ccusage/ccusage@main/docs/public/blacksmith-logo.svg" alt="CI powered by Blacksmith" width="320">
40+
</picture>
3841
</a>
3942
</p>
4043

‎docs/guide/sponsors.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ ccusage is sponsored by CodeRabbit and Blacksmith.
1010
</picture>
1111
</a>
1212
<a href="https://blacksmith.sh" style="display: block;">
13-
<img src="/blacksmith.png" alt="CI powered by Blacksmith" width="320">
13+
<picture>
14+
<source media="(prefers-color-scheme: dark)" srcset="/blacksmith-logo-dark.svg">
15+
<img src="/blacksmith-logo.svg" alt="CI powered by Blacksmith" width="320">
16+
</picture>
1417
</a>
1518
</div>
1619

‎docs/index.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ Project history (Japanese): [how ccusage began](https://ryoppippi.com/blog/2025-
6666
</picture>
6767
</a>
6868
<a href="https://blacksmith.sh" target="_blank" style="display: block;">
69-
<img src="/blacksmith.png" alt="CI powered by Blacksmith" style="display: block; width: min(320px, 80vw); height: auto;">
69+
<picture>
70+
<source media="(prefers-color-scheme: dark)" srcset="/blacksmith-logo-dark.svg">
71+
<img src="/blacksmith-logo.svg" alt="CI powered by Blacksmith" style="display: block; width: min(320px, 80vw); height: auto;">
72+
</picture>
7073
</a>
7174
</div>
7275

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)