Skip to content

Commit 41bda81

Browse files
josers18claude
andcommitted
style(askbar): brighten input + result panel so they pop off the page bg
Both the bottom Ask Bar input and the streaming result panel were using bg-surface-raised/95 which on dark themes mixes too close to the page background — the Ask Bar disappeared into the dark gradient at the bottom of the page. Now both surfaces use color-mix(in oklab, var(--hz-surface-raised) 92%, white 6%) for an extra half-step of brightness, plus a brighter border-text/15 (≈12% white) and a subtle inset top-line on the result panel. Reads as a clearly elevated surface on dark themes without going chalky on light ones. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53658ea commit 41bda81

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

components/horizon/AskBar.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,13 @@ export function AskBar() {
364364
<div className="pointer-events-none fixed inset-x-0 z-40 flex justify-center px-4 bottom-[max(1.5rem,env(safe-area-inset-bottom,0px))]">
365365
<div className="pointer-events-auto flex w-full max-w-[760px] flex-col gap-3">
366366
{showPanel && (
367-
<div className="animate-fade-rise overflow-visible rounded-2xl border border-border bg-surface-raised/95 shadow-[0_28px_60px_-30px_rgba(0,0,0,0.7)] backdrop-blur-md">
367+
<div
368+
className="animate-fade-rise overflow-visible rounded-2xl border border-text/15 shadow-[0_28px_60px_-30px_rgba(0,0,0,0.75),inset_0_1px_0_rgba(255,255,255,0.06)] backdrop-blur-md"
369+
style={{
370+
backgroundColor:
371+
"color-mix(in oklab, var(--hz-surface-raised) 92%, white 6%)",
372+
}}
373+
>
368374
<div className="flex items-start justify-between gap-3 border-b border-border-soft/80 bg-black/20 px-5 py-3">
369375
<div className="flex flex-wrap items-center gap-2 text-[11px] uppercase tracking-[0.2em] text-text-muted">
370376
<span
@@ -485,16 +491,20 @@ export function AskBar() {
485491
}}
486492
className={cn(
487493
// The Ask Bar must pop above the cards that share `--hz-surface`.
488-
// `bg-surface-raised` mixes a touch of text color into surface so
489-
// it reads a half-step brighter on dark themes and a half-step
490-
// darker on light themes. The `shadow-ask-lift` + stronger
491-
// `border-border` give it definition without adding chrome.
492-
"group relative flex items-center gap-3 overflow-hidden rounded-2xl border border-border bg-surface-raised/95 px-4 py-3 shadow-ask-lift backdrop-blur-md transition-all duration-med ease-out",
494+
// We over-mix surface-raised with a touch of white via
495+
// color-mix() and use a brighter border + inset top-line so
496+
// the bar reads as a clearly elevated surface on dark themes
497+
// without going chalky on light ones.
498+
"group relative flex items-center gap-3 overflow-hidden rounded-2xl border border-text/15 px-4 py-3 shadow-ask-lift backdrop-blur-md transition-all duration-med ease-out",
493499
focus
494500
? "border-accent/50 shadow-glow"
495-
: "hover:border-border",
501+
: "hover:border-text/25",
496502
speech.listening && "border-accent/60 shadow-glow"
497503
)}
504+
style={{
505+
backgroundColor:
506+
"color-mix(in oklab, var(--hz-surface-raised) 92%, white 6%)",
507+
}}
498508
>
499509
{/* Ambient accent gradient on focus — sits underneath the input. */}
500510
<div

0 commit comments

Comments
 (0)