# Mail.ru DESIGN.md

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

Russia's largest web portal — a dense, information-rich homepage that unifies Mail, Cloud, News and VK services under a bright white surface, VK-blue actions, VK Sans Display typography, generous 20px card radii, and soft ambient shadows.

- Website: https://mail.ru
- Primary color: Blue `#0077FF`
- Fonts: VK Sans Display, Arial
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/mail-ru

## Palette preview

- `link`: `#0070f0`
- `error`: `#d0021b`
- `primary`: `#0077ff`
- `secondary`: `#f0f1f5`
- `on-primary`: `#ffffff`
- `on-secondary`: `#2c2d2e`
- `primary-hover`: `#005ff9`

## Typography preview

- `body-md`: VK Sans Display
- `caption`: Arial

---

## Overview

Mail.ru is the front door to Russia's biggest consumer web ecosystem: mail, cloud storage, news, weather, calendar, and the VK social products are all crammed into one dashboard-style portal. The personality is utilitarian and high-density — an "everything at a glance" start page rather than a marketing site — but it is softened by VK's current design language: crisp white cards floating on a very light gray-blue page, a single confident blue for every action, and friendly rounded geometry.

The layout is a multi-column river of autonomous widgets (weather, horoscope, calendar, news grid, promo banners) on a white canvas. Imagery is photographic and thumbnail-driven; there is no illustration style of its own. Depth is restrained: tonal background shifts plus one soft ambient shadow per card.

## Colors

The palette is a bright neutral stage lit by a single VK blue.

- **VK Blue (#0077FF):** The primary action color — sign-in buttons, the "Найти" search submit, links, badges, and selected states. Never decorative; always interactive.
- **Link Blue (#0070F0):** Inline headline links and secondary text actions; effectively the text-safe variant of the brand blue.
- **Primary Hover (#005FF9):** Darker pressed/hover blue for filled buttons (also used by the consent layer's accept button).
- **Ink (#2C2D2E):** Primary text — headlines, nav items, widget titles.
- **Graphite (#87898F):** Secondary text — timestamps, counters, captions, inactive nav.
- **Cloud (#F0F1F5):** The page wash behind cards; also fills ghost/secondary surfaces as `#00103D` at ~6% alpha.
- **Hairline (#00103D1F):** Card and widget separators rendered as translucent navy hairlines rather than opaque grays.
- **White (#FFFFFF):** Every content card and the top navigation bar.
- **Dark theme:** A dark mode exists in the theme layer — page `#19191A`, cards `#232324`, text `#E7E8EA`, hairlines `#FFFFFF` at 14–29% alpha — following the same blue accent.

## Typography

Everything is set in **VK Sans Display** (weights 400/500/600), falling back to MailSans → Helvetica → Arial; a handful of legacy widgets still render Arial.

- **Headlines:** Semibold at 15–22px. News headlines and widget titles sit at 15px/600; section heroes reach ~22px. Tracking is neutral to slightly negative.
- **Body:** 15px/400 on a 20px line — the workhorse size for headlines lists, nav, and descriptions.
- **Labels:** 13–15px at weight 500 for buttons, tabs, and metadata chips.
- **Caption:** 12–13px gray (`#87898F`) for dates, read counts, and legal microcopy.

The Russian-language UI keeps everything in sentence case — even CTAs like "Создать почту" (Create mail).

## Layout

A fixed-max-width fluid grid centered at ~1440px with three content columns: a narrow left rail (auth card, horoscope, calendar widgets), a wide central news river, and a right rail (weather, video, promos). Widgets are self-contained white cards separated by ~16–24px gutters on the `#F0F1F5` wash.

- Spacing scale is a strict 4px base (`2/4/8/12/16/20/24/32/40/48`px steps observed in theme tokens as `--mt--size-x*`).
- Card internal padding is typically 16–20px; widget headers sit on 12px rhythm.
- The top nav is a 54px sticky white bar carrying product links, registration, and sign-in.

## Elevation & Depth

Depth comes from tonal layering, not borders: gray-blue page → white cards → optional translucent overlays. Cards carry a single soft ambient shadow (`rgba(0,16,61,0.06) 0 6px 20px`) used sparingly for raised surfaces like dropdowns, popovers, and the media cards. Media thumbnails use gradient scrims (`#000` at 40–48%) to keep white overlay text legible.

## Shapes

Softly rounded throughout — this is the friendlier side of VK's design language.

- **Cards/widgets:** 20px radius (often `20px 20px 0 0` on media blocks where the image tops the card).
- **Buttons & inputs:** 8px radius standard; search field and chips use fuller 12px–pill geometry.
- **Avatars/icons:** fully circular (50%).
- **Micro-elements:** 2–6px radii on badges, thumbnails, and checkmarks.

## Motion & Micro-interaction

Motion is quick and businesslike: 150ms ease-in-out for color/opacity state changes, ~200–300ms `cubic-bezier(0.3, 0.3, 0.5, 1)` for surfaces (dropdowns, popovers, tooltips). Hover states swap background alpha (`#00103D0F` → `#00103D1A` → `#00103D24` on press). Nothing loops; animation supports scannability rather than delight.

## Voice & Content Strategy

- **Tone of voice:** Terse, informational, service-first. Headlines are literal news headlines; UI copy is short noun/verb phrases.
- **Capitalization:** Sentence case everywhere, including buttons ("Войти", "Создать почту", "Все проекты").
- **Terminology:** Products are named simply — "Почта" (Mail), "Облако" (Cloud), "Новости" (News), "Календарь" (Calendar). Russian is the canonical language; English is absent from chrome.
- **Button labels:** Direct verbs or verb phrases — "Войти" (Sign in), "Найти" (Search), "Определить" (Detect location), "Подробнее" (Learn more).
- **Data formats:** Compact financial tickers ("$ 81,93", "€ 89,86") and relative timestamps; weather shown as "+14°".

## Components

### Buttons & Inputs

`button-primary` is the VK-blue 36px pill-of-work: 8px radius, 15px/500 white label, used for "Войти" and search submit. `button-secondary` is its outline twin — transparent fill, blue text, 1px `#0077FF` border ("Создать почту"). Ghost nav items sit on 20px hover pills. The header search field is a 40px field with a 12px radius whose right edge merges into the blue "Найти" submit.

### Cards & Widgets

`card` is the universal widget container: white, 20px radius, zero padding on media variants where a thumbnail header bleeds to the edges (`card-media`). Inner content pads at 16px. News widgets enumerate headlines in tight 15px/400 lists with gray `#87898F` counters.

### Navigation & Chips

`nav-link` items are 15px/500 ink labels in the 54px top bar; the "Все проекты" overflow carries a chevron. `chip-topic` pills filter news sections (Политика, Экономика…) — default ink text, active state gets the `#F0F1F5`→blue treatment. Theme/mode controls are circular icon buttons.

## Do's and Don'ts

- Do reserve `#0077FF` strictly for interactive elements — links, filled buttons, active icons.
- Don't introduce a second accent hue; the portal's multi-service density stays coherent because only one blue speaks.
- Do keep cards at 20px radius on the `#F0F1F5` wash — squarer corners look off-brand.
- Don't rely on shadows for hierarchy; use surface contrast and hairlines.
- Do keep labels at 15px/500 — smaller than body text is reserved for metadata only.
- Don't mix the legacy Arial widgets into new work; VK Sans Display is the standard.
- Do keep secondary surfaces translucent (`#00103D` at 6–24%), not solid grays.
- Don't crowd the 4px spacing scale — widget padding stays at 16–20px even in dense areas.
- Note: white text on `#0077FF` measures 4.13:1 and `#0070F0` on `#F0F1F5` measures 4.07:1 — the live site ships both below WCAG AA. Preserve them for brand fidelity, but choose `#005FF9` / ink text when stricter contrast is required.
