mirror of
https://github.com/temetro/temetro.git
synced 2026-09-04 14:55:28 +00:00
Lighten chat input via COSS tokens; enable sidebar theme toggle
- chat-input: replace the two hardcoded oklch backgrounds (leftover Linear palette) with COSS surface tokens — outer form bg-muted, inner card bg-input. Lighter in dark mode and theme-aware (no longer near-black in light mode), preserving the two-tone layered look. - nav-user: wire the previously-static Theme menu item to next-themes (useTheme/setTheme) — toggles light/dark, with the icon (Sun/Moon) and shortcut label reflecting the current theme. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -198,10 +198,10 @@ export function ChatInput({ onSubmit, status, onStop }: ChatInputProps) {
|
||||
event.preventDefault();
|
||||
submit();
|
||||
}}
|
||||
className="w-full overflow-hidden rounded-[28px] border border-border/60 bg-[oklch(0.195_0.006_277)] shadow-sm"
|
||||
className="w-full overflow-hidden rounded-[28px] border border-border/60 bg-muted shadow-sm"
|
||||
>
|
||||
{/* Top (lighter) card: textarea + toolbar, with a slightly smaller bottom radius */}
|
||||
<div className="rounded-b-[22px] bg-[oklch(0.218_0.006_277)]">
|
||||
<div className="rounded-b-[22px] bg-input">
|
||||
<textarea
|
||||
aria-label="Message"
|
||||
className="field-sizing-content block max-h-48 min-h-16 w-full resize-none bg-transparent px-5 pt-5 pb-2 text-base text-foreground outline-none placeholder:text-muted-foreground"
|
||||
|
||||
Reference in New Issue
Block a user