Fern DESIGN.md 设计系统与风格规范
Developer ToolsPro 专属v1.0.0 (最新)Generate API documentation, SDKs, and an agent-first CLI from a single OpenAPI source.
当前可免费阅读 Fern 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 51 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。
升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。
设计规范
Overview
Fern’s marketing site is a calm, technical identity for teams building API documentation and SDKs. The page balances an editorial white hero with a large dark-blue product demonstration, then returns to clean, light sections built from product screenshots, code examples, customer proof, and restrained partner accents. The overall tone is precise and capable without feeling like a dense developer dashboard.
Colors
- Ink (
#171717) is reserved for the strongest action surfaces and anchors the otherwise neutral presentation. - Fern green (
#008700) appears in the botanical wordmark, status accents, and API or code examples. - Link blue (
#0d74ce) highlights interactive and technical details, including link-like UI elements in product demos. - Charcoal (
#202020) is the main heading and interface text color; medium gray (#737373) supports explanatory copy. - White and very light gray (
#f7f7f7) form the dominant background planes. Fine gray outlines separate controls and screenshots without making the layout feel boxed in. - Red is used sparingly for error or destructive API examples rather than as a broad brand surface.
Typography
The site uses the custom gtPlanar sans family for the brand and interface. Its light, rounded forms create a relaxed editorial feel even in large headlines; body copy typically uses 16px or 20px sizing with generous line height. berkeleyMono and JetBrains Mono appear in developer-focused code and endpoint examples, while Inter is present in some product-preview content.
Layout
At desktop size, the page uses a wide content frame measured near 1376px, with generous horizontal and vertical separation. The hero aligns a large left headline with a compact agent setup control on the right; subsequent sections alternate between full-width dark or tinted product demonstrations and quiet, multi-column information layouts. Use a 4px base scale with frequent 8px, 16px, 32px, and 64px intervals.
Elevation & Depth
Large product previews and code workspaces are grouped with fine outlines, shallow shadows, and background contrast. The dark navy demonstration region is the strongest depth and color break on the homepage; most other cards remain bright, with only subtle shadowing.
Shapes
Controls and panels favor soft, compact rounding: approximately 6–10px for buttons, inputs, and preview frames. Small tags and selected states may use pill shapes, while code blocks and page sections keep clearly defined rectangular geometry.
Motion & Micro-interaction
Captured styles show frequent 150ms transitions using a restrained ease curve for color, borders, transforms, and control states. Some product previews use slower opacity reveals around 500–700ms. Keep ordinary controls quick and understated; reserve longer transitions for staged visual content.
Voice & Content Strategy
Fern uses concise, technical, outcome-oriented copy and speaks directly to API teams. Headings emphasize developer and agent experience, while navigation and actions remain short and literal. Examples include “Upgrade your developer and agent experience,” “Set up Fern with your agent,” and “Try Fern Docs and SDKs before you sign up.”
Components
Navigation and Actions
The compact top navigation uses muted text links, followed by a light outlined “Start for free” control and a dark filled “Book a demo” action. Buttons are short, roughly 32px high, and use medium-weight gtPlanar text with 10px corner radii.
Product Demonstrations
The API documentation preview combines a light framed browser-like shell, compact horizontal navigation, a left endpoint rail, API request/response content, and syntax-colored code. Use restrained borders and shadows to separate nested panels; maintain clear hierarchy between endpoint labels, operation chips, and code.
Cards and Feature Sections
Feature content is organized into open columns and screenshot-led panels rather than heavy boxed cards. Use pale neutral backgrounds to group adjacent content, and reserve the dark navy band for a prominent, immersive demo.
Do's and Don'ts
- Do keep the surrounding canvas nearly monochrome and spacious.
- Do use gtPlanar for brand and interface text, with a legible monospace face for code.
- Do use green and blue as technical accents rather than broad decorative fills.
- Do make developer examples readable and structurally clear, with distinct endpoint, method, and code roles.
- Do use compact 6–10px rounding for controls and preview frames.
- Do use thin outlines and shallow shadows to define nested documentation surfaces.
- Don't compete with the product demo by adding multiple saturated backgrounds.
- Don't apply the mono typeface to general prose or oversized marketing headlines.
- Don't turn every content section into a bordered card.
如何在 AI agent 里使用 Fern 的 DESIGN.md
获取 Fern 的 DESIGN.md
请求 https://www.designmdpro.app/websites/fern.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "fern"),即可获取公开版本;完整 tokens 需要 Pro。
保存为项目根目录下的 DESIGN.md
把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。
让 agent 按它来写
例如:“按照 DESIGN.md 里的 Fern 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”
Fern 风格 AI Prompt
参照 Fern(buildwithfern.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。 ## 配色 - error: #B91C1C - outline: #D9D9E0 - primary: #171717 - surface: #FFFFFF - tertiary: #0D74CE - secondary: #008700 - on-primary: #FAFAFA - on-surface: #202020 ## 字体 - body-lg: "gtPlanar", 20px, weight 300, line-height 1.5 - code-md: "berkeleyMono", 13px, weight 400, line-height 1.5 ## 圆角 - lg: 8px - md: 6px - sm: 4px ## 规则 - 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。 - 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。 - 圆角和间距取自上面的尺度,让各组件保持一致。 完整 DESIGN.md:https://www.designmdpro.app/websites/fern.md在 V0 Prompt 生成器中自定义 →
常见问题
Fern 的主色是什么?
Fern 的品牌主色是黑色(#171717),其 DESIGN.md 共定义了 11 个颜色 token。
Fern 用的是什么字体?
Fern 的主要字体是 gtPlanar 和 berkeleyMono。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Fern 的设计 token?
本页公开了 Fern 的主色 #171717。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。
这份 Fern DESIGN.md 是官方的吗?
不是。这份文件由 DesignMD Pro 从 buildwithfern.com 的公开页面提取,与 Fern 无关联,也未获其认可。
Fern 的 DESIGN.md 最近一次更新是什么时候?
当前版本 1.0.0 提取于 2026年11月25日。
Fern 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 Fern 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。