# Twitch DESIGN.md

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

A live-streaming directory identity built on the 15-step Twitch Purple ramp (#9147FF brand,

- Website: https://twitch.tv
- Primary color: Violet `#9147FF`
- Fonts: Inter, Roobert
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/twitch

## Palette preview

- `outline`: `#adadb8`
- `primary`: `#9147ff`
- `surface`: `#ffffff`
- `secondary`: `#adadb8`
- `on-primary`: `#ffffff`
- `on-surface`: `#0e0e10`
- `accent-live`: `#eb0400`
- `surface-dim`: `#f7f7f8`

## Typography preview

- `body-md`: Inter
- `headline-md`: Roobert

---

## Overview

Twitch's logged-out homepage is a high-density live directory: a collapsible left rail of followed-style channel rows, a featured-stream carousel, and a wall of live thumbnails with viewer counts and tag pills — all under a slim top bar with a centered search field. The captured experience renders in the light theme: white surfaces, near-black text, and the brand purple doing all the emotional work.

The personality is energetic and community-driven — content thumbnails are chaotic, so the chrome stays flat and disciplined. Purple is used in measured doses: the signup button, text links, section headings, and one deep-violet community banner. The signature move is the **pill**: every button, tag, and avatar is a stadium shape (9000px radius).

## Colors

The palette is a 15-step **Twitch Purple** ramp plus a 15-step "hinted grey" neutral ramp — the light theme uses the pale ends of both.

- **Twitch Purple (#9147FF, ramp step 9):** The brand fill — primary button, logo accents, the "join community" energy.
- **Purple Hover (#772CE8, step 8):** Hover deepening on the primary button.
- **Purple Deep / Link (#5C16C5, step 7):** Text links, section headings like "正在 Twitch 上直播", and interactive accents — purple that survives on white.
- **Live Red (#EB0400):** The "LIVE/直播" badge only — a hard status signal, never decorative.
- **Surface White / Grey-15 (#FFFFFF / #F7F7F8):** Page background and alternating fills.
- **Glass Grey (#ADADB8 @ 22–43%):** The secondary-button pill and tag chips — translucent hinted grey, not a solid fill.
- **Ink (#0E0E10) / Slate (#3B3B44):** The two-step text ramp on light surfaces.
- **Deep Violet (#330C6E, step 5):** The bottom community banner's dark gradient base, carrying white text.

## Typography

Two families: **Roobert** (Twitch's proprietary face, 400–600 loaded) for headings and brand moments, **Inter** for all UI text — 14px/400 is the workhorse size with a tight 1.4 line-height.

- **18px/500 Roobert:** Section headings ("Live on Twitch", category titles).
- **14px/600:** Card titles, streamer names, and every button label — semibold is the interactive weight.
- **14px/400 Inter:** Body copy, nav items, meta rows (lh ~19.6px).
- **13px/400:** Sidebar channel names and game titles — dense list text.
- **12px/600:** Tag pills (English, DropsEnabled) — semibold so they read as filters, not decoration.
- Purple text (#5C16C5) always means "clickable"; black text means "content".

## Layout

A three-zone app frame: fixed-height top nav (logo, centered search, auth buttons), a 240px collapsible left channel rail, and a fluid card grid. Cards sit on ~10px gutters; the grid stretches to very wide viewports before capping.

- Spacing is rem-based (0.5rem = 5px root unit): common steps 4/5/8/10/20/30/40px.
- Buttons cluster at 32px height; the search input is 36px; touch targets stay compact — this is a power-user directory.
- The featured carousel takes the full content width; everything below it is a thumbnail wall.

## Elevation & Depth

Flat surfaces with selective lift: cards and popovers get a two-part ambient shadow (`0 6px 16px rgba(0,0,0,.22) + 0 0 4px rgba(0,0,0,.08)`) only on hover or when floating. The search field uses an inset ring (`inset 0 0 0 1px rgba(50,50,57,.62)`) instead of a border. Rows separate by whitespace, not dividers.

## Shapes

- **9000px pill (`--border-radius-rounded`):** The dominant shape — all buttons, tag chips, avatars, icon buttons. If it's a control, it's a stadium.
- **8px:** Stream thumbnails and cards — soft but rectangular.
- **2–6px:** LIVE badges, small menus, and inputs' straight edges.
- The left-rail collapse arrow and carousel chevrons sit in circular hit areas. Rectangles never exceed ~8px.

## Motion & Micro-interaction

Fast, physics-free transitions — everything resolves in under half a second.

- **100–150ms ease:** Button background/color shifts, hover states.
- **200–300ms ease:** Transform slides (carousel, rail collapse) and opacity fades.
- **~450ms:** The slowest allowed transition — reserved for full-surface reveals like the community banner.
- Hover on stream cards produces a subtle lift + shadow bloom; text links flip to purple instantly.

## Voice & Content Strategy

- **Tone:** Casual, gamer-fluent, community-first — "Live on Twitch", "Categories we think you'll like", join-the-community energy.
- **Capitalization:** Sentence case on buttons and headings; tag pills stay lowercase/keyword-style ("DropsEnabled", "English").
- **Button grammar:** Short verbs or nouns ("Log in", "Sign up", "Show more", "Browse") — 1–2 words max on pills.
- **Metric language:** Compact viewer counts ("1.2万 viewers"), red-dot live indicators, and keyword tags under every card.
- **Wayfinding:** The rail and tabs use bare nouns — no sentences in chrome, copy lives in the content.

## Components

- **Primary button:** #9147FF → #772CE8 pill, 32px high, 14px/600 white label — "注册/Sign up" in the top bar.
- **Secondary button:** Translucent hinted-grey pill (#ADADB8 @ 22%), same 32px pill geometry, #0E0E10 label — "登录/Log in" and icon ghost buttons.
- **Inverse button:** White pill with dark text — used on the deep-violet community banner.
- **Tag chip:** Same grey-glass pill at 12px/600 — filter tags under cards.
- **LIVE badge:** #EB0400 2px-radius chip, white caps label, pinned on thumbnails; the viewer count sits beside it with a red dot.
- **Search input:** 36px white field, left side 8px-rounded, inset 1px ring stroke, 14px placeholder, attached rounded-end submit button.
- **Stream card:** Borderless — 8px-radius thumbnail, 14px/600 title, 13px streamer + game rows, tag pills beneath.
- **Left rail item:** Circular avatar + two text rows (name 13px, game + viewer count in slate) + red live dot.
- **Category tile:** Gradient purple/pink tile with a 3D icon for top categories on the directory page.
- **Community banner:** Full-width deep-violet gradient band, white headline + white pill CTA.

## Do's and Don'ts

- Do make every button a pill (9000px) — rectangles are off-brand for controls.
- Don't use #9147FF for text on white — use the deeper #5C16C5 for links and headings; the bright purple is a fill color.
- Do keep the LIVE badge red and tiny — red appears nowhere else in the system.
- Don't give buttons borders; fills and ghost-grey are the only two button treatments.
- Do keep card surfaces borderless — thumbnails get 8px radius, and separation is whitespace plus glass-grey chips.
- Don't stack shadows on static cards — the two-part ambient shadow is reserved for hover and floating layers.
- Do keep text at 13–14px; this is a dense directory — large type is only for section heads (18px) and hero moments.
- White on #9147FF is below strict WCAG AA (≈3.5:1) — the shipped brand button treatment; keep labels semibold 14px+ and never set body text on purple.
- Do keep purple out of large fills on the light theme — the only big violet surface is the community banner's dark gradient.
- Don't forget the red live dot + count pairing — live status is always (dot + number), never a solo number.
