AgentMark

Fiddle
The Fern Agent's mark, at rest or thinking.

Usage

The import, then a use to start from. Both copy as they are.

Import
import { AgentMark } from "@/components/agent/AgentMark";import { cn } from "@/utils/utils";
Example
<AgentMark    thinking={isStreaming}    className={cn("size-4", isStreaming ? "text-brand" : "text-muted")}/>

When to use

Use it for

  • Wherever the Fern Agent appears: the Ask pill, the panel header, a reply as it streams.
  • thinking while it works, in text-brand, with a short present-tense line beside it. Muted at rest.
  • Drawn on the 16px grid, from 16px in a pill to 64px in an empty state.

Avoid

  • Sparkles, robots or gradients for AI. The agent has one mark.
  • Ask Fern in the docs, or a generic AI label.

Accessibility

Checks

  • Under reduced motion it holds its resting shape, and the line beside it says what's happening.
  • The mark is decorative: the words next to it (“Fern Agent”, “Reading your OpenAPI spec…”) name it.

API

Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.

AgentMark

The Fern agent mark: 49 dots that morph between four shapes. Rests on its `idle` shape; `thinking` cycles through all four, rippling out from the centre, then settles back. Coloured by currentColor, so set it from the parent: muted at rest, `text-brand` while thinking. Reduced motion keeps it on `idle`.

PropValues
idleSee the source
thinkingSee the source
speedrange
VariantsDefaultThinkingIdleShapesSizesInAButton

Keep going

Agent mark
The Fern Agent's mark, calm at rest and moving while it works.
Design language
The macro guidelines that define design at Fern.