Skip to content

Open source CapCut alternative.

TypeScript

fix(site): lift the chat composer in dark mode

David Le0a4f8f6e300a
diff --git a/site/src/cut/components/AiPanel.tsx b/site/src/cut/components/AiPanel.tsx
index 398cd9c0..7d1a2233 100644
--- a/site/src/cut/components/AiPanel.tsx
+++ b/site/src/cut/components/AiPanel.tsx
@@ -2306,8 +2306,9 @@ function ChatSession({
ref={composerBoxRef}
className={cn(
// z above the floating stack so the box paints over its tucked
- // bottom edge.
- "relative z-10 rounded-xl border bg-background transition-colors",
+ // bottom edge. Dark mode lifts the opaque fill a step above the
+ // panel's card surface so the field reads as raised.
+ "relative z-10 rounded-xl border bg-background transition-colors dark:bg-[color-mix(in_oklab,var(--card),white_5%)]",
dropActive
? "border-[#0a84ff] ring-2 ring-[#0a84ff]/30"
: fileDropHint
diff --git a/site/src/cut/components/editor-mock/MockAiPanel.tsx b/site/src/cut/components/editor-mock/MockAiPanel.tsx
index dbe4a17c..1a8072ec 100644
--- a/site/src/cut/components/editor-mock/MockAiPanel.tsx
+++ b/site/src/cut/components/editor-mock/MockAiPanel.tsx
@@ -52,7 +52,7 @@ export function MockAiPanel({ project }: { project: MockProject }) {
{/* The real composer is bg-background, which the app surface paints
white; on the cream landing that token stays cream, so the mock
pins white directly. */}
- <div className="rounded-xl border border-input bg-card">
+ <div className="rounded-xl border border-input bg-card dark:bg-[color-mix(in_oklab,var(--card),white_5%)]">
<div className="min-h-9 px-3 pt-2 text-[12.5px] leading-relaxed text-muted-foreground/70">
Ask about your video, or tell me what to change… @ references media
</div>