Design language

The macro guidelines that define design at Fern.

Reach for it when
  • Designing anything the Fern Agent does or says.
  • Deciding how dense, how mono, how keyboard-first a new view should be.

The short version

If you read nothing else on this page, read these.

Reading your OpenAPI spec…
Do. Say what the agent is doing, in a short present-tense line beside its mark.
AI is working its magic…
Don't. Spin a loader or announce the magic. Neither says anything about the work.
Fern Agent

Your createPayment endpoint had no example for the 402 response. I added one from the schema and linked it from the error guide.

openapi.yml errors.mdx
Apply these edits?
Do. Show the work: name what changed, cite the files, and preview before applying.
Fern Agent

Done! I've updated your docs so everything works great now 🎉

Don't. Report success without sources. Nobody can check or undo what they can't see.

For AI

The Fern Agent is a capable colleague, not a mascot. It shows up as one calm mark, says what it's doing, and shows its sources. Nothing sparkles.

7 rules
  1. 01One mark, one nameThe agent is always AgentMark and is called the Fern Agent. Ask Fern is the docs-side assistant. Never a generic sparkle, robot or “AI” label, and never “AI-powered”.
  2. 02Thinking looks like thinkingWhile it works, the mark animates slowly in text-brand and a short present-tense line says what it's doing (“Reading your OpenAPI spec…”). No spinners, no progress bars for open-ended work.
  3. 03Green is the agent's color, used sparinglyFern green marks the agent's presence: the mark, its active state, the Ask pill. Agent output itself is set in normal text colors on normal surfaces. Large green fills are reserved for the primary action.
  4. 04Show the workAnswers cite their sources inline and list the files or pages touched. Edits are previewed as a diff before they apply, and anything the agent changed is labelled so a person can undo it.
  5. 05Ask, don't assumeWhen a step is ambiguous or destructive the agent asks a short question with concrete options (UserQuestion). It never invents a value to keep going.
  6. 06Plain, direct, briefThe agent writes like the rest of the dashboard: sentence case, second person, no exclamation marks, no filler (“Great question!”). Errors say what happened and what to do next.
  7. 07Streaming is quietText streams in place without layout shift. Code blocks and tables render once they are complete. The page never jumps while the agent types.

For dev tools

The dashboard is a tool for people who ship APIs. It is dense, legible and keyboard-first, and it speaks in the user's own artefacts: specs, SDKs, commits, domains.

Speaking in the user's artefacts

A domain, a command, a version and a commit, all copyable and all in mono, with the shortcuts on show.

docs.acme.dev
Live
$ fern generate --group python-sdk
Version
2.14.0
Commit
a746baf
Published
2 min ago
Search K · Agent J
docs.acme.devLive2 min ago
api.acme.devPublishingJust now
staging.acme.devErrorYesterday
Do. Dense, not cramped: more rows, hairlines between them, values in mono.
docs.acme.devLive
api.acme.devPublishing
Don't. Give each row its own card. The list stops fitting on a screen.
7 rules
  1. 01Dense, not crampedDefault to 14px body text (text-sm), 32px controls and 4px spacing steps. Show more rows rather than bigger rows. White space separates groups; hairlines separate rows.
  2. 02Values are set in monoAnything a user might copy or compare is mono: domains, versions, commit SHAs, paths, commands, timestamps in tables, counts in tiles. Labels and prose stay in the sans.
  3. 03Keyboard firstPrimary flows have shortcuts, shown with KbdShortcut in tooltips and menus (⌘K search, ⌘J agent). Lists support arrow keys. Forms submit on Enter.
  4. 04Show the real thingPreviews are live renders, not illustrations. Commands are copyable and runnable as shown. Status comes from the system (StatusBadge), with the timestamp of when it was last true.
  5. 05Progressive disclosureThe first screen shows the state and the next action. Details (IDs, raw logs, config) live one hover or click away in tooltips, insets and side panels. Nothing is hidden that the user needs to decide.
  6. 06Quiet chrome, loud contentChrome is gray on gray: bg-page, bg-surface, hairline border-default. Color is reserved for status and the primary action, so the user's content is the brightest thing on the page.
  7. 07Name things by what they areDocs site, SDK, MCP server, API definition, custom domain. Not vendor or infrastructure names. The outcome (“Your site is live at…”) comes before the mechanism.

Keep going

Content
Write plainly with sentence case. Follow these guidelines to ensure you do so.
Agent mark
The Fern Agent's mark, calm at rest and moving while it works.
Patterns
How components come together into pages.