# YouTube DESIGN.md

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

Content-first product design built on Roboto and a strict light-neutral canvas. YouTube red is reserved for brand marks and live badges, action blue (#065FD4) drives links and sign-in CTAs, while near-black filled pills handle the primary subscribe action. Thumbnail grids, pill chips, and soft 10–16px radii keep the dense video UI feeling friendly.

- Website: https://youtube.com
- Primary color: Red `#FF0033`
- Fonts: Roboto
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/youtube

## Palette preview

- `error`: `#ff0033`
- `outline`: `#d3d3d3`
- `primary`: `#ff0033`
- `surface`: `#ffffff`
- `tertiary`: `#ff2791`
- `secondary`: `#065fd4`
- `on-primary`: `#ffffff`
- `on-surface`: `#0f0f0f`

## Typography preview

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

---

## Overview

YouTube's design is **invisible chrome around loud content**: a near-neutral white-and-charcoal interface engineered to disappear behind thumbnails. The system is dense but never heavy — 12-column thumbnail grids, a 56px masthead, and a 240px icon rail — with all brand color held back to two flashes: the YouTube-red play mark and live badges, and the action-blue used for links, sign-in, and Premium upsell.

The personality is utilitarian and friendly rather than editorial. Depth is minimal, corners are soft (10–16px plus pills), and the typography stays small and workmanlike so creator imagery dominates. Signed-out and Premium marketing pages loosen into large centered headlines over pastel gradients, but the product surface itself remains a quiet grid.

## Colors

- **YouTube Red (`#FF0033`):** Brand mark, "LIVE" badges, and Premium moments only — never a general action color. `#FF2791` pink extends it into YouTube Music/Premium gradients.
- **Action Blue (`#065FD4`):** Links, the "Sign in" outlined pill, and the filled Premium CTA. Its light tint `#DEF1FF` backs premium badges and tinted chips.
- **Ink (`#0F0F0F`):** Primary text AND the filled-pill button color — Subscribe, selected filter chips, and comment actions are near-black, not red or blue.
- **Secondary grey (`#606060`):** View counts, timestamps, channel metadata, and guide footer links; `#909090` handles tertiary hints.
- **Surfaces:** White base; `#F8F8F8`/`#F2F2F2` (= black at ~4–5% alpha) fill chips, hover states, and the search button. `#D3D3D3`–`#C6C6C6` hairlines ring the search box.
- **Dark mode** inverts to `#0F0F0F` surfaces with `#F1F1F1` text (not captured in this run — mirror the same roles).

## Typography

Everything is **Roboto** (400/500/700; "YouTube Noto" covers CJK fallback in comments).

- **Titles:** Watch-page title 20px/700; video-card titles 16px/500; section headers 18px/500. Marketing (Premium) jumps to ~56px/700 centered display.
- **Body:** 14px/400 for menus, metadata, and guide entries; 12px for footer links, badges, and timestamps.
- **Labels:** Buttons and chips run 14px/500 — compact and medium weight, never bold.
- **Search input:** 16px/400 — one step larger than body so the primary field reads instantly.

## Layout

- **Masthead:** 56px bar — hamburger + logo left, centered pill search with mic, right-side action icons and sign-in pill.
- **Guide rail:** 240px collapsible sidebar of icon + 14px label entries on 10px-radius hover pills; sections split by hairlines into Home/Shorts/Subscriptions, You, Explore, and "More from YouTube" product links.
- **Feed grid:** Fluid rich-grid — cards flex between ~310–500px with 16px item margins and 32px row gaps; the watch page swaps to a theater layout with a 12px-radius player and a right rail of compact video cards.
- **Watch page:** Player left; title, channel row (avatar, name, subscriber count, black Subscribe pill), and a segmented action bar (like/dislike pair, share, save, overflow) beneath; descriptions fold into a `#F2F2F2` rounded panel.

## Elevation & Depth

YouTube is essentially flat: hierarchy comes from **tonal fills and hairlines**, not shadows. Chips and hover pills sit one step darker than the page (`#F2F2F2`), dialogs and the search dropdown float on soft `rgba(0,0,0,0.2)` shadows, and the search field keeps an inset top shadow cue. Video thumbnails use rounded corners rather than borders; overlay chips (duration, LIVE) are solid translucent-black or red tiles pinned to the thumbnail corner.

## Shapes

- **Pills are the system's primary gesture:** buttons, chips, and the sign-in affordance are all fully rounded (9999px) at 32–48px heights.
- **Thumbnails:** 12px radius; the watch player and menus run 12–16px; guide hover pills sit at 10px.
- **Search field:** A pill bisected — left half rounded, right edge squared into the `#F8F8F8` search button cap.
- **Badges:** 4px-radius tiles (LIVE red, "New" grey, duration black); avatars and icon buttons are circular.

## Motion & Micro-interaction

- **Guided motion:** Drawer, scrim, and panel transitions run ~**300ms** on `cubic-bezier(0.05, 0, 0, 1)` — a fast-out, gentle-land curve.
- **Instant feedback:** Hover fills, icon states, and chip selections snap without transitions; progress bars and spinners are the only persistent motion.
- Thumbnails preview-hover into inline playback; everything else stays still. Respect reduced-motion by suppressing hover playback.

## Voice & Content Strategy

- **Tone:** Functional and friendly, addressed in second person — the signed-out state reads "Search videos to start your YouTube journey… Start watching to help us recommend more you'll like." No exclamation-heavy marketing.
- **Capitalization:** Sentence case on labels ("Watch later", "Search", "Sign in"); product names keep canonical casing (Shorts, YouTube Premium, YouTube TV, YouTube Music, YouTube Kids, YouTube Labs).
- **Buttons:** Short verb or noun labels — "Subscribe", "Join", "Share", "Save", "Show more". Premium upsells use trial phrasing ("Try 1 month for US$0").
- **Metadata grammar:** "views · age" fragments ("2.9万观看 · 2年前"); counts abbreviate (K/M/万） by locale.
- **Empty states:** Explain the benefit and offer one action — the signed-out feed asks you to search, not to browse.

## Components

- **Subscribe pill:** Near-black `#0F0F0F` fill, white 14px/500 label, ~36px pill — the primary conversion control; flips to a grey "Subscribed" chip with bell.
- **Filter chips:** `#F2F2F2` pills in the feed header; selected state inverts to black/white.
- **Action bar:** Segmented like/dislike pill plus share/save/overflow buttons — `#F2F2F2` fills, 14px/500, icon + optional label.
- **Sign-in button:** White/outlined pill with `#065FD4` text and person icon; Premium marketing swaps it for a filled `#065FD4` CTA.
- **Search:** 40px left-rounded field, 1px `#D3D3D3` outline, 16px input; right cap is `#F8F8F8` with a search icon; voice search is a separate circular icon button.
- **Video card:** 12px-radius 16:9 thumbnail + 3-line lockup (16px/500 title, 14px `#606060` channel and meta); duration badge bottom-right.
- **Guide entry:** Icon + 14px label in a 10px-radius hover pill; section headers at 12px/700; sub-groups collapse behind "Show more".
- **Badges:** 4px-radius tiles — red LIVE, grey "New", black duration; `#DEF1FF` tinted pill for Premium perks.

## Do's and Don'ts

- Do keep YouTube red out of UI actions — it marks brand and live status only; use ink pills for primary actions.
- Do use one filled-pill style family: black for subscribe, `#F2F2F2` for secondary, `#065FD4` for sign-in/links.
- Do let thumbnails own the color — surround them with white space and grey meta text.
- Don't introduce shadows on feed cards; elevation is for transient layers (menus, dialogs) only.
- Don't round content text blocks — pills are for controls, 10–16px radii for containers and media.
- Don't stack multiple CTAs in a row beyond the segmented action bar; overflow goes behind the "…" menu.
- Do keep metadata at 12–14px `#606060` — never promote it to headline weight.
- Do localize counts and date fragments per locale rather than forcing one format.
- Note: the red LIVE badge pairs white text on `#FF0033` at ~4:1 — a brand exception the site itself makes; keep it for badges only, never for body copy or buttons.
