Skip to content

Use different border colors for "Plan" and "Chat" modes so its easier to differentiate #205

Description

@omerguel

I used amber-500 but whatever color is fine ig.

Prompt:

In apps/web/src/components/ChatView.tsx, update the composer container's border styling to visually distinguish "plan" mode from "chat" mode when the composer is focused. Find the

with the group rounded-[20px] border bg-card classes (the composer wrapper).
Change the border logic so that:

  • Unfocused: always border-border regardless of mode.
  • Focused in plan mode (interactionMode === "plan"):
    focus-within:border-amber-500
  • Focused in chat mode (default): focus-within:border-ring
    Move the focus-within:border-ring from being unconditionally applied into the conditional so each mode gets its own focus border color.
    The transition-colors duration-200 class already on the element handles smooth animation. interactionMode is already in scope — no new imports or variables needed.

Before:
Image

After:
Image

Activity

  1. nathanscain commented on Mar 24, 2026

    @nathanscain

    I'd just add that the send button also change colors to match - looks a bit off having it stay blue. Otherwise love the change because I often accidentally send messages meaning to be in plan mode.

  2. juliusmarminge commented on Jun 20, 2026

    @juliusmarminge
    Member

    Plan and Build modes now use distinct icons and active-mode styling in the composer, so the mode is visually differentiated without relying on border color alone.

    This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions