Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(assistant-ui): replace opacity-based text colors with muted-foreground

Steven Enamakele8a7790f099c
diff --git a/app/src/components/assistant-ui/elements/agent-status.tsx b/app/src/components/assistant-ui/elements/agent-status.tsx
index 9f6151c5b3..ce19a75fac 100644
--- a/app/src/components/assistant-ui/elements/agent-status.tsx
+++ b/app/src/components/assistant-ui/elements/agent-status.tsx
@@ -70,7 +70,7 @@ export function AgentStatus({
{label}
</span>
{elapsed !== undefined && state !== 'done' && state !== 'failed' && (
- <span className={cn(mono, "fade-in blur-in-[2px] animate-in max-w-44 truncate text-xs duration-300 motion-reduce:animate-none")}>{elapsed}</span>
+ <span className={cn(mono, 'text-muted-foreground tabular-nums')}>{elapsed}</span>
)}
<span
aria-hidden
diff --git a/app/src/components/assistant-ui/elements/approval-card.tsx b/app/src/components/assistant-ui/elements/approval-card.tsx
index efe76a9460..8b1aee0ccb 100644
--- a/app/src/components/assistant-ui/elements/approval-card.tsx
+++ b/app/src/components/assistant-ui/elements/approval-card.tsx
@@ -96,7 +96,7 @@ export function ApprovalCard({
className={cn(paper, 'flex w-full max-w-sm flex-col gap-3.5 rounded-[20px] p-4', className)}
{...props}>
<div className="flex items-center gap-3">
- <span className="bg-foreground/[0.05] text-foreground/45 flex size-9 shrink-0 items-center justify-center rounded-xl">
+ <span className="bg-foreground/[0.05] text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-xl">
<TerminalIcon className="size-4" />
</span>
<div className="flex flex-col">
@@ -106,11 +106,11 @@ export function ApprovalCard({
</div>
</div>
- <div className={cn(field, 'text-foreground/70 rounded-xl px-3.5 py-2.5 font-mono text-xs')}>
+ <div className={cn(field, 'text-muted-foreground rounded-xl px-3.5 py-2.5 font-mono text-xs')}>
{command}
</div>
- <div className="grid grid-cols-[minmax(0,1fr)_minmax(0,2fr)] gap-4 text-xs">
+ <div className="flex min-h-8 flex-wrap items-center justify-end gap-2">
{state === 'request' ? (
<>
{onDeny && (
@@ -119,7 +119,7 @@ export function ApprovalCard({
onClick={onDeny}
{...denyProps}
className={cn(
- 'text-foreground/55 hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]',
+ 'text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]',
denyProps?.className
)}>
{denyLabel}
@@ -131,7 +131,7 @@ export function ApprovalCard({
onClick={onAlwaysAllow}
{...alwaysAllowProps}
className={cn(
- 'text-foreground/55 hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]',
+ 'text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]',
alwaysAllowProps?.className
)}>
{alwaysAllowLabel}
@@ -144,7 +144,7 @@ export function ApprovalCard({
{...allowOnceProps}
className={cn(
inkButton,
- 'flex h-8 items-center rounded-full px-3.5 text-xs font-medium',
+ "h-8 px-3.5 text-xs font-medium whitespace-nowrap",
allowOnceProps?.className
)}>
{allowOnceLabel}
@@ -154,7 +154,7 @@ export function ApprovalCard({
) : (
<div
key={state}
- className="flex min-h-8 flex-wrap items-center justify-end gap-2">
+ className="fade-in animate-in text-muted-foreground flex items-center gap-2 text-xs duration-300 motion-reduce:animate-none">
{state === 'running' ? (
<>
<Loader2Icon className="text-muted-foreground size-3.5 animate-spin motion-reduce:animate-none" />
diff --git a/app/src/components/assistant-ui/elements/background-inbox.tsx b/app/src/components/assistant-ui/elements/background-inbox.tsx
index 1bf4556a74..1eb30460b0 100644
--- a/app/src/components/assistant-ui/elements/background-inbox.tsx
+++ b/app/src/components/assistant-ui/elements/background-inbox.tsx
@@ -99,7 +99,7 @@ export function BackgroundInbox({
{run.title}
</span>
{run.summary && (
- <span className={cn(mono, "text-muted-foreground truncate")}>{run.summary}</span>
+ <span className={cn(mono, 'text-muted-foreground truncate')}>{run.summary}</span>
)}
</span>
diff --git a/app/src/components/assistant-ui/elements/connection-state.tsx b/app/src/components/assistant-ui/elements/connection-state.tsx
index 91f3a7bf8f..69667259ca 100644
--- a/app/src/components/assistant-ui/elements/connection-state.tsx
+++ b/app/src/components/assistant-ui/elements/connection-state.tsx
@@ -64,7 +64,7 @@ export function ConnectionState({
<button
type="button"
onClick={onRetry}
- className="text-foreground/70 hover:bg-foreground/[0.06] hover:text-foreground/95 shrink-0 rounded-full px-2.5 py-1 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]">
+ className="text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/95 shrink-0 rounded-full px-2.5 py-1 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]">
{retryLabel}
</button>
</>
diff --git a/app/src/components/assistant-ui/elements/context-breakdown.tsx b/app/src/components/assistant-ui/elements/context-breakdown.tsx
index 49082a011f..14dcdb92e0 100644
--- a/app/src/components/assistant-ui/elements/context-breakdown.tsx
+++ b/app/src/components/assistant-ui/elements/context-breakdown.tsx
@@ -101,7 +101,7 @@ export function ContextBreakdown({
{segments.map(segment => (
<div key={segment.label} className="flex items-center gap-2">
<span aria-hidden className={cn("size-2 shrink-0 rounded-full forced-color-adjust-none", segment.tint)} />
- <span className="text-foreground/70 min-w-0 flex-1 truncate text-[13px]">
+ <span className="text-muted-foreground min-w-0 flex-1 truncate text-[13px]">
{segment.label}
</span>
<span className={cn(mono, "text-muted-foreground shrink-0 tabular-nums")}>
@@ -121,8 +121,8 @@ export function ContextBreakdown({
{stats.length > 0 && <div className="border-foreground/10 my-1 border-t" />}
{stats.map(stat => (
<div key={stat.label} className="flex items-center justify-between gap-4">
- <span className="text-foreground/55 min-w-0 truncate text-[12px]">{stat.label}</span>
- <span className={cn(mono, 'text-foreground/45 shrink-0 tabular-nums')}>
+ <span className="text-muted-foreground min-w-0 truncate text-[12px]">{stat.label}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0 tabular-nums')}>
{stat.value}
</span>
</div>
diff --git a/app/src/components/assistant-ui/elements/context-display.tsx b/app/src/components/assistant-ui/elements/context-display.tsx
index fa22609c65..e053cfbc6d 100644
--- a/app/src/components/assistant-ui/elements/context-display.tsx
+++ b/app/src/components/assistant-ui/elements/context-display.tsx
@@ -257,10 +257,10 @@ function ContextDisplayContent({
{formatTokenCount(modelContextWindow)}
</span>
</div>
- <div className="bg-muted mt-2.5 h-1 overflow-hidden rounded-full">
+ <div className="bg-muted inset-ring-border mt-2.5 h-1 overflow-hidden rounded-full inset-ring forced-colors:border">
<div
className={cn(
- 'h-full w-(--usage-width) rounded-full transition-[width] duration-300',
+ "h-full w-(--usage-width) rounded-full transition-[width] duration-300 forced-color-adjust-none",
totalTokens > 0 && 'min-w-1',
getBarColor(percent)
)}
@@ -268,7 +268,7 @@ function ContextDisplayContent({
/>
</div>
{segments.length > 0 && (
- <div className="flex items-baseline justify-between gap-6">
+ <div className="mt-3 grid gap-1.5">
{segments.map(segment => (
<div key={segment.label} className="flex items-baseline justify-between gap-6">
<span className="text-muted-foreground">{segment.label}</span>
@@ -303,7 +303,7 @@ function RingVisual() {
r={RING_RADIUS}
fill="none"
strokeWidth={RING_STROKE}
- className="stroke-border"
+ className="stroke-muted"
/>
<circle
cx={RING_SIZE / 2}
diff --git a/app/src/components/assistant-ui/elements/data-table.tsx b/app/src/components/assistant-ui/elements/data-table.tsx
index cba2fd4c79..449ad3e972 100644
--- a/app/src/components/assistant-ui/elements/data-table.tsx
+++ b/app/src/components/assistant-ui/elements/data-table.tsx
@@ -59,20 +59,20 @@ export function DataTable<TRow>({
data-slot="data-table"
className={cn(paper, "@container w-full overflow-hidden rounded-2xl", className)}
{...props}>
- <div className="space-y-2 p-2.5 @md:hidden">
+ <div className="flex items-center px-4 pt-3 pb-2">
{columns.map(column => (
<span
key={column.key}
className={cn(
mono,
- 'text-foreground/35',
+ 'text-muted-foreground',
column.align === 'end' ? 'w-16 text-end' : 'flex-1'
)}>
{column.header}
</span>
))}
</div>
- <div className="text-muted-foreground px-2 py-3 text-center text-[13px]" />
+ <div className="bg-foreground/[0.06] mx-4 h-px" />
<div key={cycle}>
{rows.map((row, index) => {
const key = rowKey?.(row, index) ?? String(index);
@@ -85,9 +85,9 @@ export function DataTable<TRow>({
return (
<div
key={key}
- className="bg-foreground/[0.025] hover:bg-foreground/[0.04] rounded-xl px-3 py-2 transition-colors motion-reduce:transition-none"
+ className="fade-in slide-in-from-bottom-1 animate-in fill-mode-both hover:bg-foreground/[0.03] flex items-center gap-2.5 px-4 py-2.5 transition-colors duration-300"
style={{ animationDelay: `${index * 80}ms` }}>
- <span className="bg-foreground/[0.06] text-foreground/45 flex size-5 shrink-0 items-center justify-center rounded-md text-[9px] font-medium">
+ <span className="bg-foreground/[0.06] text-muted-foreground flex size-5 shrink-0 items-center justify-center rounded-md text-[9px] font-medium">
{avatarLetter}
</span>
{columns.map(column => (
@@ -96,7 +96,7 @@ export function DataTable<TRow>({
className={cn(
column === avatarColumn
? 'text-foreground/90 truncate'
- : cn(mono, 'text-foreground/55 tabular-nums'),
+ : cn(mono, 'text-muted-foreground tabular-nums'),
column.align === 'end' ? 'w-16 text-end' : 'flex-1'
)}>
{column.cell(row, index)}
diff --git a/app/src/components/assistant-ui/elements/elicitation-form.tsx b/app/src/components/assistant-ui/elements/elicitation-form.tsx
index 522b7fcd68..878f128161 100644
--- a/app/src/components/assistant-ui/elements/elicitation-form.tsx
+++ b/app/src/components/assistant-ui/elements/elicitation-form.tsx
@@ -92,7 +92,7 @@ export function ElicitationForm({
<PlugIcon className="size-3.5" />
</span>
<span className="min-w-0 flex-1 truncate text-[13.5px] font-medium">{server}</span>
- <span className={cn(mono, "text-muted-foreground shrink-0")}>{needsInputLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>{needsInputLabel}</span>
</div>
<p className="text-muted-foreground text-xs leading-relaxed">{message}</p>
@@ -100,7 +100,7 @@ export function ElicitationForm({
<div className="flex flex-col gap-2.5">
{fields.map(item => (
<div key={item.name} className="flex flex-col gap-1">
- <span className={cn(mono, "text-muted-foreground")}>
+ <span className={cn(mono, 'text-muted-foreground')}>
{item.label}
{item.required && <span className="text-muted-foreground"> *</span>}
</span>
@@ -113,7 +113,7 @@ export function ElicitationForm({
'rounded-full px-2.5 py-1 text-xs transition-colors',
option === item.value
? 'bg-foreground text-background'
- : cn(field, 'text-foreground/55')
+ : cn(field, "text-muted-foreground")
)}>
{option}
</span>
@@ -134,7 +134,7 @@ export function ElicitationForm({
)}
/>
</span>
- <span className="fade-in animate-in text-muted-foreground flex items-center gap-2 text-xs duration-300">
+ <span className="text-muted-foreground text-xs">
{item.value === 'true' ? 'On' : 'Off'}
</span>
</span>
@@ -167,7 +167,7 @@ export function ElicitationForm({
onClick={onDecline}
{...declineProps}
className={cn(
- 'text-foreground/55 hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]',
+ "text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/90 h-8 rounded-full px-3.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]",
declineProps?.className
)}>
{declineLabel}
@@ -178,7 +178,7 @@ export function ElicitationForm({
{...acceptProps}
className={cn(
inkButton,
- "focus-visible:ring-foreground/20 flex w-fit items-center gap-2 rounded-lg outline-none focus-visible:ring-1",
+ "flex h-8 items-center rounded-full px-3.5 text-xs font-medium disabled:pointer-events-none disabled:opacity-40",
acceptProps?.className
)}>
{sendLabel}
@@ -187,7 +187,7 @@ export function ElicitationForm({
) : (
<span
key={state}
- className="fade-in animate-in text-foreground/55 flex items-center gap-2 text-xs duration-300">
+ className="fade-in animate-in text-muted-foreground flex items-center gap-2 text-xs duration-300">
{state === 'accepted' ? (
<>
<CheckIcon className="size-3.5 text-emerald-500" />
diff --git a/app/src/components/assistant-ui/elements/guardrail-notice.tsx b/app/src/components/assistant-ui/elements/guardrail-notice.tsx
index f9c7c39a86..afa7209ee1 100644
--- a/app/src/components/assistant-ui/elements/guardrail-notice.tsx
+++ b/app/src/components/assistant-ui/elements/guardrail-notice.tsx
@@ -44,27 +44,27 @@ export function GuardrailNotice({
<ShieldIcon className="size-3.5" />
</span>
<span className="min-w-0 flex-1 truncate text-[13.5px] font-medium">{title}</span>
- <span className={cn(mono, "text-muted-foreground shrink-0")}>{policy}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>{policy}</span>
</div>
- <p className="text-foreground/60 text-xs leading-relaxed">{explanation}</p>
+ <p className="text-muted-foreground text-xs leading-relaxed">{explanation}</p>
{alternatives.length > 0 && (
<div className="flex flex-col gap-1.5">
- <span className={cn(mono, "text-muted-foreground")}>{alternativesLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{alternativesLabel}</span>
{alternatives.map(alternative =>
onPick ? (
<button
key={alternative}
type="button"
onClick={() => onPick(alternative)}
- className="hover:bg-foreground/[0.04] text-foreground/70 hover:text-foreground/95 -mx-1.5 rounded-lg px-1.5 py-1 text-start text-[13px] transition-colors">
+ className="hover:bg-foreground/[0.04] text-muted-foreground hover:text-foreground/95 -mx-1.5 rounded-lg px-1.5 py-1 text-start text-[13px] transition-colors">
{alternative}
</button>
) : (
<span
key={alternative}
- className="text-foreground/70 -mx-1.5 rounded-lg px-1.5 py-1 text-start text-[13px]">
+ className="text-muted-foreground -mx-1.5 rounded-lg px-1.5 py-1 text-start text-[13px]">
{alternative}
</span>
)
diff --git a/app/src/components/assistant-ui/elements/job-progress.tsx b/app/src/components/assistant-ui/elements/job-progress.tsx
index 6664a1dc3b..bf3137af16 100644
--- a/app/src/components/assistant-ui/elements/job-progress.tsx
+++ b/app/src/components/assistant-ui/elements/job-progress.tsx
@@ -74,7 +74,7 @@ export function JobProgress({
aria-label={cancelLabel}
onClick={onCancel}
className={cn(ghostButton, 'size-6 shrink-0')}>
- <XIcon className="size-3.5 shrink-0 text-red-600 dark:text-red-400" />
+ <XIcon className="size-3.5" />
</button>
)}
</div>
@@ -95,17 +95,17 @@ export function JobProgress({
/>
</span>
- <div className="flex flex-col gap-0.5">
+ <div className="flex flex-wrap gap-x-3 gap-y-1">
{stages.map((item, i) => (
<span
key={item.name}
className={cn(
mono,
i < stage
- ? 'text-foreground/35'
+ ? 'text-muted-foreground'
: i === stage
? 'text-foreground/90'
- : 'text-foreground/20'
+ : 'text-muted-foreground'
)}>
{item.name}
</span>
diff --git a/app/src/components/assistant-ui/elements/memory-chips.tsx b/app/src/components/assistant-ui/elements/memory-chips.tsx
index 50b4c990d4..c6b1f9d3c1 100644
--- a/app/src/components/assistant-ui/elements/memory-chips.tsx
+++ b/app/src/components/assistant-ui/elements/memory-chips.tsx
@@ -48,7 +48,7 @@ export function MemoryChips({
{...props}>
<div className="flex items-center gap-1.5">
<BrainIcon className="text-muted-foreground size-3.5" />
- <span className={cn(mono, "text-muted-foreground")}>
+ <span className={cn(mono, 'text-muted-foreground')}>
{fresh > 0 ? headingRememberedLabel(fresh) : headingIdleLabel}
</span>
</div>
diff --git a/app/src/components/assistant-ui/elements/message-queue.tsx b/app/src/components/assistant-ui/elements/message-queue.tsx
index 398d9c9bbf..bb39257c32 100644
--- a/app/src/components/assistant-ui/elements/message-queue.tsx
+++ b/app/src/components/assistant-ui/elements/message-queue.tsx
@@ -58,13 +58,13 @@ export function MessageQueue({
<span className="relative inline-flex size-2 rounded-full bg-blue-500 dark:bg-blue-400" />
</span>
<span className="text-foreground/90 min-w-0 flex-1 truncate text-[13.5px]">{running}</span>
- <span className={cn(mono, "text-muted-foreground shrink-0")}>{runningLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>{runningLabel}</span>
</div>
{queuedCount > 0 && (
<div className="flex items-baseline justify-between px-1">
- <span className={cn(mono, "text-muted-foreground")}>{queuedLabel(queuedCount)}</span>
- <span className={cn(mono, "text-muted-foreground")}>{pendingHint}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{queuedLabel(queuedCount)}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{pendingHint}</span>
</div>
)}
@@ -109,9 +109,9 @@ export function MessageQueueItem({
field,
'fade-in slide-in-from-bottom-1 animate-in fill-mode-both flex items-center gap-2.5 rounded-2xl py-2 pr-2 pl-3 duration-300'
)}>
- <span className={cn(mono, 'text-foreground/30 w-3 shrink-0 tabular-nums')}>{position}</span>
- <span className="text-foreground/60 min-w-0 flex-1 truncate text-[13.5px]">{text}</span>
- <ArrowUpIcon aria-hidden className="text-foreground/25 size-3 shrink-0" />
+ <span className={cn(mono, 'text-muted-foreground w-3 shrink-0 tabular-nums')}>{position}</span>
+ <span className="text-muted-foreground min-w-0 flex-1 truncate text-[13.5px]">{text}</span>
+ <ArrowUpIcon aria-hidden className="text-muted-foreground size-3 shrink-0" />
{action}
</li>
);
diff --git a/app/src/components/assistant-ui/elements/permission-grant.tsx b/app/src/components/assistant-ui/elements/permission-grant.tsx
index c631945121..d1553cb5a9 100644
--- a/app/src/components/assistant-ui/elements/permission-grant.tsx
+++ b/app/src/components/assistant-ui/elements/permission-grant.tsx
@@ -98,9 +98,9 @@ export function PermissionGrant({
</div>
<div className="flex flex-col gap-1">
- <span className={cn(mono, "text-muted-foreground")}>{reachLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{reachLabel}</span>
{reach.map(item => (
- <span key={item} className="text-foreground/60 flex items-baseline gap-2 text-xs">
+ <span key={item} className="text-muted-foreground flex items-baseline gap-2 text-xs">
<span aria-hidden className="bg-foreground/20 size-1 rounded-full" />
{item}
</span>
diff --git a/app/src/components/assistant-ui/elements/reasoning-panel.tsx b/app/src/components/assistant-ui/elements/reasoning-panel.tsx
index 076ba1bf2a..4e47bc55da 100644
--- a/app/src/components/assistant-ui/elements/reasoning-panel.tsx
+++ b/app/src/components/assistant-ui/elements/reasoning-panel.tsx
@@ -124,7 +124,7 @@ function PanelLabel({
{elapsed !== undefined && (
<span
data-slot="reasoning-panel-elapsed"
- className={cn(mono, 'text-foreground/30 tabular-nums')}>
+ className={cn(mono, 'text-muted-foreground tabular-nums')}>
{elapsed}
</span>
)}
@@ -175,7 +175,7 @@ function StepList({
{step.body ? (
<div
data-slot="reasoning-step-body"
- className="text-foreground/50 mt-0.5 text-[13px] leading-relaxed break-words">
+ className="text-muted-foreground mt-0.5 text-[13px] leading-relaxed break-words">
<TextMessagePartProvider text={step.body} isRunning={active}>
<MarkdownText />
</TextMessagePartProvider>
@@ -245,7 +245,7 @@ export function ReasoningPanel({
data-testid={testId}
aria-busy={streaming || undefined}
className={cn('w-full', className)}>
- <div className="text-foreground/55 flex items-center gap-1.5 py-1 text-[13.5px]">
+ <div className="text-muted-foreground flex items-center gap-1.5 py-1 text-[13.5px]">
{label}
</div>
{shown.length > 0 && <StepList steps={shown} streaming={streaming} bounded={streaming} />}
diff --git a/app/src/components/assistant-ui/elements/schedule-card.tsx b/app/src/components/assistant-ui/elements/schedule-card.tsx
index 8934499629..26b38be90c 100644
--- a/app/src/components/assistant-ui/elements/schedule-card.tsx
+++ b/app/src/components/assistant-ui/elements/schedule-card.tsx
@@ -65,7 +65,7 @@ export function ScheduleCard({
</span>
<div className="flex min-w-0 flex-1 flex-col">
<span className="truncate text-[13.5px] font-medium">{name}</span>
- <span className={cn(mono, "text-muted-foreground")}>{cadence}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{cadence}</span>
</div>
<button
type="button"
@@ -92,12 +92,12 @@ export function ScheduleCard({
'flex items-baseline gap-2 rounded-xl px-3 py-2',
!enabled && 'opacity-45'
)}>
- <span className={cn(mono, "text-muted-foreground")}>{nextLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{nextLabel}</span>
<span className="text-foreground/80 text-[13px]">{enabled ? nextRun : pausedLabel}</span>
</div>
<div className="flex flex-col gap-1">
- <span className={cn(mono, "text-muted-foreground")}>{recentRunsLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{recentRunsLabel}</span>
{history.map(run => (
<div key={run.id} className="flex items-baseline gap-2">
{run.ok ? (
@@ -105,8 +105,8 @@ export function ScheduleCard({
) : (
<XIcon className="size-3 shrink-0 translate-y-0.5 text-red-500" />
)}
- <span className="text-foreground/60 min-w-0 flex-1 truncate text-xs">{run.at}</span>
- <span className={cn(mono, "text-muted-foreground shrink-0")}>
+ <span className="text-muted-foreground min-w-0 flex-1 truncate text-xs">{run.at}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>
{run.ok ? okLabel : failedLabel}
</span>
</div>
diff --git a/app/src/components/assistant-ui/elements/settings-panel.tsx b/app/src/components/assistant-ui/elements/settings-panel.tsx
index 3bbe749687..deb4436805 100644
--- a/app/src/components/assistant-ui/elements/settings-panel.tsx
+++ b/app/src/components/assistant-ui/elements/settings-panel.tsx
@@ -80,7 +80,7 @@ export function SettingsPanel({
className={cn(paper, 'flex w-full max-w-sm flex-col gap-4 rounded-[20px] p-4', className)}
{...props}>
<div className="flex flex-col gap-1.5">
- <span className={cn(mono, "text-muted-foreground")}>{modelLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{modelLabel}</span>
<div className={cn(field, 'flex gap-0.5 rounded-full p-0.5')}>
{models.map(option => {
const className = cn(
@@ -89,8 +89,8 @@ export function SettingsPanel({
option === model
? 'bg-background text-foreground/90'
: onModelChange
- ? 'text-foreground/45 hover:text-foreground/70'
- : 'text-foreground/45'
+ ? 'text-muted-foreground hover:text-muted-foreground'
+ : 'text-muted-foreground'
);
return onModelChange ? (
@@ -116,7 +116,7 @@ export function SettingsPanel({
{systemPrompt !== undefined && (
<div className="flex flex-col gap-1.5">
- <span className={cn(mono, "text-muted-foreground")}>{systemPromptLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{systemPromptLabel}</span>
<textarea
value={systemPrompt}
onChange={event => onSystemPromptChange?.(event.target.value)}
@@ -133,8 +133,8 @@ export function SettingsPanel({
{temperature !== undefined && (
<div className="flex flex-col gap-1.5">
<span className="flex items-baseline justify-between">
- <span className={cn(mono, "text-muted-foreground")}>{temperatureLabel}</span>
- <span className={cn(mono, "text-muted-foreground tabular-nums")}>
+ <span className={cn(mono, 'text-muted-foreground')}>{temperatureLabel}</span>
+ <span className={cn(mono, 'text-muted-foreground tabular-nums')}>
{clamp(temperature, 0, 2).toFixed(1)}
</span>
</span>
diff --git a/app/src/components/assistant-ui/elements/stopped-run.tsx b/app/src/components/assistant-ui/elements/stopped-run.tsx
index 4603ba3011..5f4af3d5e9 100644
--- a/app/src/components/assistant-ui/elements/stopped-run.tsx
+++ b/app/src/components/assistant-ui/elements/stopped-run.tsx
@@ -58,7 +58,7 @@ export function StoppedRun({
<button
type="button"
onClick={onContinue}
- className="text-foreground/70 hover:bg-foreground/[0.06] hover:text-foreground/95 ms-auto flex h-7 items-center gap-1 rounded-full px-2.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]">
+ className="text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/95 ms-auto flex h-7 items-center gap-1 rounded-full px-2.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96]">
{continueLabel}
<ArrowRightIcon className="size-3" />
</button>
diff --git a/app/src/components/assistant-ui/elements/subagent-list.tsx b/app/src/components/assistant-ui/elements/subagent-list.tsx
index 25de47368d..80c097df91 100644
--- a/app/src/components/assistant-ui/elements/subagent-list.tsx
+++ b/app/src/components/assistant-ui/elements/subagent-list.tsx
@@ -65,7 +65,7 @@ export function SubagentList({
<Loader2Icon className="text-muted-foreground size-3.5 shrink-0 animate-spin motion-reduce:animate-none" />
)}
<span className="flex-1 truncate text-[13.5px]">{agent.name}</span>
- <span className={cn(mono, "text-muted-foreground")}>{agent.model}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{agent.model}</span>
</div>
<span
role="progressbar"
@@ -94,7 +94,7 @@ export function SubagentList({
<div className="flex items-center gap-2">
<Loader2Icon className="text-muted-foreground size-3.5 shrink-0 animate-spin motion-reduce:animate-none" />
<span className="flex-1 truncate text-[13.5px]">{summaryAgent.name}</span>
- <span className={cn(mono, "text-muted-foreground")}>{summaryAgent.model}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{summaryAgent.model}</span>
</div>
<span
role="progressbar"
diff --git a/app/src/components/assistant-ui/elements/task-card.aui.tsx b/app/src/components/assistant-ui/elements/task-card.aui.tsx
index 02b6c3f339..ab8edf1cac 100644
--- a/app/src/components/assistant-ui/elements/task-card.aui.tsx
+++ b/app/src/components/assistant-ui/elements/task-card.aui.tsx
@@ -90,7 +90,7 @@ const NestedMessage: FC<{ roleLabels: TaskTranscriptRoleLabels }> = ({ roleLabel
data-slot="aui_task-transcript-message"
data-role={role}
className="flex flex-col gap-1 text-xs leading-relaxed">
- <span className={cn(mono, "text-muted-foreground")}>{roleLabels[role]}</span>
+ <span className={cn(mono, 'text-muted-foreground')}>{roleLabels[role]}</span>
<MessagePrimitive.Parts
components={{ Text: MarkdownText, tools: { Fallback: NestedToolCall } }}
/>
diff --git a/app/src/components/assistant-ui/elements/task-card.tsx b/app/src/components/assistant-ui/elements/task-card.tsx
index 2ea7d1fe12..242ab0f081 100644
--- a/app/src/components/assistant-ui/elements/task-card.tsx
+++ b/app/src/components/assistant-ui/elements/task-card.tsx
@@ -151,7 +151,7 @@ export function TaskCard({
{isRenderable(result) && (
<div
data-slot="task-card-result"
- className="border-border/60 text-foreground/70 border-t px-3.5 py-2 text-xs leading-relaxed">
+ className="border-border/60 text-muted-foreground border-t px-3.5 py-2 text-xs leading-relaxed">
{result}
</div>
)}
diff --git a/app/src/components/assistant-ui/elements/terminal-block.tsx b/app/src/components/assistant-ui/elements/terminal-block.tsx
index a965d2eacf..df191ceca4 100644
--- a/app/src/components/assistant-ui/elements/terminal-block.tsx
+++ b/app/src/components/assistant-ui/elements/terminal-block.tsx
@@ -69,7 +69,7 @@ export function TerminalBlock({
<span
className={cn(
mono,
- ink ? "text-background/40 dark:text-muted-foreground" : "text-muted-foreground"
+ ink ? 'text-background/40 dark:text-muted-foreground' : 'text-muted-foreground'
)}>
{exitLabel}
</span>
@@ -87,7 +87,7 @@ export function TerminalBlock({
className={cn(
'flex max-h-72 flex-col gap-1 overflow-auto px-4 pt-1 pb-3.5 whitespace-pre-wrap break-all',
!done && 'min-h-[8.5rem]',
- ink ? 'text-background/55 dark:text-foreground/50' : 'text-foreground/50'
+ ink ? 'text-background/55 dark:text-muted-foreground' : 'text-muted-foreground'
)}>
{take(lines, visibleCount).map((line, i) => {
const isLast = i === lines.length - 1;
diff --git a/app/src/components/assistant-ui/elements/timeline.tsx b/app/src/components/assistant-ui/elements/timeline.tsx
index 5b1c342906..f785501da4 100644
--- a/app/src/components/assistant-ui/elements/timeline.tsx
+++ b/app/src/components/assistant-ui/elements/timeline.tsx
@@ -51,7 +51,7 @@ export function Timeline({
className={cn(
mono,
'pt-[3px] text-end tabular-nums',
- event.when === 'future' ? 'text-foreground/25' : 'text-foreground/40'
+ event.when === 'future' ? 'text-muted-foreground' : 'text-muted-foreground'
)}>
{event.time}
</span>
diff --git a/app/src/components/assistant-ui/elements/todo-list.tsx b/app/src/components/assistant-ui/elements/todo-list.tsx
index 4dfb823d4e..939b1ea18a 100644
--- a/app/src/components/assistant-ui/elements/todo-list.tsx
+++ b/app/src/components/assistant-ui/elements/todo-list.tsx
@@ -52,7 +52,7 @@ export function TodoList({
{...props}>
<div className="flex items-start justify-between gap-3">
<span className="text-[13.5px] font-medium">{title}</span>
- <span className={cn(mono, "text-muted-foreground shrink-0 whitespace-nowrap tabular-nums")}>
+ <span className={cn(mono, 'text-muted-foreground tabular-nums')}>
{revision === undefined
? `${done}/${items.length}`
: `${done}/${items.length} · rev ${revision}`}
@@ -90,7 +90,7 @@ export function TodoItems({
)}>
{item.status === 'done' ? (
<span className="border-foreground/20 bg-foreground/[0.06] flex size-3.5 items-center justify-center rounded-[5px] border">
- <CheckIcon className="text-foreground/45 size-2.5" />
+ <CheckIcon className="text-muted-foreground size-2.5" />
</span>
) : item.status === 'failed' ? (
<span className="flex size-3.5 items-center justify-center rounded-[5px] border border-red-600/25 bg-red-600/[0.08] dark:border-red-400/25 dark:bg-red-400/[0.08]">
@@ -108,17 +108,17 @@ export function TodoItems({
className={cn(
item.status === 'done' &&
cn(
- compact ? 'text-foreground/55' : 'text-foreground/35',
+ compact ? 'text-muted-foreground' : 'text-muted-foreground',
'line-through decoration-[1.5px]'
),
item.status === 'active' && 'text-foreground/90',
- item.status === 'pending' && 'text-foreground/50',
+ item.status === 'pending' && 'text-muted-foreground',
item.status === 'failed' && 'text-red-600 dark:text-red-400'
)}>
{item.text}
</span>
{item.status === 'failed' && item.reason ? (
- <p className="text-foreground/45 text-xs leading-4 break-words">{item.reason}</p>
+ <p className="text-muted-foreground text-xs leading-4 break-words">{item.reason}</p>
) : null}
</div>
</li>
@@ -173,7 +173,7 @@ function ProgressMarker({ progress }: { progress: TodoProgress }) {
/>
);
}
- return <ListChecksIcon aria-hidden className="text-foreground/40 size-3.5 shrink-0" />;
+ return <ListChecksIcon aria-hidden className="text-muted-foreground size-3.5 shrink-0" />;
}
/**
@@ -226,7 +226,7 @@ export function TodoProgressCard({
</span>
<span
data-testid="todo-progress-count"
- className={cn(mono, 'text-foreground/40 shrink-0 tabular-nums')}>
+ className={cn(mono, 'text-muted-foreground shrink-0 tabular-nums')}>
{progress.allDone
? completedLabel
: open
@@ -236,7 +236,7 @@ export function TodoProgressCard({
<ChevronRightIcon
aria-hidden
className={cn(
- 'text-foreground/30 size-3 shrink-0 transition-transform duration-200 motion-reduce:transition-none',
+ 'text-muted-foreground size-3 shrink-0 transition-transform duration-200 motion-reduce:transition-none',
open && 'rotate-90'
)}
/>
@@ -281,7 +281,7 @@ export function TodoReceipt({
aria-expanded={open}
data-analytics-id="chat-todo-receipt-toggle"
onClick={() => onOpenChange(!open)}
- className="text-foreground/50 hover:text-foreground/80 flex min-w-0 items-center gap-1.5 py-0.5 text-start text-[12.5px] transition-colors">
+ className="text-muted-foreground hover:text-foreground/80 flex min-w-0 items-center gap-1.5 py-0.5 text-start text-[12.5px] transition-colors">
<ListChecksIcon aria-hidden className="size-3.5 shrink-0" />
<span className="min-w-0 truncate">
{label}
diff --git a/app/src/components/assistant-ui/elements/tool-call.tsx b/app/src/components/assistant-ui/elements/tool-call.tsx
index b7f1e29da5..15766bf330 100644
--- a/app/src/components/assistant-ui/elements/tool-call.tsx
+++ b/app/src/components/assistant-ui/elements/tool-call.tsx
@@ -103,12 +103,12 @@ export function ToolCall({
data-slot="tool-call-query"
className={cn(
mono,
- 'bg-foreground/[0.06] text-foreground/70 min-w-0 truncate rounded-md px-1.5 py-0.5'
+ 'bg-foreground/[0.06] text-muted-foreground min-w-0 truncate rounded-md px-1.5 py-0.5'
)}>
{query}
</span>
) : null}
- <span className="bg-foreground/[0.06] text-foreground/70 min-w-0 truncate rounded-md px-1.5 py-0.5">
+ <span className="ms-auto flex w-4 shrink-0 items-center justify-end">
{meta}
{!running && outcome === 'success' ? (
<CheckIcon className="fade-in zoom-in-90 animate-in size-3.5 text-emerald-500 duration-200" />
@@ -125,18 +125,18 @@ export function ToolCall({
<div className={cn(field, 'mt-2 overflow-hidden rounded-2xl text-xs')}>
{request != null ? (
<div className="px-3.5 pt-2.5 pb-2">
- <p className={cn(mono, "text-muted-foreground mb-1")}>{requestLabel}</p>
- <div className="bg-foreground/[0.06] mx-3.5 h-px">
+ <p className={cn(mono, 'text-muted-foreground mb-1')}>{requestLabel}</p>
+ <div className="text-muted-foreground max-h-48 overflow-auto font-mono">
{request}
</div>
</div>
) : null}
{request != null && result != null ? (
- <div className="px-3.5 pt-2 pb-2.5" />
+ <div className="bg-foreground/[0.06] mx-3.5 h-px" />
) : null}
{result != null ? (
<div className="px-3.5 pt-2 pb-2.5">
- <p className={cn(mono, "text-muted-foreground font-mono break-words")}>{resultLabel}</p>
+ <p className={cn(mono, 'text-muted-foreground mb-1')}>{resultLabel}</p>
<div className="text-foreground/90 max-h-64 overflow-auto">{result}</div>
</div>
) : null}
diff --git a/app/src/components/assistant-ui/elements/tool-error.tsx b/app/src/components/assistant-ui/elements/tool-error.tsx
index 9d56cca00d..faabee94d2 100644
--- a/app/src/components/assistant-ui/elements/tool-error.tsx
+++ b/app/src/components/assistant-ui/elements/tool-error.tsx
@@ -62,7 +62,7 @@ export function ToolError({
{...props}>
<div className="flex items-center gap-2.5">
<AlertCircleIcon className="size-3.5 shrink-0 text-red-500" />
- <span className={cn(mono, "text-muted-foreground min-w-0 wrap-anywhere")}>{name}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>{name}</span>
<span className="text-foreground/80 min-w-0 flex-1 truncate text-[13px]">{target}</span>
<span className={cn(mono, "text-muted-foreground shrink-0 tabular-nums")}>
{attempt}/{maxAttempts}
@@ -89,7 +89,7 @@ export function ToolError({
type="button"
onClick={onRetry}
disabled={retrying || !onRetry}
- className="text-foreground/70 hover:bg-foreground/[0.06] hover:text-foreground/95 flex h-7 items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96] disabled:pointer-events-none">
+ className="text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground/95 flex h-7 items-center gap-1.5 rounded-full px-2.5 text-xs font-medium transition-[background-color,color,scale] duration-150 active:scale-[0.96] disabled:pointer-events-none">
{retrying ? (
<Loader2Icon className="size-3 animate-spin motion-reduce:animate-none" />
) : (
diff --git a/app/src/components/assistant-ui/elements/tool-fallback.tsx b/app/src/components/assistant-ui/elements/tool-fallback.tsx
index b9bf06122f..35dd29862c 100644
--- a/app/src/components/assistant-ui/elements/tool-fallback.tsx
+++ b/app/src/components/assistant-ui/elements/tool-fallback.tsx
@@ -223,10 +223,10 @@ function ToolFallbackContent({
className={cn(
"aui-tool-fallback-content relative overflow-hidden text-sm outline-none",
'group/collapsible-content ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:animate-none',
- 'data-closed:animate-collapsible-up',
- 'data-open:animate-collapsible-down',
- 'data-closed:fill-mode-forwards',
- 'data-closed:pointer-events-none',
+ "data-[state=closed]:animate-collapsible-up",
+ "data-[state=open]:animate-collapsible-down",
+ "data-[state=closed]:fill-mode-forwards",
+ "data-[state=closed]:pointer-events-none",
'[--tw-duration:var(--animation-duration)]',
className
)}
@@ -328,7 +328,7 @@ function ToolFallbackError({
<p className="aui-tool-fallback-error-header text-muted-foreground font-semibold">
{headerText}
</p>
- <p className="aui-tool-fallback-error-reason text-muted-foreground break-words whitespace-pre-line">{errorText}</p>
+ <p className="aui-tool-fallback-error-reason text-muted-foreground">{errorText}</p>
</div>
);
}
diff --git a/app/src/components/assistant-ui/elements/tool-timeline.tsx b/app/src/components/assistant-ui/elements/tool-timeline.tsx
index 38b11ba008..8618c2a7f0 100644
--- a/app/src/components/assistant-ui/elements/tool-timeline.tsx
+++ b/app/src/components/assistant-ui/elements/tool-timeline.tsx
@@ -84,7 +84,7 @@ export function ToolTimeline({
className={cn('w-full max-w-sm', className)}
{...props}>
<CollapsibleTrigger className="group/trigger text-muted-foreground hover:text-foreground/90 flex items-center gap-1.5 rounded-md py-1 text-[13.5px] transition-colors outline-none">
- <ChevronRightIcon className={cn("size-3.5 shrink-0 opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-open/trigger:rotate-90 group-data-panel-open/trigger:rotate-90 motion-reduce:transition-none", openRotate)} />
+ <ChevronRightIcon className={cn('size-3.5 shrink-0 opacity-60', openRotate)} />
<SwapLabel active={streaming ? 0 : 1} className="text-start tabular-nums">
<ShimmerLabel active={streaming} className="relative inline-block leading-none">
{activeLabel}
@@ -107,7 +107,7 @@ export function ToolTimeline({
<ShimmerLabel active={active} className="relative inline-block leading-none">
{step.verb}
</ShimmerLabel>
- <span className="bg-foreground/[0.06] text-foreground/70 rounded-md px-1.5 py-0.5 font-mono text-[11px]">
+ <span className="bg-foreground/[0.06] text-muted-foreground rounded-md px-1.5 py-0.5 font-mono text-[11px]">
{step.chip}
</span>
</div>
@@ -118,7 +118,7 @@ export function ToolTimeline({
{stats.map(stat => (
<span
key={stat.file}
- className="bg-foreground/[0.06] text-foreground/70 inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[11px]">
+ className="bg-foreground/[0.06] text-muted-foreground inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[11px]">
<span>{stat.file}</span>
{stat.added !== undefined && (
<span className="text-emerald-600 dark:text-emerald-400">+{stat.added}</span>
diff --git a/app/src/components/assistant-ui/elements/web-search.tsx b/app/src/components/assistant-ui/elements/web-search.tsx
index d993a46a4b..1f2d686be9 100644
--- a/app/src/components/assistant-ui/elements/web-search.tsx
+++ b/app/src/components/assistant-ui/elements/web-search.tsx
@@ -71,13 +71,13 @@ export function WebSearch({
data-slot="web-search-query"
className={cn(
field,
- 'text-foreground/70 inline-flex w-fit max-w-full items-center gap-1.5 rounded-full px-3.5 py-2 text-xs'
+ "text-muted-foreground inline-flex w-fit items-center gap-1.5 rounded-full px-3.5 py-2 text-xs"
)}>
- <SearchIcon className="text-muted-foreground size-3" />
- <span className="text-foreground/70 inline-flex w-fit items-center gap-1.5 rounded-full px-3.5 py-2 text-xs">{query}</span>
+ <SearchIcon className="text-muted-foreground size-3 shrink-0" />
+ <span className="truncate">{query}</span>
</span>
) : null}
- <div data-slot="web-search-status" className="text-foreground/45 text-xs">
+ <div data-slot="web-search-status" className="text-muted-foreground text-xs">
{searching ? (
<ShimmerLabel className="relative inline-block leading-none">
{searchingLabel}
@@ -87,7 +87,7 @@ export function WebSearch({
)}
</div>
{shown.length > 0 ? (
- <div data-slot="web-search-results" className="flex flex-col">
+ <div data-slot="web-search-results" className="flex min-h-[5.75rem] flex-col">
{shown.map(result => {
const content = (
<>
@@ -97,7 +97,7 @@ export function WebSearch({
<span className="text-foreground/90 min-w-0 flex-1 truncate text-[13.5px]">
{result.title}
</span>
- <span className={cn(mono, "text-muted-foreground shrink-0")}>{result.domain}</span>
+ <span className={cn(mono, 'text-muted-foreground shrink-0')}>{result.domain}</span>
</>
);
const key = `${cycle}-${result.url ?? result.domain}-${result.title}`;
diff --git a/app/src/components/assistant-ui/file.tsx b/app/src/components/assistant-ui/file.tsx
index 7c8e74a322..b6a5cbb297 100644
--- a/app/src/components/assistant-ui/file.tsx
+++ b/app/src/components/assistant-ui/file.tsx
@@ -173,9 +173,9 @@ const FileImpl: FileMessagePartComponent = ({ filename, data, mimeType, sourceTy
return (
<FileRoot>
<FileIconDisplay mimeType={mimeType} />
- <div className="flex w-full max-w-xl flex-col gap-2">
+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">
<FileName>{filename}</FileName>
- {showSize && <FileSize bytes={getBase64Size(data)} className="text-muted-foreground text-[11px]" />}
+ {showSize && <FileSize bytes={getBase64Size(data)} className="text-xs" />}
</div>
<FileDownload
data={data}
diff --git a/app/src/components/assistant-ui/message-timing.tsx b/app/src/components/assistant-ui/message-timing.tsx
index 57bd92ade2..95f8332db1 100644
--- a/app/src/components/assistant-ui/message-timing.tsx
+++ b/app/src/components/assistant-ui/message-timing.tsx
@@ -70,10 +70,10 @@ export const MessageTiming: FC<{
<div className="grid min-w-35 gap-1.5 text-xs">
{timing.firstTokenTime !== undefined && (
<div className="flex items-center justify-between gap-4">
- <span className="flex items-baseline gap-1">
+ <span className="text-muted-foreground">
{t('messageTiming.firstToken', 'First token')}
</span>
- <span className="text-muted-foreground">
+ <span className="font-mono tabular-nums">
{formatTimingMs(timing.firstTokenTime)}
</span>
</div>
diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsx
index e398b22f09..6db50468b0 100644
--- a/app/src/components/assistant-ui/thread.tsx
+++ b/app/src/components/assistant-ui/thread.tsx
@@ -575,7 +575,7 @@ const ThreadWelcome: FC = () => {
const ThreadSuggestions: FC = () => {
return (
- <div className="aui-thread-welcome-suggestions flex w-full flex-col">
+ <div className="aui-thread-welcome-suggestions flex w-full flex-wrap items-center justify-center gap-2 px-4">
<ThreadPrimitive.Suggestions>{() => <ThreadSuggestionItem />}</ThreadPrimitive.Suggestions>
</div>
);
@@ -588,7 +588,7 @@ const ThreadSuggestionItem: FC = () => {
<Button
variant="ghost"
className="aui-thread-welcome-suggestion text-foreground hover:bg-muted border-border/60 h-auto gap-1.5 rounded-full border px-3.5 py-1.5 text-sm font-normal whitespace-nowrap transition-colors">
- <SuggestionPrimitive.Title className="aui-thread-welcome-suggestion-text-1 text-foreground" />
+ <SuggestionPrimitive.Title className="aui-thread-welcome-suggestion-text-1" />
<SuggestionPrimitive.Description className="aui-thread-welcome-suggestion-text-2 text-muted-foreground empty:hidden" />
</Button>
</SuggestionPrimitive.Trigger>
@@ -859,7 +859,7 @@ const ComposerAction: FC<{
aria-label={t('composer.voiceMode', 'Voice mode')}
disabled={isRunning}
onClick={onSwitchToMicCloud}>
- <MicIcon className="size-4" />
+ <MicIcon className="aui-composer-dictate-icon size-4" />
</TooltipIconButton>
)}
{/*
@@ -881,7 +881,7 @@ const ComposerAction: FC<{
type="button"
variant="ghost"
size="icon"
- className="aui-composer-dictate text-destructive size-7 rounded-full"
+ className="aui-composer-dictate size-7 rounded-full"
aria-label={t('assistantUi.thread.startVoiceInput', 'Start voice input')}>
<MicIcon className="aui-composer-dictate-icon size-4" />
</TooltipIconButton>
@@ -895,7 +895,7 @@ const ComposerAction: FC<{
type="button"
variant="ghost"
size="icon"
- className="aui-composer-stop-dictation size-7 rounded-full"
+ className="aui-composer-stop-dictation text-destructive size-7 rounded-full"
aria-label={t('assistantUi.thread.stopVoiceInput', 'Stop voice input')}>
<SquareIcon className="aui-composer-stop-dictation-icon size-3.5 animate-pulse fill-current" />
</TooltipIconButton>
@@ -1300,7 +1300,7 @@ const AssistantActionBar: FC = () => {
<TooltipIconButton
tooltip={t('chat.message.goodResponse')}
data-testid="assistant-feedback-positive"
- className="data-[submitted=true]:bg-accent data-[submitted=true]:text-accent-foreground">
+ className="data-[submitted=true]:text-primary-600 dark:data-[submitted=true]:text-primary-400">
<ThumbsUpIcon />
</TooltipIconButton>
</ActionBarPrimitive.FeedbackPositive>
@@ -1308,7 +1308,7 @@ const AssistantActionBar: FC = () => {
<TooltipIconButton
tooltip={t('chat.message.badResponse')}
data-testid="assistant-feedback-negative"
- className="data-[submitted=true]:bg-accent data-[submitted=true]:text-accent-foreground">
+ className="data-[submitted=true]:text-coral-600 dark:data-[submitted=true]:text-coral-400">
<ThumbsDownIcon />
</TooltipIconButton>
</ActionBarPrimitive.FeedbackNegative>
@@ -1513,10 +1513,10 @@ const EditComposer: FC = () => {
rows={2}
autoFocus
aria-label={t('conversations.assistantUi.edit.ariaLabel')}
- className="text-foreground min-h-14 w-full resize-none bg-transparent px-4 pt-3 pb-1 text-base outline-none"
+ className="bg-foreground/[0.04] text-foreground/90 min-h-16 resize-none rounded-xl px-3 py-2.5 text-sm leading-relaxed outline-none focus-visible:ring-1 focus-visible:ring-ring"
/>
{discardedReplies > 0 && (
- <div className="mx-2.5 mb-2.5 flex items-center gap-1.5 self-end">
+ <div className="flex items-center gap-2 text-amber-700 dark:text-amber-400">
<AlertTriangleIcon aria-hidden className="size-3.5 shrink-0" />
<span className="font-mono text-[11px] tabular-nums">
{t(
@@ -1529,12 +1529,12 @@ const EditComposer: FC = () => {
)}
<div className="flex items-center justify-end gap-2">
<ComposerPrimitive.Cancel asChild>
- <Button variant="ghost" size="sm" className="h-8 px-3">
+ <Button variant="ghost" size="sm" className="rounded-full">
{t('common.cancel')}
</Button>
</ComposerPrimitive.Cancel>
<ComposerPrimitive.Send asChild>
- <Button size="sm" className="h-8 px-3">
+ <Button size="sm" className="rounded-full">
{t('chat.elicitation.send')}
</Button>
</ComposerPrimitive.Send>