跳至主要内容
Meta Open Source

Meta Open Source DESIGN.md 设计系统与风格规范

Developer ToolsPro 专属v1.0.0 (最新)

Meta Open Source 的设计系统以蓝色(#0064E0)为主色,字体用 Open Sans、Optimistic Display。这份 DESIGN.md 从 opensource.fb.com 记录了 9 种颜色、57 个设计 Token。

opensource.fb.com•关联于 2026年12月3日 04:00•审核 Bestony

Meta's open-source portal pairing the Optimistic Display hero face with Open Sans UI type, Meta-blue pill buttons, and washed pastel panels on a near-white paper ground.

Pro 专属网站

当前可免费阅读 Meta Open Source 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 57 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。

显示 8 / 9 个颜色
浅色 (74%)
Aa 示例文字#D9E0E5
outline
rgb(217, 224, 229)
深色 (14%)
Aa 示例文字#0064E0
primary
rgb(0, 100, 224)
浅色 (93%)
Aa 示例文字#F5F7F8
surface
rgb(245, 247, 248)
浅色 (100%)
Aa 示例文字#FFFFFF
on-primary
rgb(255, 255, 255)
深色 (1%)
Aa 示例文字#14202B
on-surface
rgb(20, 32, 43)
浅色 (100%)
Aa 示例文字#FFFFFF
surface-container
rgb(255, 255, 255)
深色 (11%)
Aa 示例文字#4D5E6D
on-surface-variant
rgb(77, 94, 109)
浅色 (88%)
Aa 示例文字#E8F2FF
surface-container-high
rgb(232, 242, 255)
获取完整色板、CSS 变量与 DESIGN.md 源码

升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。

设计规范

Overview

Meta Open Source is the portal for Meta's open-source projects, and its homepage is a calm two-column hero: a small tracked kicker ("META OPEN SOURCE") with a short blue rule above a 95px Optimistic Display headline ("Build with open source from Meta."), one paragraph of Open Sans body, and a pair of 999px pill buttons — solid Meta blue ("Explore projects →") and white-with-hairline ("How to contribute →"). To the right, a blue-tinted card carries the Meta Open Source wordmark over soft concentric gradients. The ground is a near-white paper (#f5f7f8), and the footer drops to a deep navy with a 3px blue top rule. The personality is institutional and plain: short sentences, arrow-terminated links, and no marketing adjectives.

Colors

One blue does the work; everything else is paper and ink.

  • Primary (#0064e0): Meta's blue — the "Explore projects →" button fill and its border, the footer's 3px top rule, and the small rule above the hero kicker.
  • On-primary (#ffffff): the primary button label.
  • On-surface (#14202b): the near-black ink for the display headline, nav links, and the secondary button label.
  • On-surface variant (#4d5e6d): the slate gray for all body copy.
  • Surface (#f5f7f8): the near-white paper page ground.
  • Surface container (#ffffff): the secondary button, cards, and the wordmark panel's base.
  • Surface container high (#e8f2ff): the pale blue wash behind the hero card and accent panels.
  • Surface container highest (#efedff): the pale violet wash for a second accent panel.
  • Outline (#d9e0e5): the hairline under the header and between cards. The secondary button carries a darker 1px border in #667784.

The deep blue (#004db3) is reserved for focus rings and hover states, and the footer runs on #0b2032 with #f7fbff type.

Typography

Two families with strict role separation. Optimistic Display — Meta's display face — carries every large statement at a single 400 weight: the hero runs 95px at 0.97 leading with tight −0.057em tracking, section headings step down through 67.7px and 38px, all with negative tracking so the type reads tight and architectural. Open Sans carries everything else: 400 for body at 16–20px, 600 for labels and buttons at 14px, and 11px/600 uppercase with 0.13em tracking for the kickers. No third family and no italic.

  • Hero (display-xl, 95px/400): "Build with open source from Meta."
  • Section headings (display-lg 67.7px / headline-md 38px, 400): "Start with what you need." and the card headings.
  • Kickers (kicker-md, 11px/600): "META OPEN SOURCE", "EXAMPLE PROJECT AREAS" — uppercase, tracked, with a short blue rule.
  • Body (body-lg 20px / body-md 16px, 400): "Explore current projects, learn how to contribute, or report a security issue."
  • Buttons (label-md, 14px/600): "Explore projects →", "How to contribute →".
  • Navigation (nav-md, 16px/400): "Projects", "Contribute", "Code of Conduct", "Security ↗".

Layout

A 1184px shell (736px for narrow blocks). The header is an 81px translucent bar at 97% paper — the Meta Open Source lockup left, four nav items right, with "Security ↗" marked as an external link. The hero splits into a text column (kicker, headline, paragraph, two pills) and a visual column (the blue-gradient card with the wordmark). Below, "Start with what you need." opens a three-card row — "Find code and documentation", "Contribute", "Report a security issue" — followed by the "EXAMPLE PROJECT AREAS" grid of washed pastel tiles. The footer is full-width deep navy with the blue top rule, quiet 14px links, and the Meta wordmark.

Elevation & Depth

Restrained. Cards are white with a hairline border and at most a soft drop (rgba(0,0,0,0.18) 0 16px 36px on the raised hero card, which adds an offset light-blue slab rgba(199,225,255,0.25) 10px 10px 0); the navy footer carries a single deep shadow rgba(0,53,126,0.85) 0 32px 72px -52px. Buttons are flat — solid blue or white with a border — and rely on fill and shape rather than shadow.

Shapes

Pills for controls, small radii for cards. Both hero buttons are 999px pills at 52px tall with a 10px gap between label and arrow; content cards are 11px, larger panels 16px, and the biggest containers 32px. Icon-only controls are circles. Nothing is sharply square.

Motion & Micro-interaction

One timing everywhere: 150ms ease on border-color, background, color, and transform for every interactive element. Nothing loops or parallaxes. Honor prefers-reduced-motion by making the transition instant.

Voice & Content Strategy

  • Tone of voice: institutional and plain. The hero states what the site is ("Build with open source from Meta.") and the sub-head explains the three jobs ("Explore current projects, learn how to contribute, or report a security issue").
  • Capitalization: sentence case for headings, body, and button labels; kickers are uppercase by style rule.
  • Terminology: the content is "projects"; the actions are "contribute" and "report a security issue"; governance is the "Code of Conduct"; external destinations are marked with "↗ (external site)".
  • Arrow convention: every forward action ends in an arrow — "Explore projects →", "How to contribute →".
  • Card framing: each of the three cards is a heading plus one line ("Find code and documentation"), never a paragraph.
  • Project areas: presented as quiet uppercase labels ("EXAMPLE PROJECT AREAS") over washed pastel tiles rather than as feature marketing.

Components

  • button-primary: Meta blue (#0064e0) 999px pill, white Open Sans 14px/600 label with a trailing arrow, 52px tall, 13px 20px padding — "Explore projects →".
  • button-secondary: white fill with a 1px #667784 border and near-black ink, the same geometry — "How to contribute →".
  • kicker: 11px/600 uppercase Open Sans with 0.13em tracking in slate gray, led by a short blue rule — "META OPEN SOURCE".
  • card: white surface, 11px radius, 24px padding, hairline border — the three action cards and pastel tiles.
  • nav-link: #14202b Open Sans 16px/400 in the 81px header — "Projects", "Contribute".
  • body-text: #4d5e6d Open Sans 20px/400 at 1.65 leading — the hero paragraph and section copy.

Do's and Don'ts

  • Do keep the palette to Meta blue (#0064e0), near-black ink, slate gray, and paper; don't introduce hues beyond the blue, violet, and mint washes.
  • Do reserve solid blue for the single primary action; don't paint sections or headings blue.
  • Do set every display statement in Optimistic Display 400 with negative tracking; don't fake display type with bold Open Sans.
  • Do set body and UI in Open Sans with 600 only for labels and buttons; don't bold paragraphs.
  • Do keep buttons as 999px pills at 52px tall with the trailing arrow; don't use rectangles or drop the arrow.
  • Do mark external destinations with "↗ (external site)"; don't link off-site without the marker.
  • Do keep cards white on paper with a hairline; don't add heavy shadows or colored borders.
  • Do keep motion to the single 150ms ease; don't add looping animation.

如何在 AI agent 里使用 Meta Open Source 的 DESIGN.md

  1. 获取 Meta Open Source 的 DESIGN.md

    请求 https://www.designmdpro.app/websites/meta-open-source.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "meta-open-source"),即可获取公开版本;完整 tokens 需要 Pro。

  2. 保存为项目根目录下的 DESIGN.md

    把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。

  3. 让 agent 按它来写

    例如:“按照 DESIGN.md 里的 Meta Open Source 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”

Meta Open Source 风格 AI Prompt

参照 Meta Open Source(opensource.fb.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。

## 配色
- outline: #D9E0E5
- primary: #0064E0
- surface: #F5F7F8
- on-primary: #FFFFFF
- on-surface: #14202B
- surface-container: #FFFFFF
- on-surface-variant: #4D5E6D
- surface-container-high: #E8F2FF

## 字体
- nav-md: "Open Sans", 16px, weight 400, line-height 1.5
- display-lg: "Optimistic Display", 67.7px, weight 400, line-height 1.02, letter-spacing -0.05em

## 圆角
- lg: 16px
- md: 11px
- sm: 6px

## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/meta-open-source.md
在 V0 Prompt 生成器中自定义 →

常见问题

Meta Open Source 的主色是什么?

Meta Open Source 的品牌主色是蓝色(#0064E0),其 DESIGN.md 共定义了 9 个颜色 token。

Meta Open Source 用的是什么字体?

Meta Open Source 的主要字体是 Open Sans 和 Optimistic Display。

Open Sans 是免费字体吗?

是的。Open Sans 是免费开源字体,可在 Google Fonts 获取。

如何在 Tailwind CSS 或 shadcn/ui 中使用 Meta Open Source 的设计 token?

本页公开了 Meta Open Source 的主色 #0064E0。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。

这份 Meta Open Source DESIGN.md 是官方的吗?

不是。这份文件由 DesignMD Pro 从 opensource.fb.com 的公开页面提取,与 Meta Open Source 无关联,也未获其认可。

Meta Open Source 的 DESIGN.md 最近一次更新是什么时候?

当前版本 1.0.0 提取于 2026年12月3日。

在 Google 中收藏本站

Meta Open Source 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 Meta Open Source 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。