# TikTok DESIGN.md

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

TikTok's web surface is a dark theater for video — near-black surfaces, translucent white overlays, TikTok-red primary actions, and the cyan/red brand duotone, all set in the custom TikTokFont family.

- Website: https://tiktok.com
- Primary color: Rose `#FE2C55`
- Fonts: TikTokFont, TikTokDisplayFont
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/tiktok

## Palette preview

- `error`: `#ff3b5c`
- `outline`: `#ffffff`
- `primary`: `#fe2c55`
- `surface`: `#000000`
- `secondary`: `#25f4ee`
- `on-primary`: `#ffffff`
- `on-surface`: `#ffffff`
- `surface-dim`: `#121212`

## Typography preview

- `micro`: TikTokFont
- `headline-lg`: TikTokDisplayFont

---

## Overview

TikTok's desktop web is a dark theater: video thumbnails are the content, so the entire chrome — sidebar, top bar, modal — sinks into near-black while a grid of tall video tiles provides all the light. The design is dense and app-like rather than editorial: icon rows, category pill filters, translucent surfaces. Brand color is spent carefully — TikTok red `#FE2C55` marks primary actions (Login, follow), while the cyan `#25F4EE` half of the logo duotone appears only in the wordmark and tiny accents. Everything sits on transparency: overlays are white at 8–20% alpha rather than solid grays.

## Colors

- **TikTok red `#FE2C55` (hover/text variant `#FF3B5C`):** primary buttons, active nav state, links to sign-up. On dark surfaces it reads as neon.
- **Cyan `#25F4EE`:** the brand's second duotone — logo shadow and rare accent details; never a button fill on web.
- **Surfaces:** base `#000000` page, `#121212`–`#1F1F1F` rails, `#252525` modal/tooltip chrome, `#2F2F2F` hover fills. Video tiles sit on near-black until media loads.
- **Text:** white at ~90% for primary, ~50–60% for secondary, ~40% for disabled/placeholder.
- **Borders & overlays:** white at 8–13% alpha for fills, ~12% for hairlines (`#FFFFFF1F`). There are no opaque gray borders.

## Typography

Custom faces throughout: **TikTokFont** for all UI (400/500/600/700) and **TikTokDisplayFont** (700) for display headings like the login modal title. The scale is compact — this is an app chrome, not a reading surface.

- **Display:** 33px/700 (modal titles).
- **Title:** 21px/700 section headers; 16px/500 nav and button labels with slight positive tracking.
- **Body:** 14–15px/400 for descriptions and meta.
- **Caption/micro:** 12px and 10px for timestamps and tertiary meta.

## Layout

A fixed left icon-nav rail, a top bar with a centered translucent search pill and right-aligned auth actions, and a fluid masonry-style grid of 9:16-ish video tiles filling the rest — up to ~1680px. Category filter chips scroll horizontally under the top bar. Spacing is tight 4px-grid work: 8–12px tile gaps, 12px chip padding, 24–48px modal padding. The login modal centers at ~480px wide on a dimmed scrim.

## Elevation & Depth

Depth is achieved by **darkness and scrim**, not shadow: the login modal floats over a `rgba(0,0,0,~0.5)` dim; tiles and rails are flat. The only measured shadow is a faint `0 2px 10px rgba(0,0,0,0.07)` on popovers — nearly invisible on the black canvas. Video thumbnails carry their own internal depth; chrome stays matte.

## Shapes

Two shape families: **pills** (search, buttons, category chips, auth CTAs — 999px) and **soft rectangles** (nav rows 6–8px, video tiles 8px, modal 12px). Media keeps modest rounding so the grid feels like a shelf of screens; actions are always fully rounded.

## Motion & Micro-interaction

App-snappy: color transitions at 250ms ease, transforms at 300ms on `cubic-bezier(0.4, 0.14, 0.3, 1)` (TikTok's standard curve), modal/loading fades at 100–400ms. Hover states brighten fills toward `#FFFFFF21`; video tiles can scale or preview on hover. Nothing decorative — motion either confirms a tap or reveals content.

## Voice & Content Strategy

Ultra-short and utilitarian. Nav is single nouns ("For You", "Explore", "LIVE", "Upload"); the login modal is a list of identity providers with no persuasion copy ("Log in to TikTok", "Use QR code / phone / Facebook / Google / Apple"). Genre chips are one or two words. The only brand sentence is in the meta description: "Start watching to discover real people and real videos that will make your day."

## Components

### Buttons

`button-primary` — TikTok-red pill (login CTA in the top bar and sidebar, ~46px tall, white 15px/600 label). `button-secondary` — `#2F2F2F` translucent pill for modal options (QR code, phone, Apple…), each with a leading icon.

### Search

`input-search` — a centered translucent pill (white ~13% fill), 40px tall, placeholder in white 50%, with a trailing divider and search glyph.

### Navigation

`nav-item` — icon + 16px/500 label rows in the left rail; active/hover gets a 6px-radius brightened fill and the label can turn red for the active section.

### Category chips

`chip-category` — translucent pills in the horizontal genre strip (`#1F1F1F` fill, white text); the active chip darkens or inverts.

### Video tiles & modal

`video-tile` — 8px-radius media cards with creator handle and view count overlaid at the bottom edge. `card-modal` — the 12px-radius `#252525` login dialog, provider buttons stacked with 8px gaps, skip link top-right.

## Do's and Don'ts

- **Do** keep the canvas near-black; surfaces lighten by adding white alpha, never by switching to gray hex.
- **Do** reserve `#FE2C55` for primary actions and active states — it's the only saturated UI color besides the logo cyan.
- **Do** use pills for every clickable chip/button and keep media at 8px radius.
- **Do** set text as white at reduced alpha for secondary/meta rather than introducing gray colors.
- **Don't** add drop shadows to chrome — elevation is scrim + tonal fill only.
- **Don't** put the cyan `#25F4EE` on buttons; it belongs to the brand mark and small accents.
- **Don't** brighten borders — hairlines stay at ~12% white; higher contrast makes the grid feel boxed-in.
- **Note:** TikTok's primary red button ships white text on `#FE2C55` (≈3.7:1) — the real brand choice; keep it for short bold labels only. The search pill is technically white text on a `rgba(255,255,255,0.13)` fill — the `surface-container-high` token is its opaque composite over black; in implementation prefer the translucent fill so the scrim color shows through.
