Telegram DESIGN.md 設計系統與風格指南
Developer ToolsProv1.0.0 (最新)Sparse developer documentation for the Telegram APIs, set in the native system font with brand-blue links and hairline dividers.
你可以免費閱讀 Telegram 的完整設計敘述與最多 8 色主色票。升級 Pro 即可取得全部 39 個設計 Token、完整 DESIGN.md 原始檔下載與 1 個歷史版本。
升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。
設計指南
Overview
Telegram's developer documentation is deliberately plain: it is a reference manual, not a landing page. The page opens with a slim top nav, a single centered text column, and generous whitespace, so the API descriptions are the only thing competing for attention. The mood is utilitarian and trustworthy — closer to a printed manual than a marketing site — with the Telegram brand blue used sparingly as the sole accent. Density is low, imagery is rare (an occasional mascot illustration), and the layout never breaks the one-column reading flow.
Colors
The palette is intentionally tiny — two grays, white, and one blue.
- Primary (#0088cc): Telegram brand blue. Every inline link, the active nav item, and the API heading anchors use it. It is the only saturated color on the page.
- On-surface (#333333): Soft near-black for headings and body copy; pure black is avoided to keep long-form reading comfortable.
- Secondary (#8a939d): Muted blue-gray for nav labels, the "Follow on X" link, and other de-emphasized chrome.
- Surface (#ffffff): The page canvas, with an 84%-opacity variant used for the translucent sticky header over scrolled content.
- Hairline (#eeeeee): 1px section dividers and the sticky header's bottom border — the primary structural device on the page.
- Info container (#1c93e314): An 8% blue wash behind callout boxes such as "Learn more about the Bot API here »".
- Error (#c61717): Reserved for deprecation and warning notes inside API docs.
Typography
The system relies entirely on the platform's native UI font — no webfonts are loaded, so pages render instantly and feel native on each OS. A monospace stack carries all inline code.
- Headings: The native system stack at 20px/600 for
h1–h3(API names, section titles) and 16px/600 forh4sub-headings. Headings stay close to body text in size; weight, not scale, creates hierarchy. - Body: 15px/400 with a 1.6 line height for paragraphs; list items sit at 14px.
- Code:
ui-monospaceat 13.5px for inline code, method names, and type signatures. - Labels: 12px/400 for nav items and footer meta.
Layout
A single fixed-width column of 800px (inside a 925px shell) carries all content, centered with 32px side margins. Section rhythm comes from a strict 8px-based spacing scale — 4px for micro gaps, 8px between related lines, 16px between blocks, and 32px between major sections. The sticky header spans the full width with a hairline bottom border and a translucent white background.
Elevation & Depth
There are no shadows anywhere. Hierarchy is built from three flat devices: 1px hairline borders (#eeeeee), the 8% blue callout wash, and font weight. The sticky header is the only floating element and signals itself with a blurred 84%-white background plus its hairline edge rather than a drop shadow.
Shapes
Corner radii are minimal and near-square: buttons and callouts use a 5px leading / 8px trailing asymmetric radius, while tables, code blocks, and dividers stay sharp. Pills appear only in small utility chips. The overall impression is engineered, not playful.
Motion & Micro-interaction
Motion is nearly absent and purely functional: inline links and nav items fade over
150ms with an ease curve, and the callout background tint cross-fades over
200ms ease-in-out. Nothing loops, nothing slides in, and nothing animates on
scroll — the documentation stays still so reading is never interrupted.
Voice & Content Strategy
- Tone of voice: Plain, direct, and technical. The docs describe what an API does without marketing language or exclamation marks.
- Capitalization: Sentence case for headings and body; API and method names keep
their canonical casing (
Bot API,TDLib,Gateway API). - Terminology: "API" for interfaces, "method" for endpoints, "bot" for automated accounts. Product names are never abbreviated.
- Button and action labels: Verb phrases naming the destination, e.g. "Learn more about the Bot API here »" — the arrow signals forward movement.
- Empty, loading, and error states: Deprecations and breaking changes are called out inline in red text with the replacement named directly.
Components
- Inline links: Blue, underlined on hover, sharing the body type style. They are the page's primary interactive element and never carry a background.
- Nav links: 12px muted labels in a slim full-width header; the active section is blue with a 2px underline. Items sit 16px apart.
- Callout box: 8% blue background, 8px radius, 16px padding, containing a single forward-link sentence used to route readers to deeper docs.
- Inline code: Monospace 13.5px on the body background, no border or background chip — code is distinguished purely by the typeface change.
- Section divider: A 1px #eeeeee rule that separates each API family; spacing around it is 32px above and below.
Do's and Don'ts
- Do use
primaryblue only for links, the active nav state, and inline anchors. - Don't add shadows, gradients, or large imagery — depth is hairline borders only.
- Don't load webfonts; stay on the native system stack.
- Do keep every page to one 800px text column.
- Don't scale headings above 20px — weight, not size, carries hierarchy.
- Do keep body copy at 15px with a 1.6 line height for long-form readability.
- Don't use the blue callout wash for anything but "read more" routing boxes.
- Do mark deprecations in
errorred with the replacement API named in the same sentence. - Don't animate more than a 150–200ms fade on interactive elements.
如何在 AI Agent 中使用 Telegram 的 DESIGN.md
取得 Telegram 的 DESIGN.md
存取 https://www.designmdpro.app/websites/telegram-1.md 或透過 DesignMD Pro MCP 伺服器以 slug "telegram-1" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。
將其儲存為專案根目錄中的 DESIGN.md
將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。
請你的 Agent 遵循該規範
例如:「請依照 DESIGN.md 中的 Telegram 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」
Telegram 風格 AI 提示詞
請依照 Telegram(core.telegram.org) 的 DESIGN.md 設計系統,以相同的視覺風格建構一個響應式到達頁。
## 色彩
- error: #C61717
- primary: #0088CC
- surface: #FFFFFF
- hairline: #EEEEEE
- secondary: #8A939D
- on-primary: #FFFFFF
- on-surface: #333333
- on-secondary: #FFFFFF
## 字型
- body-md: "-apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif", 15px, weight 400, line-height 1.6
- code-md: "ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace", 13.5px, weight 400, line-height 1.6
## 圓角
- md: 8px
- sm: 5px
- full: 9999px
## 規則
- 背景、文字、邊框與強調色僅使用上述色彩,請勿自行發明新顏色。
- 所有文字皆套用上述字型樣式,並維持其字級與字重層級。
- 圓角與間距請取自上述比例尺,確保各元件外觀一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/telegram-1.md在 v0 提示詞產生器中自訂 →常見問題
Telegram 的主色是什麼?
Telegram 的品牌主色為 藍色(#0088CC),其 DESIGN.md 共定義了 9 個色彩 tokens。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Telegram 的 design tokens?
本頁已公開 Telegram 的主色(#0088CC)。產生完整的 Tailwind 或 shadcn 主題需要完整的 DESIGN.md,可透過 DesignMD Pro 取得。
這份 Telegram DESIGN.md 是官方發布的嗎?
不是。此檔案由 DesignMD Pro 擷取自公開的 core.telegram.org 網站,與 Telegram 無任何關聯亦未獲其背書。
Telegram 的 DESIGN.md 最後一次更新是什麼時候?
版本 1.0.0 擷取於 2026年12月1日。
Telegram 及其商標均歸各自所有者所有。DesignMD Pro 為獨立專案,與 Telegram 無任何關聯亦未獲其背書;此 DESIGN.md 擷取自公開網站,僅供參考。