Skip to content

Commit 529afb7

Browse files
committed
style(theme): keep the logo readable in light mode
The wordmark gradient (#BC13FE β†’ #D067FF β†’ #F3E5FF) finishes near-white, which works on the dark navy-purple background but fades the last letters into a light page. The drop-shadow glow ("0 0 14px / 22px ...") is a neon trail tuned for a dark backdrop β€” on white it reads as a washed-out halo and makes the mark look out-of-focus. Both surfaces (wordmark gradient + glow on the text, glow on the ghost PNG) are now themable variables. Light-mode values: - wordmark gradient stays strictly inside the purple range (#6A12D8 β†’ #9020F0 β†’ #BC13FE) so no letter ever touches white - the neon trail is replaced by a tight deep-purple shadow that gives the mark presence without the bloom that only reads on dark Dark-mode rendering is unchanged.
1 parent 49b346c commit 529afb7

1 file changed

Lines changed: 27 additions & 11 deletions

File tree

β€Žstatic/style.cssβ€Ž

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@
6363
--border-soft: rgba(255,255,255,0.07); /* header bottom, editor-topbar */
6464
--surface-soft: rgba(0,0,0,0.18); /* editor-topbar, paste-inbar */
6565
--footer-text: rgba(248,248,242,0.5);
66+
67+
/* Logo gradient finishes near-white on dark so it pops against the
68+
navy-purple gradient background. On a light page the same gradient
69+
vanishes into the background β€” themed below. The glow is the neon
70+
trail you'd want on dark, replaced by a crisper shadow on light. */
71+
--logo-text-gradient: linear-gradient(135deg, #BC13FE 0%, #D067FF 60%, #F3E5FF 100%);
72+
--logo-glow: drop-shadow(0 0 6px rgba(188, 19, 254, 0.7)) drop-shadow(0 0 14px rgba(188, 19, 254, 0.4));
73+
--logo-glow-hover: drop-shadow(0 0 10px rgba(188, 19, 254, 0.9)) drop-shadow(0 0 22px rgba(188, 19, 254, 0.55));
74+
--logo-img-glow: drop-shadow(0 0 8px rgba(188, 19, 254, 0.7)) drop-shadow(0 0 18px rgba(188, 19, 254, 0.4));
75+
--logo-img-glow-hover: drop-shadow(0 0 12px rgba(188, 19, 254, 0.9)) drop-shadow(0 0 24px rgba(188, 19, 254, 0.55));
6676
}
6777

6878
/* ── Light theme ────────────────────────────────────────────────────────────── */
@@ -97,6 +107,16 @@
97107
--border-soft: rgba(28,30,42,0.10);
98108
--surface-soft: rgba(28,30,42,0.04);
99109
--footer-text: rgba(40,44,60,0.65);
110+
111+
/* Light-mode logo: keep the gradient strictly inside the purple range
112+
so the wordmark never fades into the page. The glow becomes a tight,
113+
deeper-purple shadow that gives the mark presence without the neon
114+
halo that only reads on a dark background. */
115+
--logo-text-gradient: linear-gradient(135deg, #6A12D8 0%, #9020F0 60%, #BC13FE 100%);
116+
--logo-glow: drop-shadow(0 1px 1px rgba(106, 18, 216, 0.25));
117+
--logo-glow-hover: drop-shadow(0 2px 3px rgba(106, 18, 216, 0.4));
118+
--logo-img-glow: drop-shadow(0 2px 3px rgba(106, 18, 216, 0.30));
119+
--logo-img-glow-hover: drop-shadow(0 3px 5px rgba(106, 18, 216, 0.45));
100120
}
101121

102122
/* ── Base ───────────────────────────────────────────────────────────────────── */
@@ -152,29 +172,25 @@ header {
152172
align-items: center;
153173
gap: 12px;
154174

155-
/* Gradient text */
156-
background: linear-gradient(135deg, #BC13FE 0%, #D067FF 60%, #F3E5FF 100%);
175+
/* Gradient text β€” themed (see --logo-text-gradient). */
176+
background: var(--logo-text-gradient);
157177
-webkit-background-clip: text;
158178
-webkit-text-fill-color: transparent;
159179
background-clip: text;
160180

161-
/* Neon glow on the text */
162-
filter: drop-shadow(0 0 6px rgba(188, 19, 254, 0.7)) drop-shadow(0 0 14px rgba(188, 19, 254, 0.4));
181+
/* Neon glow on dark, tight purple shadow on light (see --logo-glow). */
182+
filter: var(--logo-glow);
163183
transition: filter var(--transition);
164184
}
165185
.logo span { -webkit-text-fill-color: transparent; }
166186
.logo img {
167187
height: 44px;
168188
width: auto;
169-
filter: drop-shadow(0 0 8px rgba(188, 19, 254, 0.7)) drop-shadow(0 0 18px rgba(188, 19, 254, 0.4));
189+
filter: var(--logo-img-glow);
170190
transition: filter var(--transition);
171191
}
172-
.logo:hover {
173-
filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.9)) drop-shadow(0 0 22px rgba(188, 19, 254, 0.55));
174-
}
175-
.logo:hover img {
176-
filter: drop-shadow(0 0 12px rgba(188, 19, 254, 0.9)) drop-shadow(0 0 24px rgba(188, 19, 254, 0.55));
177-
}
192+
.logo:hover { filter: var(--logo-glow-hover); }
193+
.logo:hover img { filter: var(--logo-img-glow-hover); }
178194

179195
.header-actions { display: flex; align-items: center; gap: 8px; }
180196

0 commit comments

Comments
Β (0)