Design System

Principles

Five lines that keep the dashboard coherent as it grows.

01Reuse before you build
Prefer shared components and patterns over one-off UI.
02Tokens, not values
Use semantic color and typography tokens so light and dark themes stay in sync.
03Works for everyone
Keep interactions keyboard-accessible and respect reduced motion.
04Stories are the spec
Document reusable UI with co-located Storybook stories.
05Plain words
Write labels and guidance in sentence case and plain language.

Start from your task

Three common jobs, and the pages that answer them.

Designing a new page
Picking a color, a text style or a surface
Shipping something the agent does

Foundations

The raw material: color, type, icons, figures, surfaces, motion and the accessibility bar they all meet.

Color
Semantically named colors and a set of ramps for the full palette. Optimized for light and dark.
Typography
Beautiful display and mono fonts that scale for all sizes.
Iconography
A distinctly Fern icon set that was crafted with meticulous care.
Figures
Beautifully generated line drawings that include interactivity, motion, and colors.
Surfaces
Introduce layering of components with ease.
Motion
Short, consistent motion that respects reduced motion.
Accessibility
Fern supports accessibility standards out of the box.

Language

How the dashboard speaks and behaves, for AI and for the people who ship APIs.

Design language
The macro guidelines that define design at Fern.
Content
Write plainly with sentence case. Follow these guidelines to ensure you do so.

Brand

How Fern looks outside the product: the Midjourney art, diagrams and figures behind posts, launches and ads.

Marketing
How Fern makes its marketing art: Midjourney backgrounds, diagrams in posts and figures for the blog.

Library

What to build with: the components in three tiers, the patterns they form, and the agent's mark.

Components
Shared components, from single controls to whole features.
Patterns
How components come together into pages.
Agent mark
The Fern Agent's mark, calm at rest and moving while it works.

Command line

How Fern looks and behaves in a terminal: the fern CLI and the setup wizard.

Fern CLI
How the Fern CLI stays clear for people and predictable for scripts and agents.

Agents

How agents read, apply and are checked against this system.

Building with agents
A design loop built for agents and humans building with Fern.

Kept in step

One system, written down in four places that check each other.

This site
Every rule with a live example. Copy a class, a token or an import from any specimen.
DESIGN.md
The same rules as text, for agents and for review. Its token tables are generated.
Storybook
Every component's variants and states, next to its source. Run pnpm dashboard:storybook.
CI
check:design-system flags a PR when the docs drift from the code or a component has no story.