跳至主要内容
Wikipedia

Wikipedia DESIGN.md 设计系统与风格规范

MediaPro 专属v1.0.0 (最新)
en.wikipedia.org•关联于 2026年11月30日 04:00•审核 Bestony

The Vector 2022 skin: a light-grey page ground with white content containers, one link blue unchanged for fifteen years, section headers tinted in five pastel hues each with a matching darker border, a 2px radius on 292 elements, and no drop shadows anywhere.

Pro 专属网站

当前可免费阅读 Wikipedia 的完整设计叙述与最多 8 色主色板。升级 Pro 即可获取全部 70 个设计 Token、完整 DESIGN.md 源码下载及 1 个历史版本。

显示 8 / 18 个颜色
深色 (39%)
Aa 示例文字#A2A9B1
outline
rgb(162, 169, 177)
深色 (15%)
Aa 示例文字#3366CC
primary
rgb(51, 102, 204)
浅色 (95%)
Aa 示例文字#F8F9FA
surface
rgb(248, 249, 250)
深色 (10%)
Aa 示例文字#54595D
secondary
rgb(84, 89, 93)
浅色 (72%)
Aa 示例文字#CEDFF2
tint-blue
rgb(206, 223, 242)
浅色 (86%)
Aa 示例文字#EEEEEE
tint-grey
rgb(238, 238, 238)
浅色 (68%)
Aa 示例文字#F2CEDD
tint-pink
rgb(242, 206, 221)
浅色 (100%)
Aa 示例文字#FFFFFF
on-primary
rgb(255, 255, 255)
获取完整色板、CSS 变量与 DESIGN.md 源码

升级 DesignMD Pro,复制全部颜色的 :root CSS 变量、查看组件配色引用并下载完整源文件。

设计规范

Overview

This is the English Wikipedia Main Page under Vector 2022, the skin that has fronted the site since 2022 and inherits its restraint from the 2010 Vector skin before it. It is the most-read page on the internet and it looks like a newspaper that has been sanded down for fifteen years: a light-grey ground, white content containers, one blue for every link, and almost nothing else.

The page is a stack of .mp-box panels, each introduced by a tinted section header bar. Five pastel hues rotate through those headers — green for "From today's featured article", blue for "In the news", pink for "Today's featured picture", purple for "Did you know…", grey for the neutral "Other areas of Wikipedia" — and each header carries a 1px border in a darker sibling of its own fill. That single move is the entire colour idea of the page: the sections are distinguishable by hue without any of them becoming a button, a badge or an accent.

Beneath it all is a chrome layer of pure utility: a 66px white header with a logo, a search box and three text links; a left navigation menu that pins and unpins; an "Appearance" sidebar with radio buttons for text size, width and colour scheme; and a footer of plain links. There are no images in the chrome, no icons beyond a hamburger and a magnifier, and no illustration anywhere.

The design's confidence is that it has nothing to prove. A page serving 7.2 million articles and 259,000 active editors to the entire planet resolves its hierarchy with 1px borders, four grey values and five pastels, and it works.

Colors

Four greys, one blue, five pastels. That is the complete palette.

  • Primary #3366cc — the link blue, and the only saturated colour in the chrome. It has been Wikipedia's link colour, essentially unchanged, since 2010. It appears 269 times on this page and nowhere as a fill. On the grey page ground it measures 5.09:1; on white 5.37:1. It is the single most load-bearing value in the system.
  • On-surface #202122 — body text, a near-black with a warm cast. 15.30:1 on the page ground. Used for every paragraph, list item and byline.
  • Text-heading #101418 — a colder, deeper near-black used only for headings: the Welcome to Wikipedia, title and the five section headers. Against every pastel it clears 12:1.
  • Secondary #54595d — the muted grey for menu headings like Navigation. 7.09:1 on white.
  • Text-button #404244 — the control grey, used for the hide, Search and appearance radio labels. 10.09:1 on white.
  • Surface #f8f9fa — the page ground. Not white: a very slightly blue grey that makes the white containers below it read as raised without a single shadow.
  • Surface-raised #ffffff — the header, the search input, the dropdowns, and the .mw-page-container itself.
  • Surface-panel #f9f9f9 — the neutral .mp-box fill, one step off white, used for the welcome banner.
  • Outline #a2a9b1 — the standard border grey. It is the h2 underline in article bodies and the footer's top rule.
  • Outline-variant #c8ccd1 — the hairline grey, a step lighter, used for the subtlest separators.

The five section tints, each with its own darker border:

Design system specification
SectionFillBorder#101418 on fill
Featured article#cef2e0 mint#a3bfb115.33:1
In the news#cedff2 ice blue#a3b0bf13.62:1
Featured picture#f2cedd blush#bfa3af12.90:1
Did you know…#ddcef2 lilac#afa3bf12.49:1
Other areas#eeeeee grey#dddddd15.94:1

The border is always the fill's darker, desaturated sibling — roughly 35% darker with the same hue — so each header reads as a single tinted object with a defined edge rather than a fill with a line drawn round it. The corresponding .mp-box bodies use the same hues at a much lighter wash: #fff5fa for the featured-picture block, #faf5ff for the did-you-know block.

There is no black and no pure grey ramp beyond these values. No #000, no #333, no #666 — the darkest thing on the page is #101418. And every contrast pair in the system clears AA comfortably, the tightest being the link blue at 5.09:1.

Typography

Two families with a hard boundary between them.

  • sans-serif (the system stack: Helvetica Neue, Arial, and whatever the platform provides) — everything on the main page. Headings, body, links, buttons, menus, labels. This is a deliberate choice: Wikipedia cannot ship a webfont to the whole planet, so it uses the reader's own.
  • 'Linux Libertine', 'Georgia', 'Times', 'Source Serif 4', serif — declared for .mw-body-content h1 and h2, which means article pages only, not the main page. It is the classic Wikipedia serif, and it is where the encyclopedia's editorial voice lives. On the main page it is entirely absent.

The scale is small and unambitious, and that is the point:

Design system specification
RoleSize / weight / leadingColour
Page title (Welcome to Wikipedia,)25.92px / 400 / 1.375#101418
Section header19.2px / 700 / 1.375#101418
Body16px / 400 / 1.625#202122
Small body / captions13.6px / 400 / 1.625#202122
UI label14px / 400 / 1.5714#202122
UI label (menu heading)14px / 400 / —#54595d
Button16px / 700 / 2#404244

Note two things. First, the page title is font-weight: 400 — at 25.92px in the system sans it is already large enough, and bolding it would shout. Only the section headers are bold, at a smaller size, which inverts the usual hierarchy and gives the page its flat, newspaper-like calm. Second, every size is a non-integer (25.92, 19.2, 13.6, 22.1): the scale is defined in em/pt against a rem base and rendered at whatever the browser resolves, which is why the numbers look arbitrary and the rhythm does not.

Letter-spacing is normal everywhere. There is no tracking adjustment anywhere on the page, and no text-transform — the only uppercase text is whatever the source provides.

Layout

A 1440px viewport with 44px page gutters (.mw-page-container { padding: 0 44px }), a 1352px content container, and a 1132px content column for the main page body.

  • Header — 1440×66, white, display: flex. Hamburger left, the Wikipedia wordmark and its "25 years of the free encyclopedia" lockup, a 402px search box, then Donate, Create account and Log in as plain text links at the right.
  • Tab strip — Main Page (selected, underlined) / Talk, then Read / View source / View history at the right with a bookmark and a ⋮ menu. All 14px, all #202122.
  • Welcome banner — an .mp-box at #f9f9f9 with a #dddddd border and padding: 0 8px 8px, holding the 25.92px title, the tagline (the free encyclopedia that anyone can edit), and the stats line (259,283 active editors · 7,268,893 articles in English).
  • Two-column band — "From today's featured article" and "Did you know…" side by side, each 502px wide. Below them, "In the news" at 590px. Then "Today's featured picture" and "Other areas of Wikipedia" full-width at 1132px.
  • .mp-box — the universal container: padding: 0 8px 8px, border: 1px solid <tint>, border-radius: 0. Its header is the tinted .mp-h2 bar; its body is the wash-tinted fill.
  • .mp-h2 — the section header: 19.2px/700 #101418, padding: 3.84px 7.68px, border: 1px solid <matching darker tint>, 36px tall. Note the padding is 0.24em / 0.48em, which is why it renders as 3.84px and 7.68px.
  • Left navigation — a pinned column of .vector-pinnable-element menus, each with a Navigation-style heading at 14px/#54595d, padding: 6px 0 and a 1px solid #eaecf0 underline, followed by 14px links.
  • Appearance sidebar — a 164px panel with hide at the right, then three radio groups (Text: Small/Standard/Large; Width: Standard/Wide; Color: Automatic/Light/Dark) with 14px labels.
  • Footer — 1352px wide, padding: 12px 0, border-top: 1px solid #a2a9b1. A "Page was rendered with Parsoid" note, then four columns of links (Privacy policy, About Wikipedia, Disclaimers, Contact Wikipedia, Legal & safety contacts, Code of Conduct, Developers, Statistics, Cookie statement, Mobile view), then the Wikimedia and MediaWiki logos.

The spacing scale is 4 / 6 / 8 / 16 / 24 / 32 / 44px, with 6px by far the most common (104 uses) and 8px close behind (55). Everything is a multiple of 4 except the 44px gutters and the 3.84px header padding, and the whole page is built from those few numbers repeated.

Elevation & Depth

There are no drop shadows. The entire box-shadow extraction for the page returns two values, and neither is a shadow in any meaningful sense:

  • rgba(0, 0, 0, 0) 0px 0px 0px 1px inset — a fully transparent inset ring on the search input. It is a no-op placeholder.
  • rgb(200, 204, 209) 0px 1px 0px 0px — a single 1px hard line, not a blur.

So the entire depth vocabulary is borders and background steps. The page ground is #f8f9fa; the containers on it are white or #f9f9f9; the section headers are pastel; and every edge is a 1px line in a grey or a tint's darker sibling. That is how a 3,984px-tall page with 31 distinct blocks stays flat and legible.

The one exception is the dropdown, which does cast a real shadow: rgba(0, 0, 0, 0.2) 0px 2px 6px -1px, on a white surface at padding: 16px. It is the only floating layer on the page and it earns its shadow by being the only thing that overlaps content.

This is the discipline worth copying: if the hierarchy can be carried by a 1px border and a two-step background ramp, it should be. Wikipedia's page has no elevation because it has nothing floating over anything else except one menu.

Shapes

One radius, used 292 times.

  • 2px (xs) — every rounded corner on the page. Buttons, inputs, the skip link, the appearance radios. It is a barely rounded corner: enough to take the algorithmic edge off a rectangle, not enough to read as "friendly". At 292 instances it is the single most-repeated value in the entire system.
  • 0px (none) — everything structural: the page, the header, the .mp-box panels, the section headers, the footer, the navigation. All sharp rectangles.

The eight contributor and recommender avatars in the featured blocks are true circles (border-radius: 50%); they are the only non-rectangular shapes on the page and the only place a percentage radius is used.

There is also one asymmetric case: the search input is border-radius: 2px 0 0 2px, rounding only its left corners so it meets the square Search button flush.

The lesson is that a design system needs one radius, not a scale of seven. Wikipedia has 2px and the avatar circle and nothing between, and the page is none the poorer for it — the pastels and the greys do all the differentiating that a radius ramp would otherwise be asked to do.

Motion & Micro-interaction

One transition, and it is almost invisible by design.

background-color, color, border-color, box-shadow 0.1s ease — declared on 15 elements (links, buttons, menu items). One hundred milliseconds. It is below the threshold at which most people perceive an animation, which is exactly the intent: state changes should register as responsiveness, not as motion. A link hover on Wikipedia feels instantaneous, and a 400ms transition would make the whole page feel sluggish.

One longer transition exists, on a single element: top, max-height 0.25s linear for the collapsible navigation.

There is no scroll-linked motion, no parallax, no carousel, no fade-in, no skeleton loader and no page transition. The featured image does not cross-fade. The countdown-free page loads and sits still. The most interactive thing on it is the SHOW ME ANOTHER-free static text — the entire page is a document, and it behaves like one.

Voice & Content Strategy

The voice is encyclopedic and impersonal, and it is the most distinctive thing about the page. There is no marketing copy anywhere. The register is neutral, factual, and hedged with the precision of a style manual — and the few places where a human voice breaks through are deliberate and carefully rationed.

Real examples from the captured page:

  • "Welcome to Wikipedia," — the title, with its comma. It is an address, not a slogan, and the comma is the whole warmth of it.
  • "the free encyclopedia that anyone can edit." — the tagline, with free and anyone can edit as the two links. The mission statement is three words long and both of its load-bearing words are hyperlinked.
  • "259,283 active editors · 7,268,893 articles in English" — the stats line. Exact numbers, no rounding, no "over", no "more than". The precision is the boast.
  • "From today's featured article" / "Did you know…" / "In the news" / "Today's featured picture" / "Other areas of Wikipedia" — the five section headers. All sentence case, all descriptive of the mechanism rather than the content, and "Other areas of Wikipedia" is a magnificent piece of bureaucratic understatement for a list of 300 sister projects.
  • "Help us improve this article!" — the one exclamation mark on the page, and it is spent on a request for labour rather than a claim about the product.
  • "You can improve this article by:" followed by "Finding reliable sources about the topic", "Adding more citations", 'Expanding the "History", "Professions", and "Regulation" sections'. Note the bulleted imperatives addressed directly to the reader — the only second-person copy on the page.
  • "You can be bold and start editing the article. Have questions or suggestions? Visit the article's talk page, or post at the Teahouse for general discussion." — Teahouse is Wikipedia's onboarding space and the copy names it plainly rather than euphemistically.
  • "Recently featured: Great white shark · Ice Warrior · Mairzy Doates" and "Recently featured: Awards and nominations received by Brandon Flowers · …" — the "recently featured" lines, which are the only place the page admits to a history.
  • "Wikipedia is written in volunteer editors and hosted by the Wikimedia Foundation, a non-profit organisation that also hosts a range of other free projects." — the footer's self-description, which leads with who wrote it rather than what it is.
  • "This Wikipedia is written in English. Many other Wikipedias are available; some of the largest are listed below." — the languages block, which lists Arabic, German, Spanish, French, Hindi, Italian, Japanese, Korean, Dutch, Polish, Portuguese, Russian, Swedish and Ukrainian each with a live article count, then a 349 languages dropdown.

The discipline is total: no adjective survives unless it is doing factual work. "Featured", "free", "active", "other" — that is the entire adjectival vocabulary of the page. The one place personality is allowed is the "Did you know…" hooks, which are written as genuine curiosities ("...that three vocalised overlords singing their own girl group formed in the 1990s..."), and even those are attributed to the articles they came from.

Components

  • .mp-box — the universal content container. padding: 0 8px 8px, border: 1px solid <tint>, border-radius: 0, with a body fill in the matching wash (#f9f9f9 neutral, #fff5fa pink, #faf5ff purple). 1132px or 502px or 590px wide depending on the band.
  • .mp-h2 section header — the tinted bar that opens every .mp-box. 19.2px/700/26.4px #101418, padding: 3.84px 7.68px, border: 1px solid <darker sibling of the fill>, 36px tall, border-radius: 0. Five fills rotate: #cef2e0, #cedff2, #f2cedd, #ddcef2, #eeeeee.
  • Header — 1440×66, white, flex. Hamburger, the WIKIPEDIA wordmark with 25 years of the free encyclopedia beneath, the search box, then Donate / Create account / Log in as 16px links at the right.
  • Search input — 402×32, white fill, border: 1px solid #72777d, border-radius: 2px 0 0 2px, padding: 4px 8px 4px 32px (the left inset clears the magnifier icon), 14px/22px text. Pairs with a square Search button at #404244… actually a white button with a #72777d border, closing the 2px-left / 0px-right radius pair.
  • Tab strip — Main Page / Talk at the left, Read / View source / View history plus a bookmark and ⋮ at the right. 14px, #202122, the selected tab underlined. Below the strip, border-bottom: 1px solid #a2a9b1.
  • Navigation menu — a .vector-pinnable-element column. Each portlet has a heading at 14px/#54595d with padding: 6px 0 and a 1px solid #eaecf0 bottom rule, then 14px links. The whole column pins and unpins via a toggle button.
  • Appearance panel — 164px wide, hide at the right, three labelled radio groups (Text: Small/Standard/Large; Width: Standard/Wide; Color: Automatic/Light/Dark). Labels at 14px/#404244, radios at #3366cc.
  • Dropdown — white, padding: 16px, border-radius: 0, box-shadow: rgba(0,0,0,0.2) 0 2px 6px -1px. The only floating layer on the page and the only real shadow in the system.
  • Featured-article block — 502px wide. A floated 200px thumbnail on the left with a caption beneath it, the article title in bold, then the extract in 16px/26px with inline links, then Archive · By email · More featured articles · About us at the foot.
  • Did-you-know block — 502px wide, purple-tinted, a bulleted list of hooks each ending in …, then Archive · Start a new article · Nominate an interesting article.
  • In-the-news block — 590px wide, blue-tinted, a bulleted list of current-events items with a floated thumbnail at the right, then More current events · Nominate an article.
  • Featured-picture block — 1132px wide, pink-tinted, a large centred image with a long italic caption and a credit line (Photo credit: White Studio, restored by Adam Cuerden), then More featured pictures.
  • Languages block — a 349 languages dropdown button, then a multi-column list of languages each with an article count, grouped by magnitude (1,000,000+ / 250,000+ / 100,000+ / 50,000+ / 10,000+).
  • Footer — 1352px wide, padding: 12px 0, border-top: 1px solid #a2a9b1. A "Page was rendered with Parsoid" note, four columns of links, then the Wikimedia and MediaWiki logos at the right.
  • Skip link — Jump to content, #3366cc, border-radius: 2px, visually hidden until focused. The only accessibility-specific component and the only element sized 1×1.

Do's and Don'ts

  • Do keep the link blue at #3366cc and use it for every link, everywhere, with no exceptions. It is the only saturated colour in the chrome and its consistency across 269 instances is what makes the page scannable.
  • Do tint each section header with a pastel fill and a 1px border in a darker sibling of that same fill. The border should be roughly 35% darker and equally desaturated — that pairing is what makes a header read as one object rather than a fill with a line round it.
  • Do separate the page ground from its containers by background step alone: #f8f9fa page, #ffffff header, #f9f9f9 neutral panel. This works because there are no shadows to compete with it.
  • Don't add a drop shadow. The page has exactly one, on the dropdown, and it is rgba(0,0,0,0.2) 0 2px 6px -1px. Everything else separates with a 1px border or a background step.
  • Do use exactly one radius: 2px. It appears 292 times. Add 50% for avatars and leave everything structural at 0px.
  • Don't bold the page title. Welcome to Wikipedia, is 25.92px at font-weight: 400; only the 19.2px section headers are bold. Inverting the weight hierarchy is what keeps the page calm.
  • Do keep state transitions at 0.1s ease on background-color, color, border-color, box-shadow. Faster than perception is the goal — the page should feel instant, not animated.
  • Do use the system sans stack for all interface text and reserve the Linux Libertine serif stack for article-page headings. The main page has no serif at all, and that is a deliberate boundary.
  • Don't ship a webfont. The system stack is the typography strategy; it loads instantly for every reader on earth and it never blocks paint.
  • Do write copy that is descriptive of mechanism, not content: "From today's featured article", "In the news", "Other areas of Wikipedia". The headers tell you how the page works, not what is in it.
  • Don't use an adjective unless it is doing factual work. The entire adjectival vocabulary of this page is "featured", "free", "active" and "other".
  • Do keep the 44px page gutters, the 1132px content column and the 4/6/8/16/24/32px spacing scale. Six numbers build the whole page.

如何在 AI agent 里使用 Wikipedia 的 DESIGN.md

  1. 获取 Wikipedia 的 DESIGN.md

    请求 https://www.designmdpro.app/websites/wikipedia-1.md,或通过 DesignMD Pro MCP 服务器调用 get_design_md 工具(slug 为 "wikipedia-1"),即可获取公开版本;完整 tokens 需要 Pro。

  2. 保存为项目根目录下的 DESIGN.md

    把文件放在 AGENTS.md 或 CLAUDE.md 旁边,Claude Code、Cursor、Codex 等编码 agent 就能读到它。

  3. 让 agent 按它来写

    例如:“按照 DESIGN.md 里的 Wikipedia 设计系统实现设置页,使用其中的颜色、字体和间距 tokens。”

Wikipedia 风格 AI Prompt

参照 Wikipedia(en.wikipedia.org)的 DESIGN.md 设计系统,用它的视觉风格构建一个响应式落地页。

## 配色
- outline: #A2A9B1
- primary: #3366CC
- surface: #F8F9FA
- secondary: #54595D
- tint-blue: #CEDFF2
- tint-grey: #EEEEEE
- tint-pink: #F2CEDD
- on-primary: #FFFFFF

## 字体
- body: "sans-serif", 16px, weight 400, line-height 1.625
- button: "sans-serif", 16px, weight 700, line-height 2

## 圆角
- xs: 2px
- none: 0px

## 规则
- 背景、文字、边框和强调色只使用上面列出的颜色,不要自创新颜色。
- 所有文字都使用上面的字体样式,并保持它们的字号与字重层级。
- 圆角和间距取自上面的尺度,让各组件保持一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/wikipedia-1.md
在 V0 Prompt 生成器中自定义 →

常见问题

Wikipedia 的主色是什么?

Wikipedia 的品牌主色是蓝色(#3366CC),其 DESIGN.md 共定义了 18 个颜色 token。

如何在 Tailwind CSS 或 shadcn/ui 中使用 Wikipedia 的设计 token?

本页公开了 Wikipedia 的主色 #3366CC。生成完整的 Tailwind 或 shadcn 主题需要完整的 DESIGN.md,可通过 DesignMD Pro 获取。

这份 Wikipedia DESIGN.md 是官方的吗?

不是。这份文件由 DesignMD Pro 从 en.wikipedia.org 的公开页面提取,与 Wikipedia 无关联,也未获其认可。

Wikipedia 的 DESIGN.md 最近一次更新是什么时候?

当前版本 1.0.0 提取于 2026年11月30日。

Wikipedia 及其商标归各自所有者所有。DesignMD Pro 是独立项目,与 Wikipedia 无任何关联,亦未获其认可;本 DESIGN.md 提取自其公开网站,仅供参考。