Skip to content

Commit 1731d00

Browse files
mgarbsclaude
andcommitted
Add separate dark mode logo with white text
Use two logo images — light (black text) and dark (white text) — toggled via CSS instead of a brightness filter. Keeps the pink icon intact in both modes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6f15615 commit 1731d00

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

site/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<div class="header-inner">
1919
<div class="header-left">
2020
<a href="/" class="site-logo">
21-
<img src="/hiero_logo_cropped.png" alt="Hiero" class="logo-img">
21+
<img src="/hiero_logo_cropped.png" alt="Hiero" class="logo-img logo-light">
22+
<img src="/hiero_logo_dark.png" alt="Hiero" class="logo-img logo-dark">
2223
<span class="logo-subtitle">Open Source Distributed Ledger Technology</span>
2324
</a>
2425
<nav class="header-nav">

site/public/hiero_logo_dark.png

13.2 KB
Loading

site/src/style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ a:hover { color: var(--link-h); }
141141
.header-left { display: flex; align-items: center; gap: 1.5rem; }
142142
.site-logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; gap: 2px; }
143143
.logo-img { height: 32px; width: auto; }
144+
.logo-dark { display: none; }
144145
.logo-subtitle { font-size: .75rem; font-weight: 500; color: var(--fg-muted); letter-spacing: .02em; }
145-
[data-theme="dark"] .logo-img { filter: brightness(1.8); }
146+
[data-theme="dark"] .logo-light { display: none; }
147+
[data-theme="dark"] .logo-dark { display: block; }
146148

147149
.header-nav { display: flex; gap: 2px; }
148150
.nav-link {

0 commit comments

Comments
 (0)