# Duolingo DESIGN.md

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

Duolingo's marketing site is pure gamified joy — a flat, sticker-book world built on "Owl" green, chunky keys with solid 4px bottom lips instead of shadows, 16px rounded cards, and the rounded Feather display face. Saturated accent colors (Macaw blue, Bee yellow, Fox orange, Cardinal red, Beetle purple) mark gamification objects, while dense gray text and hairline Swan borders keep the toy-box energy readable.

- Website: https://duolingo.com
- Primary color: Lime `#58CC02`
- Fonts: duolingo-sans, Feather
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/duolingo

## Palette preview

- `error`: `#ff4b4b`
- `outline`: `#e5e5e5`
- `primary`: `#58cc02`
- `surface`: `#ffffff`
- `on-error`: `#ffffff`
- `tertiary`: `#ffc800`
- `secondary`: `#1cb0f6`
- `on-primary`: `#ffffff`

## Typography preview

- `body-lg`: duolingo-sans
- `display`: Feather

---

## Overview

Duolingo's web presence is a flat, saturated sticker book — the visual equivalent of a mobile game rather than a software product. Every surface is white or near-white; depth comes not from shadows but from solid 2–4px bottom "lips" in a darker shade of the surface color, so buttons and cards read as chunky, pressable plastic keys. The mascot Duo and the cast of round, thick-outlined characters carry most of the emotional weight: imagery is always cartoon illustration, never photography. The mood is relentlessly upbeat, encouraging, and playful — aimed at casual learners of every age — yet the grid underneath is a disciplined alternating two-column layout on a ~990px content column.

The signature look: pure white page, Feather Bold display headlines in "Owl" green, 17px gray body copy, uppercase 15px bold button labels with wide tracking, and illustrations that burst with the whole animal-named palette.

## Colors

The palette is Duolingo's famous zoo — every token has an animal name internally (`--color-owl`, `--color-macaw`, `--color-eel`…). Mapped to roles:

- **Owl Green (#58CC02, `primary`):** The brand. Hero CTAs, section headlines, the full-bleed footer, checkmark bullets. Used so densely it *is* the page's identity.
- **Tree Frog (#58A700, `primary-container`):** The darker green reserved for button lips — the 4px bottom edge that makes keys look physical — and shading, never large fills.
- **Turtle (#A5ED6E, `primary-light`):** A pastel green for accents and the light link color on green surfaces.
- **Macaw (#1CB0F6, `secondary`):** The action blue — ghost-button text, inline links, secondary CTAs, chart series.
- **Whale→Iguana (#DDF4FF, `secondary-container` / #042C60, `on-secondary-container`):** Pale blue tints behind selected states; deep navy ink for text on them.
- **Bee (#FFC800, `tertiary`) & Gold Shine (#FFE700, `tertiary-container`):** Streak/gamification yellows — gems, streaks, Super upsell moments. Always paired with dark Eel text.
- **Fox Orange (#FF9600, `accent-orange`)** and **Beetle Purple (#CE82FF, `accent-purple`):** Streak-fire and gem/badge accents — small fills, never backgrounds.
- **Cardinal (#FF4B4B, `error`)** on **Walking Fish (#FFDFE0, `error-container`):** Hearts/lives and destructive states.
- **Neutrals — Eel (#4B4B4B), Wolf (#777), Hare (#AFAFAF), Swan (#E5E5E5), Polar (#F7F7F7), Snow (#FFF):** Text, secondary text, disabled text, hairline borders, tinted bands, page background. The entire chrome is built from these six.
- **Midnight Navy (#042C60, `inverse-surface`):** The one dark band on the page — the "Power up with Super Duolingo" premium section.

## Typography

Two proprietary families do all the work:

- **Feather (Bold only, 700):** The rounded, bouncy display face used for marketing headlines — 64px display and 48px section headers, tightly tracked at -0.02em. It is the typographic voice of the brand; it never appears below ~32px.
- **duolingo-sans (variable 100–900 + italics):** The workhorse for everything else — UI, body copy, buttons, navigation. Page content runs on an internal `--text-*` scale: body 20px/1.4 (spacious variants 32px leading), measured marketing body 17px/24px Wolf gray, headings 28–16px all at weight 700, captions 16px/1.5, and labels 16–15px **always uppercase with 0.04–0.05em tracking**.

Rules: headlines Feather + Eel or Owl green; body duolingo-sans Regular + Wolf; every button/label/eyebrow is uppercase duolingo-sans Bold. Sentence case for headlines, all-caps only inside interactive chrome.

## Layout

A centered ~988px content column on white. Feature sections alternate illustration-left / text-right (then flip) down the page, separated by generous 70–96px vertical rhythm and occasional Swan hairline dividers. The hero is a symmetric pair: character cluster left, headline + two stacked full-width 330px CTAs right. A horizontal language-course carousel and card grids (4-up on the course picker) break the column. Cards and tiles use 16–24px internal padding; the register/course grid gaps run ~24px. No sidebar, no dense data tables — one idea per band.

## Elevation & Depth

There are essentially **no drop shadows**. Depth is manufactured by "lips": every interactive surface carries a 2px or 4px solid bottom edge in a darker shade of its own fill (`--web-ui_button-lip-width: 4px`, `box-shadow: 0 <lip> 0 <shade>`), implemented with Tree Frog under Owl green, Swan gray under white cards, Whale under Macaw blue. Pressing a button collapses the lip and translates the surface down — a tactile keypress, not a hover glow. Cards sit flat on Snow with 2px Swan borders plus the lip; the only real shadow observed is a faint `0 0 4px 1px rgba(0,0,0,.08)` ambient on floating chrome like the language switcher.

## Shapes

Two radii rule everything: **12px** on standard buttons and small elements, **16px** (`--web-ui_button-border-radius`) on newer buttons, course cards, flag tiles, and inputs — always paired with the straight bottom lip. Flags are squircle-ish tiles; streak/gem badges and toggles are fully round pills (`9999px`). Corners are never sharp, never larger than 16px — the roundness is uniform so the interface reads like molded plastic.

## Motion & Micro-interaction

Motion is short and springy, in service of the toy metaphor. Button presses collapse the 4px lip in ~100–150ms (`state-change`, ease-out). Carousel slides and illustration entrances use a longer 300–500ms decelerating curve (`cubic-bezier(0.22, 1, 0.36, 1)` — the observed brand easing). Character illustrations bob, wave, or react on hover; the language carousel auto-advances. Nothing parallaxes, nothing fades slowly — feedback is immediate and physical.

## Voice & Content Strategy

Playful, motivational, and gamified — the copy sells learning as a game you can't lose. On the captured zh-CN render the hero reads 「开开心心学语言，国际象棋等学科的最牛秘法！」 and the promise 「学⁠会⁠、玩⁠会⁠，还⁠免⁠费⁠！」 (canonical EN: "The free, fun, and effective way to learn a language!" / "learn it, play it, free"). Sections headline benefits in Feather green — 「教学科学有效」 "effective teaching science", 「学习动力满满」 "motivation that sticks". Buttons are short imperative verb phrases in all-caps: "GET STARTED", "I ALREADY HAVE AN ACCOUNT" (「开始」/「已有帐户」). Feature claims come with green checkmark bullets and specific numbers ("5 个学期的大学课程…"). Tone: encouraging, slightly silly, zero jargon; exclamation allowed. Sentence case headlines, ALL-CAPS only on buttons and eyebrows.

## Components

### Buttons (the signature component)
Three flavors on 50px-high, 16px-radius keys with uppercase 15px/700 labels (0.05em tracking) and ~16px horizontal padding; hero buttons run full-width (330px measured):
- **Primary:** Owl green fill, white label, Tree Frog 4px lip. Active: lip collapses, surface drops 4px.
- **Ghost/secondary:** Snow fill, 2px Swan border + Swan lip, Macaw label. Used for "I already have an account".
- **Disabled:** Swan fill, Hare label — intentionally low-contrast; the lip disappears.

### Cards
Course/language cards: Snow fill, 2px Swan border, 16px radius, ~24px padding, a flag or subject icon tile centered over name + learner count — and the same 4px bottom lip, so the whole card is one big key. Selected states shift border+lip to Macaw or Owl.

### Badges & gamification chips
Streak (Fox orange) and gem (Beetle purple) pills, white uppercase labels, fully rounded. Error/hint pills use Walking Fish fill with Eel text.

### Surfaces
Marketing bands are flat color blocks: the Super Duolingo premium band inverts to Midnight Navy with white Feather display; the footer is a solid Owl-green field under a wavy divider with white/light link columns and duolingo-sans 13–15px links.

### Nav
Minimal 70px top bar: wordmark left (Owl green "duolingo" logotype), a single language selector right — no marketing nav menu at all; the efficacy page adds a simple tab row with an Owl underline for the active tab.

## Do's and Don'ts

- Do give every clickable surface a 2–4px solid bottom lip in a darker shade of its fill — never a blur shadow on interactive chrome.
- Don't introduce photography, gradients, or glass effects; illustration must be the flat, thick-outlined cartoon style.
- Do keep button labels uppercase duolingo-sans Bold at 15–16px with wide tracking.
- Do use Owl green for *the* primary action and section headlines; Macaw blue only for secondary actions and links.
- Don't place dark text on Owl green or Macaw blue — those fills take white labels even though the pairing is decorative rather than WCAG-AA (measured ~1.8–2.3:1; a real brand trade-off — compensate with bold ≥15px labels and never use those fills behind body copy).
- Don't mix in sharp corners: 12px or 16px radius everywhere, pills for badges.
- Do alternate illustration/text columns and keep sections on the ~988px column with 70–96px between them.
- Do reserve the full accent zoo (Bee, Fox, Beetle, Cardinal) for gamification objects — streaks, gems, hearts — not for UI chrome.
- Don't darken the page: the single dark band is Midnight Navy and it's exclusively for the premium upsell.
