# Wikipedia DESIGN.md

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

Wikipedia's design is institutional clarity — Linux Libertine serif headings over system-sans body text, Wikimedia link blue, hairline gray borders, 2px-radius Codex controls, and zero decoration so the content is the interface.

- Website: https://wikipedia.org
- Primary color: Blue `#3366CC`
- Fonts: -apple-system, Linux Libertine
- Version: 1.0.0
- Details: https://www.designmdpro.app/websites/wikipedia

## Palette preview

- `error`: `#bf3c2c`
- `outline`: `#a2a9b1`
- `primary`: `#3366cc`
- `surface`: `#ffffff`
- `secondary`: `#3366cc`
- `on-primary`: `#ffffff`
- `on-surface`: `#202122`
- `surface-dim`: `#f8f9fa`

## Typography preview

- `body-lg`: -apple-system
- `headline-lg`: Linux Libertine

---

## Overview

Wikipedia has two public faces sharing one vocabulary: the www portal — a centered globe of language links around a search box — and the article skin (Vector 2022) where content is everything. Both are engineered for trust and neutrality: white canvas, near-black text, blue links exactly where links should be, 1px gray hairlines, and controls so standard they disappear. There is no marketing layer at all — no hero images, no gradients, no display typography beyond the serif wordmark. The design says "library", not "product".

## Colors

- **Wikimedia blue `#3366CC`:** the single brand color — progressive buttons, focused borders, and every hyperlink. Blue = clickable; that's the whole rule.
- **Ink `#202122` / `#101418`:** body and heading text.
- **Gray `#54595D`:** secondary text, article counts, meta.
- **Surfaces:** `#FFFFFF` base; `#F8F9FA` panels, table headers, footer wells; `#EAECF0` quiet button fills; `#FDFDFD` alternating rows.
- **Borders:** `#A2A9B1` default hairline, `#C8CCD1` light dividers/table rules, `#72777D` for inputs at rest.
- **Error `#BF3C2C`:** red links to missing pages and destructive states — a functional color, not decoration.

## Typography

A two-family system that encodes content hierarchy: **Linux Libertine / Georgia serif** for the wordmark and article headings (h1–h2), **system sans** for everything else.

- **Portal wordmark:** 32px/700 serif ("Wikipedia" above "The Free Encyclopedia").
- **Article h1:** ~29px/400 serif with a 1px bottom rule; h2 ~24px serif, also ruled.
- **Body:** 14px/400 system sans at 1.5–1.6 line-height — tuned for long-form reading.
- **Controls:** 14–16px; buttons weight 700.
- **Meta/footer:** 13px gray.

## Layout

Portal: a centered column — wordmark, globe, ~10 top-language links in a radial grid, then a 460px search row and a language picker, with a hairline-divided footer of sister projects. Article (Vector 2022): a fixed-width content column inside a max ~1596px app frame — left nav rail, right tools rail, sticky header with a 32px search pill. Spacing is compact 4px-grid work: 8–12px control padding, 24px panel gaps, ~44px content margins.

## Elevation & Depth

Flat by principle — measured shadows are only a `1px` inset focus ring and hairline "rules" under headings/toolbars. Hierarchy comes from ruled lines (`#C8CCD1` borders under h1/h2 and the header bar), tonal panels, and whitespace. Nothing floats.

## Shapes

**Almost square.** Codex controls (search, buttons, toggles) use a uniform **2px** radius — visibly squared but not hard-sharp. The one organic exception: the portal's language-picker dropdown and focus outlines may use a slightly larger ~4px, and avatar/notification icons go circular. Right angles are the brand.

## Motion & Micro-interaction

Barely-there functional motion: `100ms ease` color/background/border transitions on hover and focus (`outline-width 100ms` for keyboard focus), ~250ms linear for collapsible panels (TOC hide/show, sticky header). Nothing bounces, fades, or parallaxes — animation only confirms state.

## Voice & Content Strategy

Encyclopedic neutrality. UI strings are short imperatives and facts: "Search", "Read Wikipedia in your language", "English — 7,261,000+ articles". Article copy follows the encyclopedia's own tone (descriptive, third-person, citation-backed). The only warm note is the donation/support line and the mission statement ("the internet we were promised"). No exclamation marks, no CTAs beyond search and donate.

## Components

### Search

`input-search` — the portal's 44px field: white, `#72777D` border at rest, `#3366CC` border + inset focus ring when active, left radius 2px with an attached blue `button-primary` ("Search", white 16px/700) squared off on the right. The article header uses a shorter 32px variant with a leading magnifier.

### Buttons

`button-primary` — Codex progressive: `#3366CC` fill, white bold label, 2px radius, 1px same-color border. `button-secondary` — `#F8F9FA` fill, `#A2A9B1` border, blue bold label ("Read Wikipedia in your language"). `button-quiet` — `#EAECF0` fill, no border, ink text ("hide" toggles).

### Links

`link-inline` — `#3366CC` text, underline on hover; new-page links shift to `#BF3C2C`. Language links on the portal are bold 14px blue over white.

### Panels

`card-panel` — `#F8F9FA` surface with `#C8CCD1` hairline, 2px radius, ~16–24px padding (portal footer blocks, article infoboxes and hatnotes).

## Do's and Don'ts

- **Do** treat `#3366CC` as a strict affordance color — blue text is always clickable; never use it decoratively.
- **Do** keep controls at 2px radius; squareness is part of the institutional voice.
- **Do** set headings in serif (Linux Libertine/Georgia) and everything else in system sans — the pairing *is* the brand.
- **Do** separate with 1px hairlines (`#A2A9B1`/`#C8CCD1`) instead of shadows.
- **Don't** round cards or buttons beyond ~4px, and don't pill anything except avatars.
- **Don't** introduce imagery, gradients, or marketing hero blocks — the content is the page.
- **Don't** use animation beyond ~250ms state confirmation.
