# VK DESIGN.md

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

VK's sign-in landing wraps a crisp white modal card in a sweeping sky-to-royal-blue brand gradient, using the VKUI system palette — VK blue accents, cool gray fills, 8px controls, and Roboto/system typography.

- Website: https://vk.ru
- Primary color: Blue `#0077FF`
- Fonts: Roboto
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/vk

## Palette preview

- `error`: `#e64646`
- `outline`: `#d7d8db`
- `primary`: `#0077ff`
- `surface`: `#ffffff`
- `secondary`: `#2688eb`
- `on-primary`: `#ffffff`
- `on-surface`: `#000000`
- `accent-container`: `#ebedf0`

## Typography preview

- `body-md`: Roboto
- `body-sm`: Roboto

---

## Overview

VK's public landing (vk.ru for signed-out visitors) is a focused sign-in surface: a near-full-viewport wash of VK brand blue rendered as a soft radial gradient with faint orbital lines, and a single white auth card floating at center holding a QR code and two quiet outlined actions. The personality is utilitarian and friendly — a social network that gets out of the way. Inside the product the same VKUI language applies: cool gray fills, hairline separators, and one blue used for links, buttons, and selection states.

## Colors

- **VK Blue (#0077FF):** The brand blue — logo mark, primary buttons, and the deep end of the page gradient.
- **Link Blue (#2688EB):** VKUI's accent/link tone for inline links and selected states.
- **Mist (#EBEDF0 / #F5F5F7):** Tonal fills for search fields, tertiary buttons, and hover washes — the VKUI signature of gray-on-white layering.
- **Ink & Graphite (#000000, #65707D):** Primary and secondary text.
- **Separator (#D7D8DB):** Hairline outlines; on buttons the border is often a 12%-black inset ring instead of a drawn border.
- **Error (#E64646):** Validation and destructive actions.

## Typography

A pragmatic sans stack — VKUI's system stack with **Roboto** loaded for its regular and medium cuts. Titles are compact (20px/500), body copy sits at 13–15px, and buttons use ~14px labels. Hierarchy comes from weight and the two-level text grays, not size jumps.

## Layout

The auth page is a single centered card (~380–400px wide) over the gradient, with a minimal top strip (search field left, "Create business page" right) and footer links pinned to the bottom edge. Inside the product, VKUI lays out a left nav rail, a ~550px content column, and a right utility column — consistent with the observed spacing scale.

## Elevation & Depth

The white card lifts off the gradient with a broad, soft ambient shadow; inside the app, depth is mostly tonal (gray fills over white) with hairline separators rather than stacked shadows. Buttons get a 12%-black inset ring — a border rendered as inner shadow, not outline.

## Shapes

Uniformly rounded: 8px on buttons and inputs, 12px on cards, 20px on larger surfaces, avatars always circular. Nothing sharp; nothing overly pill-shaped except badges.

## Motion & Micro-interaction

Standard VKUI timing: 150ms ease-out for color/background state changes and 300ms `cubic-bezier(0.4,0,0.2,1)` for transforms — buttons subtly shift on press, and cards/sheets slide rather than pop.

## Voice & Content Strategy

Interface strings are short and plain ("VK登录" / "Войти", "其它方式登录", "创建账号" — localized imperative forms). Helper text sits directly under the title ("请将设备摄像头对准二维码" — point your camera at the QR code). Footer chrome is a single row of tertiary links. Tone: neutral, instructional, never playful.

## Components

- **Primary button:** VK blue fill, white label, 8px radius, 36px height — the single dominant action.
- **Secondary button:** White fill with a 12%-black inset ring border; used for "其它方式登录" / "创建账号" inside the auth card.
- **Tertiary button:** Mist-gray fill for low-emphasis actions.
- **Auth card:** White 12px-radius surface, ~24–32px padding, centered content — QR code, 20px title, helper line, then stacked actions.
- **Search field:** Mist fill, 8px radius, 32px tall, placeholder in secondary gray.
- **Links:** #2688EB, no underline at rest.

## Do's and Don'ts

- Do keep one blue accent (#0077FF fills / #2688EB links) — the interface is otherwise grayscale.
- Do use mist-gray fills for inputs and hover states instead of borders or shadows.
- Do keep radii at 8px (controls) / 12px (cards) — consistency matters more than variety.
- Do stack auth actions vertically in the card, primary first.
- Don't draw button borders as outlines — use the inset ring technique.
- Don't "fix" the VK blue: white on #0077FF measures ~4.1:1, just under WCAG AA — keep the brand value and compensate with the 14px medium-weight label.
- Don't introduce gradients inside the app UI; the branded gradient belongs to marketing/auth surfaces only.
- Don't use dark text on the brand gradient without a white card or scrim.
- Do keep copy terse — buttons are two or three words, always sentence case.
