# ChatPDF DESIGN.md

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

A friendly, consumer-playful AI chat product wrapped around document upload — vivid purple actions on clean white surfaces, Onest display headlines, a persistent chat sidebar, and hand-drawn annotation graphics that make the PDF dropzone feel like a scribbled notebook margin.

- Website: https://chatpdf.com
- Primary color: Purple `#A026FF`
- Fonts: -apple-system, Onest
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/chatpdf

## Palette preview

- `outline`: `#a6a09b`
- `primary`: `#a026ff`
- `success`: `#42c215`
- `surface`: `#ffffff`
- `tertiary`: `#1a54db`
- `background`: `#ffffff`
- `on-primary`: `#ffffff`
- `on-surface`: `#292524`

## Typography preview

- `body-lg`: -apple-system
- `title-lg`: Onest

---

## Overview

ChatPDF is a consumer AI tool — "ChatGPT for your PDFs" — and the design leans into approachability over enterprise polish. A persistent left sidebar holds chat history, folders, and tool entries; the main canvas is a near-empty stage dominated by one large hero card containing a purple-dashed upload dropzone and a paste-to-chat input. A hand-drawn arrow and scribbled "DROP YOUR PDF FILE HERE" note float beside the dropzone like a margin annotation, signaling that this is a friendly student tool, not a corporate suite.

The brand voice is bold and simple: one vivid purple (`#A026FF`) does all the action work, headlines swap single words into purple or blue for emphasis, and laurel-wreath award badges plus avatar clusters supply social proof. Everything else is quiet — warm stone neutrals, hairline borders, small soft shadows — so the purple reads instantly. Tool pages (PDF AI, AI Flashcards, Scholar) reuse the same shell; the API docs page drops to a plain centered prose column with monospace code.

## Colors

- **Primary — Electric Purple (#A026FF):** The entire action layer: sign-up CTAs, the active tool tab, the logo mark, headline word-highlights, dashed dropzone accents, and the "Plus" upgrade. Hover/deep variant **#870EE2**.
- **Primary container (#FDFBFF):** A whisper of violet used for tinted fills inside the dropzone and focus-adjacent surfaces; **#DBACFF** is the dedicated purple hairline for the dashed dropzone and focused input borders.
- **Tertiary — Highlight Blue (#1A54DB):** Reserved for single-word headline emphasis ("一流的" in the hero) and informational links; never used for buttons.
- **Neutrals:** White surfaces on white; the sidebar sits on stone-50 `#FAFAF9`; fills like `#EEF0F3`/`#EFF0F7` separate secondary regions. Borders are `#ECECEC`/`#E7E5E4` hairlines with `#A6A09B` (stone-400) reserved for outlined buttons.
- **Text:** Headings are navy-black `#070D1B` (Onest); UI text and buttons use warm stone-800 `#292524`; body copy is blue-gray `#374356`; muted meta text is stone-500 `#79716B`.
- **Accent confetti:** Feature and award icons cycle through blue `#1A54DB`, amber `#EF9E11`, green `#42C215`, and orange `#FB923C` — playful one-off tints, not a system ramp. `#42C215` doubles as the flashcard progress-bar fill.
- **Inverse:** Dark CTA/footer bands use navy `#161822` with white text.

## Typography

Two families: **Onest** (loaded 400/700) carries every headline and word-mark — geometric, slightly rounded, with tight negative tracking — while the UI runs on the **system stack** (-apple-system / SF Pro). `ui-monospace` covers code on the docs page, and a **Gill Sans**-style hand font appears only inside the scribbled dropzone annotation.

- **Display:** 56px/700 Onest with −0.014em tracking anchors each tool page ("PDF AI", "AI 抽认卡"), often with one word set in a filled purple box or accent color.
- **Headlines:** 40px/700 and 36px/600 Onest for heroes and section heads; body-page h1 on docs is 36px/700.
- **Titles:** 24px/700 Onest for card/section titles; 20px/600 and 16px/600 system for h3 rows and tool labels.
- **Body:** 14px regular in `#374356` — deliberately small, app-like density; 18px for lead paragraphs.
- **Labels:** 14px/500 is the universal control size; a 12px/500 **uppercase** purple eyebrow labels marketing sections; keyboard hints use 12px chips.

## Layout

- **App shell:** ~290px sidebar (stone-50, icon + 14px label rows) + fluid main area. The hero card and headline stack are horizontally centered in an ~800–840px column.
- **Rhythm:** 8px base grid (4px for icon gaps and chips, 10–12px inside compact controls, 20–32px card padding, 60–120px between marketing sections).
- **Cards:** the hero workbench is a single ~24px-radius white panel; inside it, the dropzone and paste input sit side by side at equal width.
- **Docs:** single centered prose column, wide line length, hairline `hr` separators — deliberately undecorated.

## Elevation & Depth

A soft-shadow system rather than pure flat: cards and buttons rest on small, low-opacity shadows (`0 1px 4px rgba(0,0,0,0.05)`, `0 1px 2px rgba(35,39,46,0.08)`, occasionally `0 7px 11px rgba(0,0,0,0.08)`) combined with `#ECECEC` hairlines. Nothing is heavily elevated — the hero card floats just enough off the white page to read as a panel. The dashed purple border on the dropzone substitutes for elevation entirely.

## Shapes

- **6px:** the default control radius — buttons, tabs, sidebar rows, chips.
- **8px:** text inputs and the paste field.
- **12px:** award/stat cards and medium panels; **16px** for larger nested containers.
- **24px:** the hero workbench card — the largest rectangle radius.
- **full:** avatars, kbd chips, the green progress bar, and floating action buttons.

## Motion & Micro-interaction

Standard Tailwind feel: nearly every interactive element transitions `all` over **200ms `cubic-bezier(0.4,0,0.2,1)`**; color-only changes use **150ms** on the same curve; accordion/panel reveals animate `transform`, `max-height`, and `opacity` over **300ms ease-out**. Motion is quick and functional — no looping or decorative animation.

## Voice & Content Strategy

- **Tone of voice:** Enthusiastic, direct, and superlative-heavy — "#1 PDF Chat AI", "the best way to talk to your PDFs". Student-friendly, zero jargon on consumer pages; the API docs switch to plain technical English.
- **Capitalization:** Title Case for tool names and headlines ("Chat with PDF", "AI Flashcards"), sentence case for UI labels ("New chat", "Upload", "Sign up").
- **Terminology:** "chat" is the canonical verb ("Chat with any PDF", "chat with YouTube videos"); tools are named Chat / Summary / AI Detection / AI Writer / Flashcards / Slides / Scholar. The paid tier is **Plus**.
- **Button and action labels:** Short verbs — "Upload", "New", "Sign up", "Back". The paste field uses the kbd-hint pattern "⌘ V paste text or link".
- **Proof style:** Laurel-wreath stats ("#1 PDF Chat AI", "1,000,000+ questions answered daily", "Top 50 Generative AI 2024") and grayscale university logos.

## Components

- **Buttons:** 32px-high, 6px-radius controls with 8–10px horizontal padding and 14px/500 labels; the 44px `button-outline` upload button bumps to 16px. `button-primary` is flat purple; `button-outline` is white with a stone-400 border; `button-ghost` covers language and sidebar-toggle controls.
- **Tabs (`tab-active`/`tab-inactive`):** the tool switcher inside the hero card — active tab is a filled purple pill-rectangle with white icon + label; inactive tabs are plain text rows.
- **Hero workbench (`card-hero`):** white 24px-radius panel with hairline + soft shadow, containing the tab row, a "chat with any file/video/website" headline, and the two input halves.
- **Dropzone:** light-violet fill (`#FDFBFF`) inside a dashed `#DBACFF` border with an inline `button-outline` upload control — always paired with the hand-drawn arrow annotation.
- **Inputs:** 8px-radius white fields, `12px 16px` padding; focus swaps the neutral hairline for purple `#DBACFF`.
- **Kbd chips (`kbd`):** tiny bordered squares (⌘, V) rendered as 6px-radius outlined boxes next to paste hints.
- **Awards (`badge-award`):** three-up stat cards with laurel graphics, a colored icon, and 12px labels — white on white, separated by whitespace.
- **Sidebar (`nav-item`):** 14px icon rows with section dividers (Chats / Folders / Tools); a persistent purple "Sign up" bar anchors the bottom for logged-out users.
- **Progress (`progress-fill`):** 6px rounded track on flashcards, filled with bright green `#42C215`.

## Do's and Don'ts

- Do give purple sole ownership of actions — one `#A026FF` element per cluster; everything else stays neutral.
- Do pair the dashed dropzone with the hand-drawn annotation; the scribble is a brand signature, not clip art.
- Don't use the confetti accent colors (blue/amber/green/orange) for text or buttons — they belong to icons only.
- Do keep button radii at 6px and reserve 24px for the single hero card; full-round is for avatars, kbd chips, and progress bars.
- Don't stack shadows — one soft sm shadow plus a hairline is the maximum elevation on this system.
- Do highlight a single headline word in purple or blue rather than coloring whole headlines.
- Don't introduce gradients or dark heroes on consumer pages; the only dark band is the footer/CTA `#161822`.
- Do keep labels at 14px/500 and uppercase 12px purple eyebrows for marketing sections.
- Don't localize inconsistently: the product ships localized shells (`/zh`, etc.) — headings and buttons must hold up in CJK line lengths.
- Do treat `#870EE2` as interactive depth on purple, not as a separate brand color.
