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
01One mark, one name
The agent is alwaysAgentMarkand is called the Fern Agent. Ask Fern is the docs-side assistant. Never a generic sparkle, robot or “AI” label, and never “AI-powered”.02Thinking looks like thinking
While it works, the mark animates slowly intext-brandand a short present-tense line says what it's doing (“Reading your OpenAPI spec…”). No spinners, no progress bars for open-ended work.03Green is the agent's color, used sparingly
Fern 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.04Show the work
Answers 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.05Ask, don't assume
When a step is ambiguous or destructive the agent asks a short question with concrete options (UserQuestion). It never invents a value to keep going.06Plain, direct, brief
The 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.07Streaming is quiet
Text 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
01Dense, not cramped
Default 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.02Values are set in mono
Anything 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.03Keyboard first
Primary flows have shortcuts, shown withKbdShortcutin tooltips and menus (⌘Ksearch,⌘Jagent). Lists support arrow keys. Forms submit on Enter.04Show the real thing
Previews 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.05Progressive disclosure
The 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.06Quiet chrome, loud content
Chrome is gray on gray:bg-page,bg-surface, hairlineborder-default. Color is reserved for status and the primary action, so the user's content is the brightest thing on the page.07Name things by what they are
Docs 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.