Telegram Desktop DESIGN.md 設計系統與風格指南
ConsumerProv1.0.0 (最新)Telegram's fast, secure desktop client, presented on a spare single-column page built from the native system font stack and two shades of Telegram blue.
你可以免費閱讀 Telegram Desktop 的完整設計敘述與最多 8 色主色票。升級 Pro 即可取得全部 114 個設計 Token、完整 DESIGN.md 原始檔下載與 1 個歷史版本。
升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。
設計指南
Overview
Telegram's desktop product page is deliberately, almost austere, utilitarian. It exists to do one thing — hand you a download button — and it refuses every opportunity to decorate. There is no hero photography, no gradient, no illustration of its own: the single piece of imagery is a flat product screenshot of the app sitting inside a laptop frame, and on the documentation pages the only artwork is Telegram's hand-drawn mascot stickers. The audience is a mainstream consumer who already knows what Telegram is, so the page assumes familiarity and gets out of the way.
Density is very low and whitespace is generous. A single 420px column is centered on a pure white field, and the eye travels straight down: screenshot, title, one-line subtitle, one blue pill, a short stack of secondary links, a thin block of legal copy. The emotional tone is calm, technical and trustworthy rather than excited — the visual equivalent of a plainspoken engineer. The dark theme, driven by theme_dark / data-theme="dark" custom properties on html and body, keeps the identical layout and simply inverts the field to a deep Telegram navy.
Colors
The palette is two blues and a set of greys, nothing more.
primary#1d98dc— the download CTA fill. This is the brighter of the two brand blues and is reserved exclusively for the single most important action on the page. It darkens toprimary-hover#0e8ed4on hover, a subtle 12% step rather than a dramatic shift.secondary#0088cc— Telegram's signature link blue, declared globally asa, a:hover { color: #0088cc }. It carries the top navigation, every inline link, the "Show all platforms" and "Mac App Store" secondary actions, and the language switcher.surface#ffffff— the page field in light mode. The sticky header sits on--box-bg-blured, an 84%-opacity white wash, so content frosts through it as it scrolls.on-surface#333333— body and documentation copy. The landing-page headline useson-surface-strong#383a3b, licence and footer copy useon-surface-muted#67696a, and the language-list items fade toon-surface-faint#a2a2a2.primary-container#e5f1fa— the pale blue wash behind callout boxes and table accent rows (the site's--tme-table-accent-bg-color). The FAQ and API notices render the same effect as an 8%#1c93e3wash over white, which composites to this near-white blue.outline#e6e6e6andoutline-variant#eeeeee— hairline rules only:#e6e6e6for table borders,#eeeeeefor the dividers between documentation sections. Nothing thicker than 1px.error#c61717— inline<code>in the documentation. It reads as a warm technical red, not an alarm red.- Dark theme —
inverse-surface#17212b(page field),inverse-surface-variant#1e1e1e(raised panels, the site's dark--box-bg),inverse-primary#5eb0f3(links),on-inverse-surface#e9edf1(headings),on-inverse-surface-dim#828d99(muted copy),inverse-outline#ffffff14(the 8%-white--d-borderhairline). The download button keeps#1d98dcunchanged in dark mode.
Typography
One family, no webfonts: the native system UI stack (-apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif). Nothing is downloaded, so the page renders in San Francisco on macOS, Segoe UI on Windows and Roboto on Android — the design leans into the platform instead of fighting it. Only the landing-page subtitle reaches outside the stack, to a Helvetica Neue Light face at weight 300.
The scale is small and tightly clustered. The landing hero is headline-hero at 28px/600 with -0.04em tracking (computed from letter-spacing: -1px), which tightens the wordmark noticeably. Documentation pages drop to headline-page 20px/600, with headline-section 16px, headline-subsection 14px and headline-micro 11px below it — every heading sits at line-height: 1.1, a compressed editorial rhythm.
Body copy is body-md 15px/400 at line-height: 1.6, with body-sm 14px at a roomier 1.7 for licence and footer text, and the 17px/300 body-lead reserved for the one-sentence subtitle. Interactive text is always weight 500 and slightly tighter than body: link-md 15px at 1.13 for navigation, link-sm 13px and link-xs 12px for compact lists. Buttons are the outlier — button-md is 15px/400 at line-height: 2, which is what gives the 50px-tall CTA its vertical presence without any extra padding. code-md switches to the native monospace stack at 13.5px.
Layout
A single centered column, no grid. The landing page wraps its content in a 420px box (--container-max), centered with auto margins; the FAQ and documentation pages widen the same column to 800px (--content-max) inside a 925px page shell. There is no sidebar on the product page and no multi-column hero — vertical stacking is the entire layout system.
Rhythm is a loose 4px base. The most common gaps are 16px and 32px, with 10px and 15px gutters around the download block and 8px/2px micro-gaps inside lists. The top navigation is a single row: Home, FAQ, Apps, API, Safety on the left, with the language selector, the "Follow on X" link and the light/dark toggle pushed to the right edge. The screenshot block uses a 58% padding-top ratio box so the laptop frame scales fluidly, and the download area is allowed to bleed past the 420px column with negative margins so the CTA can center against the full viewport.
Nothing is absolutely positioned for decoration, and the only overlay is the frosted header. On narrow viewports the column simply reflows; the layout has no breakpoint-specific restructuring.
Elevation & Depth
There are no shadows anywhere on this site — the extractor found zero box-shadow declarations. Depth is communicated entirely through hairlines and tonal washes.
The vocabulary is: a 1px #e6e6e6 rule to separate table rows and documentation sections, an 8%-white --d-border hairline for the same job in dark mode, and the pale blue #e5f1fa wash to lift a callout off the page without a border on all four sides. The one exception is the sticky header, which uses rgba(255, 255, 255, .84) plus backdrop blur so the page frosts behind it — a material change rather than a shadow.
The download button is flat. It has no shadow, no gradient and no inner highlight; its 30px pill radius and saturated fill are the only things that make it feel pressable. Interactive feedback is a colour step, never a lift.
Shapes
Corner rounding is minimal and functional. The default control radius is sm 4px, applied to tables and small chrome. Callouts use md 5px, and the FAQ notice is deliberately asymmetric — border-radius: 5px 8px 8px 5px — so the left edge reads as a hard accent bar while the right edge stays soft.
lg 10px is used once, for the outlined secondary pill. full 30px is the signature shape: on a 50px-tall button it produces a true pill, and it is the only rounded form on the landing page. Nothing is circular except the platform icons in the Apps list, and there are no squircles, no blobs and no organic masks.
Motion & Micro-interaction
Motion is nearly absent, and what exists is purely functional. Three transitions were observed, all opacity or background fades at 200ms:
state-change—background 0.2s ease-in-out, the hover fade on filled controls.surface-enter/surface-exit—opacity 200ms linear, used by the "Show all platforms" disclosure and the OS-specific blurb that swaps in above the CTA.
Links do not animate at all: a:hover simply adds an underline. There are no entrance animations, no scroll-triggered reveals, no parallax and nothing that loops. A .no_transition class exists in the stylesheet to suppress transitions wholesale, which is the site's own acknowledgement that motion here is optional.
Voice & Content Strategy
The copy is short, plain and factual — it states what the thing is and stops. Sentences are declarative, avoid superlatives and never sell. Capitalization is sentence case throughout, with the exception of inline product names, which are set as bold links inside body copy rather than called out visually.
Real examples from the pages captured:
- "Fast and secure desktop app, perfectly synced with your mobile phone."
- "Get Telegram for macOS" / "Show all platforms" / "Mac App Store"
- "This software is available under GPL v3 license." / "Source code is available on GitHub."
- "Telegram apps are open source and support reproducible builds."
CTA grammar is verb-first and specific about the target — "Get Telegram for macOS" names the detected platform and bolds it, so the same button can be re-labelled per visitor without changing the pattern. The documentation voice shifts to second-person instructional ("This API allows you to connect bots to our system") and links key terms inline instead of defining them in a glossary. Legal and licence statements are pushed to the bottom of the page in muted grey, never in a modal.
Components
button-primary — the download CTA. 266px wide, 50px tall, 30px pill radius, #1d98dc fill, white 15px/400 label at line-height: 2. Padding is 10px 14px vertically-biased; the single 14px token records the horizontal value, with the 10px vertical rhythm described here. :hover darkens the fill to #0e8ed4 (button-primary-hover) with no other change — no shadow, no transform, no underline. :active and :focus only strip the default outline.
button-secondary — the outlined action ("Open from Desktop"). Transparent over the page, #0088cc label at 17px/300, 1px #179cde border, 10px radius, 13px 24px padding. It never competes with the primary button and is always stacked below it.
link — #0088cc on white at 15px/500, no padding, underline on hover only. Navigation links, footer links, inline documentation links and the secondary download actions all share this single treatment; the only variation is size (link-md, link-sm, link-xs).
nav — the 51px top bar. Transparent over the page, links in #0088cc at 15px/500 with 16px horizontal gutters. The active section is marked with a 2px blue underline rather than a colour change or a filled pill. It holds the language selector, the X/Twitter link and the theme toggle on the right.
page-title — the hero headline. #383a3b at 28px/600 with -0.04em tracking, centred, no padding and no background of its own. It is the only display-scale type on the site and appears exactly once per page.
note — the callout box used for FAQ notices and API pointers. Pale blue #e5f1fa wash (an 8% #1c93e3 overlay on white), 16px padding, asymmetric 5px 8px 8px 5px radius so the left edge reads as an accent bar, body copy at 14px/1.7 in #333333, with the actionable link inside set bold and blue.
footnote — the licence and source block at the foot of the landing page. #67696a at 14px/1.7, centred, 50px above and 30px below. It is deliberately the quietest text on the page and is never placed in a modal.
lang-item — the entries in the language switcher. #a2a2a2 at 13px/500 with an 18px line height, so the list stays legible but visibly subordinate to the navigation above it.
code — inline <code> in documentation. Native monospace at 13.5px in #c61717 on white, 2px padding, no background change and no radius.
divider — the 1px table rule in #e6e6e6. divider-soft is the lighter #eeeeee rule used between documentation sections. Never thicker than 1px and never a shadow.
Dark variants — button-primary is deliberately not re-declared for dark mode: the CTA keeps its #1d98dc fill and white label unchanged, because it is the one element that does not invert. link-dark swaps the field to #17212b and the link colour to #5eb0f3; note-dark raises the panel to #1e1e1e with #e9edf1 text; footnote-dark dims licence copy to #828d99. Every dark value comes from the theme_dark / data-theme="dark" custom-property block, so the whole theme is a variable swap, not a second stylesheet.
Do's and Don'ts
- Do keep the download CTA as the only filled element on the landing page. One saturated blue pill against white is what makes the page scannable in under a second.
- Don't add shadows, gradients, glows or inner highlights. The site has zero
box-shadowdeclarations; depth is hairlines and tonal washes only. - Do use the native system font stack with no webfont. Loading a custom family would break the site's promise of rendering in the visitor's own platform typeface.
- Don't substitute a different blue for links.
#0088ccis declared globally fora, a:hoverand appears on every page; a second link colour would read as a bug. - Do keep the hero title at 28px/600 with
-0.04emtracking. Removing the negative tracking makes the wordmark look loose and cheap. - Don't put long body copy in white on
#1d98dc. White on that fill measures 3.19:1, and white on#0088cclinks measures 3.89:1 — both below the WCAG AA 4.5:1 minimum. These tokens record the site exactly as built; if you raise them for accessibility, keep the hue and step the lightness rather than swapping to a new blue. - Do drive dark mode through the
--*custom properties onhtml/body. The dark theme is a variable swap on the same markup, and the download button should stay#1d98dcrather than being re-tinted. - Don't widen the landing column past 420px. The narrow measure is what keeps the screenshot, title and CTA visually stacked as one unit.
- Do use verb-first, platform-specific CTA grammar ("Get Telegram for macOS") with the platform name bolded, and keep licence and source links in muted grey at the foot of the page.
- Don't exceed a 30px corner radius or introduce squircles, blobs or circular containers. The shape language is 4px default, 5px callouts, 10px secondary pill, 30px primary pill — nothing else.
如何在 AI Agent 中使用 Telegram Desktop 的 DESIGN.md
取得 Telegram Desktop 的 DESIGN.md
存取 https://www.designmdpro.app/websites/telegram-desktop.md 或透過 DesignMD Pro MCP 伺服器以 slug "telegram-desktop" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。
將其儲存為專案根目錄中的 DESIGN.md
將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。
請你的 Agent 遵循該規範
例如:「請依照 DESIGN.md 中的 Telegram Desktop 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」
Telegram Desktop 風格 AI 提示詞
請依照 Telegram Desktop(desktop.telegram.org) 的 DESIGN.md 設計系統,以相同的視覺風格建構一個響應式到達頁。
## 色彩
- error: #C61717
- outline: #E6E6E6
- primary: #1D98DC
- surface: #FFFFFF
- secondary: #0088CC
- on-primary: #FFFFFF
- on-surface: #333333
- primary-hover: #0E8ED4
## 字型
- 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
- body-lead: "HelveticaNeue-Light, Helvetica Neue Light, Helvetica Light, Helvetica, Arial, Verdana, sans-serif", 17px, weight 300, line-height 1.48
## 圓角
- lg: 10px
- md: 5px
- sm: 4px
## 規則
- 背景、文字、邊框與強調色僅使用上述色彩,請勿自行發明新顏色。
- 所有文字皆套用上述字型樣式,並維持其字級與字重層級。
- 圓角與間距請取自上述比例尺,確保各元件外觀一致。
完整 DESIGN.md:https://www.designmdpro.app/websites/telegram-desktop.md在 v0 提示詞產生器中自訂 →常見問題
Telegram Desktop 的主色是什麼?
Telegram Desktop 的品牌主色為 天藍(#1D98DC),其 DESIGN.md 共定義了 19 個色彩 tokens。
Telegram Desktop 使用什麼字型?
Telegram Desktop 使用 HelveticaNeue-Light 作為主要字型。
如何在 Tailwind CSS 或 shadcn/ui 中使用 Telegram Desktop 的 design tokens?
本頁已公開 Telegram Desktop 的主色(#1D98DC)。產生完整的 Tailwind 或 shadcn 主題需要完整的 DESIGN.md,可透過 DesignMD Pro 取得。
這份 Telegram Desktop DESIGN.md 是官方發布的嗎?
不是。此檔案由 DesignMD Pro 擷取自公開的 desktop.telegram.org 網站,與 Telegram Desktop 無任何關聯亦未獲其背書。
Telegram Desktop 的 DESIGN.md 最後一次更新是什麼時候?
版本 1.0.0 擷取於 2026年12月1日。
Telegram Desktop 及其商標均歸各自所有者所有。DesignMD Pro 為獨立專案,與 Telegram Desktop 無任何關聯亦未獲其背書;此 DESIGN.md 擷取自公開網站,僅供參考。