# Telegram Desktop DESIGN.md

> Public preview. The complete DESIGN.md source (all 114 design tokens, spacing, components and frontmatter) requires DesignMD Pro: https://www.designmdpro.app/pricing

A spare, single-purpose product page built on the native system font stack, Telegram blue accents and hairline rules, with a complete dark theme driven by CSS custom properties.

- Website: https://desktop.telegram.org
- Primary color: Sky Blue `#1D98DC`
- Fonts: -apple-system, ui-monospace, HelveticaNeue-Light
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/telegram-desktop

## Palette preview

- `error`: `#c61717`
- `outline`: `#e6e6e6`
- `primary`: `#1d98dc`
- `surface`: `#ffffff`
- `secondary`: `#0088cc`
- `on-primary`: `#ffffff`
- `on-surface`: `#333333`
- `primary-hover`: `#0e8ed4`

## Typography preview

- `body-md`: -apple-system, system-ui, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif
- `code-md`: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace
- `body-lead`: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Light, Helvetica, Arial, Verdana, sans-serif

---

## 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 to **`primary-hover` `#0e8ed4`** on hover, a subtle 12% step rather than a dramatic shift.
- **`secondary` `#0088cc`** — Telegram's signature link blue, declared globally as `a, 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 uses **`on-surface-strong` `#383a3b`**, licence and footer copy use **`on-surface-muted` `#67696a`**, and the language-list items fade to **`on-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% `#1c93e3` wash over white, which composites to this near-white blue.
- **`outline` `#e6e6e6`** and **`outline-variant` `#eeeeee`** — hairline rules only: `#e6e6e6` for table borders, `#eeeeee` for 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-border` hairline). The download button keeps `#1d98dc` unchanged 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

1. **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.
2. **Don't** add shadows, gradients, glows or inner highlights. The site has zero `box-shadow` declarations; depth is hairlines and tonal washes only.
3. **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.
4. **Don't** substitute a different blue for links. `#0088cc` is declared globally for `a, a:hover` and appears on every page; a second link colour would read as a bug.
5. **Do** keep the hero title at 28px/600 with `-0.04em` tracking. Removing the negative tracking makes the wordmark look loose and cheap.
6. **Don't** put long body copy in white on `#1d98dc`. White on that fill measures 3.19:1, and white on `#0088cc` links 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.
7. **Do** drive dark mode through the `--*` custom properties on `html` / `body`. The dark theme is a variable swap on the same markup, and the download button should stay `#1d98dc` rather than being re-tinted.
8. **Don't** widen the landing column past 420px. The narrow measure is what keeps the screenshot, title and CTA visually stacked as one unit.
9. **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.
10. **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.
