跳至主要內容
X

X DESIGN.md 設計系統與風格指南

MediaProv1.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 variables 與 DESIGN.md 原始碼

升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。

設計指南

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 伺服器以 slug "x" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。

  2. 將其儲存為專案根目錄中的 DESIGN.md

    將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。

  3. 請你的 Agent 遵循該規範

    例如:「請依照 DESIGN.md 中的 X 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」

X 風格 AI 提示詞

請依照 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 提示詞產生器中自訂 →

常見問題

X 的主色是什麼?

X 的品牌主色為 黑色(#000000),其 DESIGN.md 共定義了 11 個色彩 tokens。

X 使用什麼字型?

X 使用 TwitterChirp 作為主要字型。

如何在 Tailwind CSS 或 shadcn/ui 中使用 X 的 design tokens?

本頁已公開 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 擷取自公開網站,僅供參考。