Meta for Developers DESIGN.md 设计系统与风格规范
Developer ToolsPro 专属v1.0.0 (最新)Meta's developer portal: a shadowless white system in the Optimistic type superfamily, one blue, a four-step grey ramp, a six-stop pastel hero wash, and photo legibility solved with gradient scrims instead of shadows.
当前可免费阅读 Meta for Developers 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 189 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。
升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。
设计规范
Overview
Meta for Developers is the entry point for everything you can build on Facebook, Instagram, Messenger, WhatsApp and Threads. It is a marketing portal built on Meta's internal design system, and it shows in the best way: the CSS is machine-generated with obfuscated class names and a full token layer, so the visual language is unusually disciplined — one blue, one grey ramp, one type superfamily, and a component set that repeats across all 6,128px of the page.
The visual idea is a white page with one pastel gesture at the top and photography doing the rest. The hero is a single wide card filled with a six-stop gradient running mint → light blue → lavender → pink → peach, holding one 64px line of type. Everything below it is white, grey or dark bands separated by whitespace and 1px hairlines, with photographs — product shots, headshots, event photography — carrying the colour.
The system's most distinctive decision is that it has no shadows at all, and
says so explicitly. Meta's token layer defines --shadow-1, --shadow-2 and
--shadow-inset, and this theme sets all three to transparent. Where other
sites would reach for elevation, this one uses surface steps (#ffffff →
#f1f4f7 → #1c2b33) and, over photography, gradient scrims.
Colors
- Primary / Meta blue (#0064e0): Links (17), the filled buttons (9), and the
active states. The button gradient is a separate, lighter pair —
45deg, #0065e0 → #0f8bff— so a blue button is never flat. Note the two blues are one digit apart (#0064e0for links,#0065e0for the gradient's start); they are not the same token and are not interchangeable. - Primary-soft (#385898): The older Facebook blue, still used for the product pills, the quiet buttons and the inverse button labels. It is the site's second blue and it does a lot of quiet work.
- Primary-ink (#0457cb): The pressed/link-hover blue, used once.
- Ink (#1c2b33): The primary text colour (27 uses) and the ground of the dark bands and the footer (3 uses). A blue-grey near-black, never pure black.
- Ink-deep (#0a1317): The darkest text, 11 uses, for the heaviest headings.
- Grey ramp — four steps, and they are the real workhorse:
#465a69(secondary copy, 15 uses) →#5d6c7b(muted copy and nav links, 19 uses) →#67788a(faintest, the 12px eyebrows, 3 uses). Body ink#1c2b33sits above them. - Surface (#ffffff): The page ground (21 uses) and every card.
- Subdued (#f1f4f7): The grey band ground and the product pills (5 uses).
- Borders:
#cbd2d9and#dadde1, used sparingly — separation comes from surface steps, not lines. - The hero wash is the only saturated colour block on the page, and it is
six stops of pastel:
295.2deg, #def9ea → #ddf7ec 10% → #daebfd 28% → #e1e6fa 67% → #f5e4f4 89% → #fdefe6. Mint at the top left, peach at the bottom right, with light blue and lavender between. It reads as a soft light source rather than as a brand colour. - Scrim (#000000b8): The black-to-transparent gradient laid over
photographs —
180deg, #0000 75%, #000and180deg, #0000, #000000b8. This is how white type stays legible over imagery in a system with no shadows.
The inner pages add four more surfaces: #f8f9fb (a faintly blue-grey band
ground, three uses on the blog and success-stories pages — one step off
#f1f4f7 and easy to confuse with it), #f2f2f2 (a neutral grey, one use),
#232323 (a warm near-black used for blog body copy, seventeen uses) and, on
/docs only, #e1edf7 (a pale blue surface) and #283943 (a dark slate
band).
Typography
One superfamily, "Optimistic", in three roles. It is Meta's own house family and it ships as several separately-named cuts, which the rendered font-family list makes visible:
| Cut | Weights loaded | Role |
|---|---|---|
| Optimistic Display | 500, 700 | Every heading |
| Optimistic Text (+ Text Normal / Text Bold) | 400, 500, 700 | Body and UI |
| Optimistic AI VF | variable 300–800 | Links and nav |
Fallbacks are Helvetica / Helvetica Neue / Arial, with Montserrat and Noto Sans
behind the Display and AI VF cuts. A fourth family, Freight Sans, is declared
with a complete twelve-face @font-face set (300–900, roman and italic) but is
used by a single class and never appears in the rendered families — it is
framework ballast on this page.
The /docs section does not use Optimistic at all. It renders in Graphik
LCG Web (79 of its 84 measured text elements) with Optimistic AI VF only for
links, plus a cut called "Optimistic 95" on six elements. Its text colour is
#1c1e21 rather than #1c2b33, it carries a pale-blue #e1edf7 surface and a
dark-slate #283943 band that appear nowhere on the marketing pages, and its
radii drop to 4px — the marketing site's loosest radius is 64px. So the
portal is really two systems sharing one header and footer: a rounded,
Optimistic-set marketing surface, and a tight, Graphik-set documentation
surface. If you are copying this design, pick one.
The scale is 1.1 leading for display and 1.5 for body, with the component
token layer stating it directly: --body-font-size: 16px; --body-line-height: 22px; --display1-font-size: 48px; --display1-line-height: 52px.
| Level | Face | Size / weight | Leading |
|---|---|---|---|
| Hero h1 | Optimistic Display | 64px / 500 | 70.4px |
| Section h2 | Optimistic Display | 48px / 500 | 52.8px |
| Card h3 | Optimistic Display | 36px / 500 | 39.6px |
| Sub h3 / h4 | Optimistic Display | 24px / 500–600 | 26.4px |
| Lead p | Optimistic Text | 24px / 400 | 36px |
| Body p | Optimistic Text | 18px / 500 | 27px |
| Link / button / nav | Optimistic AI VF | 15px / 400 | 20px |
| Eyebrow | Optimistic Text | 12px / 400 | 13.2px, +0.48px |
Three details define the voice of the type:
- Headings are 500, not bold. The 64px hero line is Optimistic Display Medium, which is why it reads as calm rather than loud at that size. Only the 24px card headings go to 600.
- The 12px eyebrow with +0.48px tracking is the system's small-label style,
used for "SUCCESS STORIES" and the section kickers, in the faintest grey
#67788a. It is the only place tracking is positive. - One heading carries −1px tracking — a single inverse 36px heading over a dark band, tightened to fit its measure.
Layout
A 1296px container (nine uses) with a wider 1504px variant for full-bleed bands, and a 16px gutter. The page is 6,128px tall and is a vertical stack of full-width bands:
- Header — 80px tall, white, with the Meta wordmark left, four nav items with dropdown chevrons, "Login" and a search icon right. No border; the separation from the hero is whitespace alone.
- Hero — one wide gradient card at 64px radius, centred 64px type and a dek, inset from the page edges rather than full-bleed.
- "Get started" — four icon tiles in a row, each a dark rounded square beside a blue link with a trailing arrow.
- "What's new" — a horizontal carousel of cards: a photo card, a dark card with a metallic ring render, and a light card, with prev/next chevrons.
- "Build with us" — rows of product pills (
#f1f4f7grounds, 100px radius, ~77–85px tall), one per platform: Facebook, Messenger, Instagram, WhatsApp, Threads. - "Success stories" — a dark
#1c2b33band with a 36px inverse heading and three photo cards with names, one-line stories and "Learn more" links. - "Explore all our products" — a list of rows, each a title, a one-line description and an "Overview" link on the right. No cards, no borders between rows.
- "Latest news" — three cards with a date, a headline, an excerpt and a source tag.
- Newsletter — a blue gradient card with a "Sign up" inverse button.
- Footer — dark
#1c2b33, four link columns, a social icon row and a language picker.
The rhythm is 72px and 48px of vertical padding, with 32px the default inner gap and 16px the tight one. Spacing runs on a strict 4px base: 4, 8, 10, 16, 24, 32, 48, 72, 80.
Elevation & Depth
None — and the token layer proves it is intentional. There is not a single
drop shadow on the marketing pages, and the CSS contains
--shadow-1: transparent; --shadow-2: transparent; --shadow-inset: transparent. Meta's design system ships elevation tokens and this theme turns
them off.
Depth is expressed three other ways:
- Surface steps.
#fffffffor cards,#f1f4f7for subdued bands,#1c2b33for the dark bands and footer. A pill on a grey band and a card on white both read as raised with no shadow applied. - Gradient scrims over photography.
180deg, #0000 75%, #000and180deg, #0000, #000000b8darken the bottom of photos so white captions stay legible. This is the system's answer to "text over image" and it is the only place a black appears at partial opacity. - Inset hairlines.
#cbd2d9and#dadde1at 1px, used to separate rows in the product list and the footer columns.
The one quasi-elevation effect is the pill's 100px radius, which makes a
flat #f1f4f7 rectangle read as a physical chip without any shadow.
There is exactly one box-shadow in the whole system, and it is not a drop
shadow: 0 0 0 10px var(--primary-deemphasized-button-background) — a 10px
spread ring in the deemphasised button colour, used on the blog and
success-stories pages to knock a card out of a busy ground. Zero blur, zero
offset, pure outline.
Shapes
Generous and rounded, with a full ladder available. The measured radii are
100px (16 uses), 32px (10), 30px (9), 24px (13), 20px (1) and 64px
(1), plus a 9999px token.
- 100px /
9999px— every pill: the product pills, both button variants, and the quiet "Explore all products" control. Anything interactive is a pill. - 32px and 30px — the large cards and the carousel tiles.
- 24px — the mid-size cards and the icon tiles.
- 64px — the hero gradient card, the single largest radius on the page.
- 20px — one component, the smallest card.
There are no square corners anywhere in the resting state. The shape rule is: pills for controls, 24–32px for cards, 64px for the hero, nothing sharp.
The blog and success-stories pages then add the system's one structural trick:
a card is rounded on the corners that meet open space and left square where
two surfaces meet. A photo-over-text card is built as two elements —
.border-radius: 24px 24px 0 0 on the image and 0 0 24px 24px on the body
beneath it — so the pair reads as one 24px-rounded card while the seam between
them stays flush. The side-by-side variant rounds only the outer pair:
24px 0 0 24px on the image column. This is the same compensation idea as
Bootstrap's calc(.25rem - 1px), applied at a much larger radius.
Motion & Micro-interaction
One house curve, applied to transforms. The dominant transition by far is
transform 0.333s cubic-bezier(0, 0, 0.1, 1) — sixteen declarations. That
curve is Meta's signature: a very fast, very aggressive ease-out that front-loads
almost all of the movement into the first tenth of a second, so a 333ms
transition feels like a 100ms one.
The rest of the vocabulary:
opacity, transform, visibility 0.3s ease— nine uses, the standard enter/exit for dropdowns and overlays.background, opacity 0.333s cubic-bezier(0.53, 0, 0.28, 1)— seven uses, a second, gentler curve for colour washes.all 0.2s linear— nine uses, a snap for small state changes.padding 0.2s cubic-bezier(0.08, 0.52, 0.52, 1)— two uses, on a control that grows when focused.- One delayed entrance:
opacity, transform 0.333s cubic-bezier(0, 0, 0.1, 1) 0.6s— a single element that waits 600ms before arriving.
There are no keyframe animations, no looping motion, no parallax and no scroll-linked effects. The carousel advances with the house transform curve, and the dropdowns use the opacity/transform/visibility trio.
Voice & Content Strategy
- Tone of voice: Plain and infrastructural. The hero is one sentence — "Build technologies that help people connect, find communities and grow businesses." — with no adjective in it. The page never sells; it routes.
- The four doors: "Get started" offers exactly four entrances — Explore all products, Browse documentation, Developer tools, Get support — each an icon plus a blue link with an arrow. The whole page's job is to get you through one of them.
- Capitalization: Sentence case in headings and body. The one uppercase string is the "SUCCESS STORIES" eyebrow, and it is the system's only small-caps-style label.
- Products are named exactly as Meta names them: Ads and Monetization, Artificial Intelligence, Authentication, Business Messaging, Gaming, Open Source, Social Integrations. Each row is a title, a one-line description and an "Overview" link — no marketing verb.
- Success stories are named customers with one-line outcomes: "Concepto Móvil boosts business solutions and aligns teams through Meta Certification", "Universal Pictures engaging fans through interactive multimedia messaging campaigns". Real companies, real platforms, no superlatives.
- The scale claim is one number: "200M+ businesses use our services every month to connect with customers and grow." It appears once, as the dark band's heading, and is not repeated.
- News is dated and versioned: "Introducing Graph API v25.0 and Marketing API v25.0", "Announcing WhatsApp Business Tools MCP: Set-up and Manage WhatsApp Business from your AI Agent". Version numbers are the headline.
- Outbound links are wrapped. Every external destination goes through
l.facebook.com/l.php?u=…— Meta's link shim — including links to its own other properties (llama.com, developers.meta.com/horizon). Nothing leaves the domain unwrapped. - Support is multi-channel and specific: Developer Support, Bug tool, Platform status (metastatus.com), Developer community forum, Report an incident. Five distinct destinations rather than one contact form.
Components
- hero — The gradient card: 64px radius, 64px of padding, centred, inset from the page edges. Filled with the six-stop pastel wash and holding one 64px Optimistic Display 500 line plus a dek.
- hero-wash — The wash itself, in five stepped tokens (mint, blue, lavender, pink, peach) so any one stop can be used alone as a tinted surface.
- display-heading — Optimistic Display 500 at 64px on a 70.4px line in ink. The largest type on the site and the only 64px.
- display-heading-inverse — A 36px white heading over a dark band, carrying the system's only negative tracking (−1px) to fit its measure.
- section-heading — 48px / 500, used for "Get started", "What's new", "Build with us", "You can help families"-scale section titles.
- subheading / card-heading — 24px, at 500 on light grounds and 600 with +0.84px tracking in white on dark ones.
- eyebrow — 12px / 400 in
#67788awith +0.48px tracking. Uppercase. Used for "SUCCESS STORIES" and section kickers. - lead — 24px / 400 on a 36px line, the hero dek and the band introductions.
- body — 18px / 500 on 27px, the default paragraph.
- link —
#0064e0at 15px, the default inline and standalone link, with a trailing arrow on the navigation-style variants. - button-primary — A 100px-radius pill,
45deg #0065e0 → #0f8bffgradient, white label,12px 20pxpadding, 46px tall. - button-inverse — The newsletter card's "Sign up": a white pill with a
#385898label, same metrics. - button-quiet — "Explore all products": no fill at all, just a
#385898label in a 100px-radius pill outline at12px 20px, 48px tall. - product-pill — The "Build with us" chips:
#f1f4f7ground, 100px radius, a platform icon plus a#385898label, 77–85px tall with20px 35pxof padding. The most-repeated interactive shape on the page. - icon-tile — The four "Get started" tiles: a dark
#1c2b33rounded square (24px radius, 48px) holding a white glyph, beside a blue link. - band-dark —
#1c2b33full-width with 72px of padding, white inverse headings, and photo cards floating on it. - band-subdued —
#f1f4f7full-width with 48px of padding, for the quieter mid-page sections. - hairline — 1px
#cbd2d9/#dadde1/#f1f4f7, separating product rows and footer columns. - photo-scrim —
180deg, #0000 75%, #000laid over the bottom of a photograph so a white caption or headline stays legible. The system's substitute for a shadow. - product-row — A title, a one-line description and a right-aligned "Overview" link, at 24px radius and 24px padding, with no border.
- footer — Dark
#1c2b33, four link columns at 15px, a social icon row, a legal row and a language picker. - language-picker — "English (US)" in the footer's last row, set in
#0a1317— the darkest ink in the system — at 15px Optimistic AI VF. - split-card — The blog and success-stories card, built as two stacked
elements: the image takes
24px 24px 0 0and the body beneath it0 0 24px 24px, with 32px of padding on the body. Read together they are one 24px-rounded card with a flush seam; the side-by-side variant rounds only the outer pair (24px 0 0 24px) so the inner seam against the sibling column stays square. - halo-ring —
box-shadow: 0 0 0 10pxin the deemphasised button background colour. No blur, no offset — a 10px outline that lifts a card off a busy ground. The only box-shadow in the system. - band-faint / band-neutral —
#f8f9fband#f2f2f2grounds used by the blog and success-stories pages, one step off the marketing site's#f1f4f7. - docs-surface / docs-band — The
/docssubsystem's tighter treatment:#e1edf7surfaces and#283943bands at a 4px radius and 16px padding, in Graphik LCG Web rather than Optimistic.
Do's and Don'ts
- Do keep the three Optimistic cuts in their lanes. Optimistic Display for headings, Optimistic Text for body, Optimistic AI VF for links and nav. Never set body copy in Display or a heading in Text.
- Do set headings at 500, not bold. The 64px hero line is Medium and that is why it reads as calm; reserve 600 for the 24px card headings.
- Do hold display leading at 1.1 and body leading at 1.5. The token layer
states both explicitly (
--display1-line-height: 52pxfor 48px type). - Do use the 12px / +0.48px eyebrow for section kickers, in the faintest grey. It is the only uppercase and the only positive tracking in the system.
- Do make every interactive element a pill. 100px radius on buttons, quiet buttons and product pills alike.
- Do keep cards at 24–32px and the hero at 64px. Nothing is ever square.
- Do turn shadows off. The theme sets
--shadow-1,--shadow-2and--shadow-insetall totransparent; use surface steps and gradient scrims instead. - Do solve text-over-photo with a
180deg, #0000 75%, #000scrim. It is the system's only partial-opacity black and it is the reason white type stays legible over imagery. - Do keep the four-step grey ramp in order:
#465a69→#5d6c7b→#67788aunder ink#1c2b33. Hierarchy is carried entirely by that ramp plus size. - Do round a card on the corners that meet open space and leave it square where
two surfaces meet —
24px 24px 0 0over0 0 24px 24pxfor a stacked card,24px 0 0 24pxfor a side-by-side one. The seam stays flush while the outer silhouette reads as fully rounded. - Do wrap every outbound link. The page routes all external destinations,
including Meta's own other properties, through
l.facebook.com/l.php. - Do use the six-stop pastel wash exactly once, on the hero. It is the page's single ornamental gesture and it works because nothing else is coloured.
- Don't confuse the two blues.
#0064e0is the link blue;#0065e0is only the first stop of the button gradient. They are one digit apart. - Don't reach for
#385898as a generic blue. It is the older Facebook blue, still doing real work on pills and quiet buttons, but it is not the primary. - Don't ship Freight Sans. Twelve
@font-facerules are declared for it and nothing on this page renders it — dead weight in the critical path. - Don't add a drop shadow to a card or a pill to make it "pop". Raise it with a
surface step instead (
#ffffffon#f1f4f7, or#f1f4f7on white). The one permitted box-shadow is the 10px zero-blur spread ring, and only to knock a card out of a busy ground. - Don't assume
/docsinherits the marketing system. It renders in Graphik LCG Web at a 4px radius with#e1edf7and#283943surfaces — a second, unrelated type and shape system sharing one header. Decide which one you are building before you copy a token. - Don't confuse
#f1f4f7with#f8f9fb. The blog and success-stories pages use the latter, one faintly bluer step off the marketing band ground. - Don't forget the container is 1296px, not 1440. The wider 1504px value is reserved for full-bleed bands.
如何在 AI agent 里使用 Meta for Developers 的 DESIGN.md
获取 Meta for Developers 的 DESIGN.md
请求 https://www.designmdpro.app/websites/meta-for-developers.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "meta-for-developers"),即可获取公开版本;完整 tokens 需要 Pro。
保存为项目根目录下的 DESIGN.md
把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。
让 agent 按它来写
例如:“按照 DESIGN.md 里的 Meta for Developers 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”
Meta for Developers 风格 AI Prompt
参照 Meta for Developers(developers.facebook.com)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。
## 配色
- ink: #1C2B33
- scrim: #000000
- primary: #0064E0
- surface: #FFFFFF
- ink-deep: #0A1317
- ink-warm: #232323
- ink-label: #1C1E21
- wash-blue: #DAEBFD
## 字体
- nav: "Optimistic AI VF", 15px, weight 400, line-height 1.33
- label: "Optimistic Text", 15px, weight 400, line-height 1.33
- display-lg: "Optimistic Display", 48px, weight 500, line-height 1.1
- label-strong: "Optimistic Text Bold", 14px, weight 700, line-height 1.4, letter-spacing 0.07px
## 圆角
- lg: 30px
- md: 24px
- sm: 20px
## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/meta-for-developers.md在 V0 Prompt 生成器中自定义 →常见问题
Meta for Developers 的主色是什么?
Meta for Developers 的品牌主色是蓝色(#0064E0),其 DESIGN.md 共定义了 28 个颜色 token。
Meta for Developers 用的是什么字体?
Meta for Developers 的主要字体是 Optimistic AI VF 和 Optimistic Text。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Meta for Developers 的设计 token?
本页公开了 Meta for Developers 的主色 #0064E0。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。
这份 Meta for Developers DESIGN.md 是官方的吗?
不是。这份文件由 DesignMD Pro 从 developers.facebook.com 的公开页面提取,与 Meta for Developers 无关联,也未获其认可。
Meta for Developers 的 DESIGN.md 最近一次更新是什么时候?
当前版本 1.0.0 提取于 2026年11月29日。
Meta for Developers 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 Meta for Developers 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。