跳至主要内容
X

X DESIGN.md 设计系统与风格规范

MediaPro 专属v1.0.0 (最新)
x.com•关联于 2026年11月30日 04:00•审核 Bestony

A stark, monochrome landing page: pure white with near-black TwitterChirp type, a 64px headline at negative tracking, pill buttons in black and white, and a single sky-blue focus ring as the only color.

Pro 专属网站

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

显示 8 / 11 个颜色
深色 (33%)
Aa 示例文字#0EA5E9
focus
rgb(14, 165, 233)
浅色 (71%)
Aa 示例文字#DADCE0
outline
rgb(218, 220, 224)
深色 (0%)
Aa 示例文字#000000
primary
rgb(0, 0, 0)
浅色 (100%)
Aa 示例文字#FFFFFF
surface
rgb(255, 255, 255)
浅色 (100%)
Aa 示例文字#FFFFFF
on-primary
rgb(255, 255, 255)
深色 (1%)
Aa 示例文字#1A1A1A
on-surface
rgb(26, 26, 26)
浅色 (66%)
Aa 示例文字#D1D5DB
outline-strong
rgb(209, 213, 219)
深色 (45%)
Aa 示例文字#B2B2B2
on-surface-muted
rgb(178, 178, 178)
获取完整色板、CSS 变量与 DESIGN.md 源码

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

设计规范

Overview

X's landing page is the most stripped-down page in this collection: pure white, near-black type, and exactly one action per row. The 64px headline ("Happening now.") is set at a 0.9 line-height with −1px tracking, so tight it almost overlaps itself — a deliberate editorial compression that makes two words feel like a statement. Everything below it is a stack of full-pill buttons: one black primary, two white secondary, a gray disabled state, and a text field whose focus ring is the only non-grayscale pixel on the page. There is no imagery except the giant X wordmark; the brand is carried entirely by scale and monochrome discipline.

Colors

A grayscale system with one exception:

  • primary — Pure black #000000. The primary button ("Continue with phone"). Absolute black, not near-black — the contrast with white is total.
  • surface — Pure white #ffffff.
  • on-surface — Near-black #1a1a1a. The headline and body text.
  • on-surface-variant — Gray #666666. Footer links (About, Get App, Grok, Help, Terms…).
  • on-surface-muted — Light gray #b2b2b2. Legal notes under the form.
  • surface-disabled — #d4d4d4 with #808080 text. The disabled "Continue" button before a valid input.
  • outline — #dadce0/#d1d5db. Hairline borders on secondary buttons and dividers.
  • focus — Sky blue #0ea5e9. The text field's focus border. The single chromatic element, and the only place color appears.

Typography

One family — TwitterChirp (X's proprietary face, falling back to the system stack) — across four roles:

  • display-lg (64px/0.9, 600, −1px) — The headline. The tight line-height and negative tracking are the entire typographic statement.
  • body-md (17px/1.18) — Input text.
  • label-md (15px/1.33, 500) — Button labels.
  • label-sm (12px/1.5, 500) — Small labels.
  • meta-sm (11px/2.18, 400) — Footer links and legal notes, set with a very tall line-height so the footer breathes.

Google Sans appears exactly once — the "Continue with Google" button, at 14px with +0.25px tracking — because Google's brand guidelines require its own face on its button.

Layout

A two-column viewport split at 1280px: the left column holds the headline and the sign-in stack within a ~400px measure; the right column is dominated by the giant X wordmark. The button stack runs full-width — black primary, two white secondary, an "or" divider with hairline rules, the text field, the disabled Continue, and the legal note. The footer runs a single centered row of 11px links. Nothing is centered except the footer; the content is firmly left-aligned.

Elevation & Depth

Effectively none. The page is flat white; the only shadow anywhere is a soft rgba(0,0,0,0.08) 0 4px 20px 0 under the floating "Scan to get the app" QR card, which must separate itself from the page. Buttons are defined by fill and hairline borders, not elevation.

Shapes

Pills everywhere: every button is a 9999px radius — the black primary, the white secondaries, and the gray disabled state alike. The only non-pill is the text field at 6px, a deliberate exception so the input reads as a field rather than a control. The QR card is the single 20px-radius surface.

Motion & Micro-interaction

Two speeds: 218ms ease on background-color and border-color (buttons, inputs — the dominant treatment), and a 75ms ease-in-out "all" transition for micro-feedback. Motion is nearly subliminal; the page acknowledges the cursor without ever animating.

Voice & Content Strategy

Two words, then silence: "Happening now." The sign-in stack is pure utility — "Continue with phone", "Continue with Google", "Continue with Apple", "or", "Email or username", "Continue" — and the only sentence on the page is the legal note ("By continuing, you agree to our Terms of Service, Privacy Policy and Cookie Use."). The confidence is in the restraint: a product this well known doesn't need to explain itself.

Components

  • Hero headline — 64px/600 Chirp at −1px tracking and a 0.9 line-height, near-black on white.
  • Primary button — Black pill, white 15px/500 label.
  • Secondary button — White pill with a #dadce0 hairline, near-black label, and the provider's brand icon (Google G in Google Sans, Apple logo).
  • Disabled button — #d4d4d4 pill with #808080 label, shown until the field is valid.
  • Text field — White 6px-radius input with a hairline border that turns sky blue #0ea5e9 on focus.
  • Divider — Centered "or" between hairline rules.
  • QR card — White 20px-radius panel on the soft shadow, holding the app-download QR code.
  • Footer — Single row of 11px gray links separated by centered dots.

Do's and Don'ts

  • Do keep the page pure white with pure black buttons — no off-whites, no dark-mode grays.
  • Do set the headline in Chirp 600 at 64px with −1px tracking and a 0.9 line-height.
  • Do make every button a full pill; the text field is the only 6px exception.
  • Do use the sky-blue #0ea5e9 focus ring as the sole chromatic accent.
  • Do show the disabled state as #d4d4d4/#808080 until the form is valid.
  • Do separate secondary buttons with #dadce0 hairlines, not shadows.
  • Do let the X wordmark carry the right column at poster scale.
  • Don't introduce a second color beyond the focus ring, or a second font beyond the provider-mandated Google Sans.
  • Don't round the text field to a pill — it must read as a field.
  • Don't add shadows to buttons or lift anything but the floating QR card.
  • Don't loosen the headline's line-height above 0.9 or drop the negative tracking.
  • Don't expect the grayscale supporting tones to pass 4.5:1 — disabled text on its pill measures ~2.7:1, the sky-blue focus ring ~2.8:1, hairline dividers ~1.5:1, and legal notes ~2.1:1. The brand uses them for disabled states, focus indication, rules, and 11px meta respectively; keep those roles at their set purposes rather than darkening the neutrals.

如何在 AI agent 里使用 X 的 DESIGN.md

  1. 获取 X 的 DESIGN.md

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

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

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

  3. 让 agent 按它来写

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

X 风格 AI Prompt

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

## 配色
- focus: #0EA5E9
- outline: #DADCE0
- primary: #000000
- surface: #FFFFFF
- on-primary: #FFFFFF
- on-surface: #1A1A1A
- outline-strong: #D1D5DB
- on-surface-muted: #B2B2B2

## 字体
- body-md: "TwitterChirp", 17px, weight 400, line-height 1.18
- meta-sm: "TwitterChirp", 11px, weight 400, line-height 2.18

## 圆角
- md: 20px
- sm: 6px
- full: 9999px

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

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

常见问题

X 的主色是什么?

X 的品牌主色是黑色(#000000),其 DESIGN.md 共定义了 11 个颜色 token。

X 用的是什么字体?

X 的主要字体是 TwitterChirp。

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

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

这份 X DESIGN.md 是官方的吗?

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

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

当前版本 1.0.0 提取于 2026年11月30日。

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