跳至主要內容
Mozilla

Mozilla DESIGN.md 設計系統與風格指南

ConsumerProv1.0.0 (最新)
mozilla.org•關聯於 2026年12月1日 上午04:00•審核 Bestony

Mozilla's brand system on two custom families: Mozilla Headline 600 at -0.01em tracking for every display size from 128px down to 16px, over a Mozilla Text body at 16px/20px, with zero border-radius and zero shadows anywhere, a strict 4px spacing grid, black-and-white grounds split by a #161616 night, and exactly two accents — the #0060DF link blue and the #00D230 brand green.

Pro 網站

你可以免費閱讀 Mozilla 的完整設計敘述與最多 8 色主色票。升級 Pro 即可取得全部 82 個設計 Token、完整 DESIGN.md 原始檔下載與 1 個歷史版本。

顯示 8 / 10 個色彩
深色 (0%)
Aa 測試範例#000000
ink
rgb(0, 0, 0)
深色 (45%)
Aa 測試範例#B3B3B3
muted
rgb(179, 179, 179)
深色 (1%)
Aa 測試範例#161616
night
rgb(22, 22, 22)
深色 (14%)
Aa 測試範例#0060DF
outline
rgb(0, 96, 223)
深色 (14%)
Aa 測試範例#0060DF
primary
rgb(0, 96, 223)
淺色 (100%)
Aa 測試範例#FFFFFF
surface
rgb(255, 255, 255)
淺色 (100%)
Aa 測試範例#FFFFFF
on-night
rgb(255, 255, 255)
深色 (46%)
Aa 測試範例#00D230
secondary
rgb(0, 210, 48)
取得完整色票、CSS variables 與 DESIGN.md 原始碼

升級 DesignMD Pro,將所有色彩複製為 :root CSS variables、檢視元件 Token 引用關係,並下載完整原始檔。

設計指南

Overview

mozilla.org runs on one of the most austere systems in this directory: two custom families, two accents, no rounded corners and no shadows at all. Mozilla Headline (600 only) carries every display size from a 128px hero down to a 16px eyebrow, always at -0.01em tracking and a line-height that matches the font size almost exactly; Mozilla Text (400/600/700) carries everything readable. The grounds are pure black and white, split by a #161616 night that hosts the hero, the product bands and the entire footer. Against that, exactly two colors are allowed to speak: the #0060DF link blue and the #00D230 brand green. Everything sits on a strict 4px spacing grid inside a 1440px container, and the only easing in the building is a single cubic-bezier(0.5, 0, 0, 1).

Colors

Black, white, one gray ramp, and two accents:

  • Primary #0060DF (blue): the interactive color. Every link, every outline button's label and 2px border, the solid CTA's fill, and the "Continue" submit. White on it is 5.6:1 — the system's most reliable pairing.
  • Secondary #00D230 (green): the brand accent, used sparingly — the animated Mozilla logo mark in the hero and small highlights. It never carries text.
  • Ink #000000 / night #161616: the two dark grounds. Black is the light-ground text color; #161616 is the dark band and footer fill, and also the tab toggle's selected state.
  • Surface #FFFFFF / background #FAFAFA: the light grounds. Cards, the header and the product grid are white; #FAFAFA backs the input and newsletter fields.
  • Muted #B3B3B3: the eyebrow gray on dark bands; #414141 does the same job as a one-off border and fill on the homepage.
  • Accent washes #FFF1F8 blush, #D6FFCD mint, #FAF0E6 cream and #FF97E2 pink (prose only): section-level tints that appear one at a time on the about page, always behind imagery rather than text, so they never become component tokens.
  • In assets (prose only): the Firefox, Focus, Relay, VPN, Monitor and MDN product icons, the Thunderbird and 0DIN marks, and the hero's animated logo are all SVG/PNG artwork — their oranges, purples and pinks are never flat computed colors.

Typography

Two families, split by job, never mixed within a string. Mozilla Headline 600 takes the display range at a near-solid line-height: 128px/128px (the homepage hero), 80px/80px (the about hero), 66px/66px (stat numerals), 56px/61.6px (page titles), 48px/52.8px, 32px/35.2px (card heads), 28px/30.8px (product names) and 16px/17.6px (eyebrows). Every size carries -0.01em tracking, so the negative letter-spacing scales with the font: -1.28px at 128, -0.8px at 80, -0.56px at 56, -0.32px at 32, -0.16px at 16. Mozilla Text takes the readable range — 24px/500 ledes, 18px/400 secondary copy at a loose 1.5, 16px/400 body at exactly 1.25, 14px/400 small — with 600 for the navigation and 700 reserved for button labels and inline links. The system never uses a weight above 700 or a size below 12px.

Layout

A 1440px container with a 64px-gutter rhythm and an 800px copy measure (688px for the products grid's text columns). The header is a 72px white bar — wordmark left, "Products" and "About us" right, divided from the page by a single 1px hairline. The homepage hero pairs the 128px "Welcome to Mozilla" with a 24px lede and a single underlined "Learn about us" link, beside the animated green logo mark. Below it: a dark "Love the internet again" band, a "Build A Better Future" band, an "Explore issues" link grid, and a dark mega-footer with four link columns (Products / About Mozilla / Innovations / Get Involved) and a newsletter signup. The products page runs a tab toggle ("For everyone" / "For business") over a three-up grid of icon, name, description and outline button. The about page opens with an 80px "Guard the Open Internet" hero over a full-bleed photograph.

Elevation & Depth

There is none — and that is the decision. No element on mozilla.org has a box-shadow, a drop shadow, a glow or a blur. Depth comes entirely from flat color inversion: white sections, #161616 sections, and the occasional 16px-radius black card ("One login. Everything Mozilla.") that reads as raised purely because it is dark on light. The one near-exception is the tab toggle, whose selected state is a white or #161616 plate inside an 8px solid black frame — a hard edge, not a soft one.

Shapes

Zero radius is the default. Buttons, tabs, inputs, cards and images are all square. The system declares only two exceptions: 4px on small controls and 16px on the large black statement card. Nothing on the site is pill-shaped, and the 2px outline-button border is the only stroke in the system that isn't a 1px hairline divider.

Motion & Micro-interaction

One curve, used everywhere: cubic-bezier(0.5, 0, 0, 1) at 300ms for hover — background-color on buttons and tabs, text-decoration-color and color on links, transform and box-shadow on the few liftable elements. Presses drop to 100ms ease. The hero's logo mark is the only continuous animation, and the site ships an explicit "Pause animation" control (a 32px #161616 button, 12px/600 white label) so the motion is never forced on a visitor — an accessibility feature most systems in this directory lack.

Voice & Content Strategy

Mission-first and plain-spoken, with the manifesto doing the persuading. Real strings from the captured pages:

  • "Welcome to Mozilla" / "From trustworthy tech to policies that defend your digital rights, we put you first — always."
  • "Learn about us" / "Love the internet again" / "Build A Better Future"
  • "Explore issues shaping the technology landscape"
  • "Open Source AI Is Winning" / "Owners Not Renters" / "Read the report" / "The Internet You Loved Is Still Here" / "AI Datasets In 450 Languages" / "AI You Control"
  • "Guard the Open Internet" / "Mozilla is working to put control of the internet back in the hands of the people using it."
  • "Products" / "Firefox is just the beginning. Mozilla's family of products are all designed to keep you safer and smarter online."
  • "For everyone" / "For business"
  • "Firefox" / "Get the browser that blocks 2000+ data trackers automatically. Enhanced Tracking Protection comes standard in every Firefox browser." / "Download Firefox"
  • "Firefox Focus" / "Your dedicated privacy browser with automatic tracking protection and ad blocking." / "Get Firefox Focus"
  • "Firefox Relay" / "Protect your real email address to help control your inbox." / "Get Firefox Relay"
  • "Mozilla VPN" / "Mozilla Monitor" / "MDN Plus" / "Thunderbird" / "0DIN" / "Tabstack" / "Otari"
  • "Firefox browsers" / "About Mozilla" / "The Mozilla Manifesto" / "Get Involved" / "Blog" / "Mozilla Foundation" / "Mozilla.ai" / "Mozilla Ventures" / "Mozilla Advertising" / "Mozilla Builders" / "Mozilla New Products"
  • "Sign Up Now" / "Help us improve your Mozilla experience" / "Pause animation" / "Cookie settings"
  • "© 1996—2026 Mozilla" style footer legal with the AI text-and-data-mining reservation

Components

  • button-outline — the workhorse: white ground, #0060DF label and 2px border, 0px radius, 40px tall ("Download Firefox", "Get Firefox Relay", "Test your AI agents"). button-solid inverts it to a blue fill with a white label ("Continue").
  • tab / tab-active — the products page's "For everyone" / "For business" pair: 18px/600 labels, 39px tall, 0px radius, the selected state a #161616 plate with white text inside an 8px black frame.
  • card-night — the rare 16px-radius element: a 1280px black statement card ("One login. Everything Mozilla.") on white.
  • link — inline 16px links in #0060DF, underlined, with the underline itself animating on hover.
  • nav-link — the header's two items in Mozilla Text 18px/600 black.
  • eyebrow — the 16px/600 #B3B3B3 labels that head the footer columns.
  • footer — the #161616 mega-footer: white links at 16px/400, 14px secondary, and a #FAFAFA newsletter input.
  • pause-control — the 32px #161616 "Pause animation" button, 12px/600 white.

Do's and Don'ts

  1. Do keep every corner square — 0px is the default radius for buttons, tabs, inputs, cards and images; the only exceptions are 4px small controls and the 16px statement card.
  2. Do use no shadows at all: depth comes from flat black-on-white and white-on-#161616 inversion, never from blur.
  3. Do set display type in Mozilla Headline 600 at -0.01em tracking, scaling the negative letter-spacing with the font size (-1.28px at 128px, -0.16px at 16px), and hold the line-height within a pixel or two of the font size.
  4. Do keep Mozilla Text for everything readable at 16px/20px, stepping to 24px/500 for ledes and 18px/400 for secondary copy, and reserve 700 for button labels and links.
  5. Do let #0060DF carry every interactive role — links, outline-button labels and borders, solid-button fills — and confine #00D230 to the brand mark and small highlights.
  6. Do respect the 4px grid (4/8/16/20/24/32/48/64/80/96px), the 1440px container and the 800px copy measure.
  7. Do answer hover with the one curve — cubic-bezier(0.5, 0, 0, 1) at 300ms on background-color, color and text-decoration-color — and drop to 100ms ease for presses.
  8. Do ship the "Pause animation" control wherever the hero mark moves; motion is never mandatory on this system.
  9. Don't introduce a third font family, a weight above 700, or a size below 12px — the scale is 16/18/24/28/32/48/56/66/80/128px and nothing else.
  10. Don't round a button or add a glow to a card: both read as a different brand the moment they appear.
  11. Don't re-color the product icons — the Firefox oranges, Relay purples and Monitor pinks are artwork, and replacing them with brand colors breaks every product's identity.
  12. Don't drop the footer's AI reservation clause: the legal line covering text and data mining and AI training is part of the system's voice, not decoration.

如何在 AI Agent 中使用 Mozilla 的 DESIGN.md

  1. 取得 Mozilla 的 DESIGN.md

    存取 https://www.designmdpro.app/websites/mozilla.md 或透過 DesignMD Pro MCP 伺服器以 slug "mozilla" 呼叫 get_design_md 工具以取得公開版本。完整 token 集合需訂閱 Pro。

  2. 將其儲存為專案根目錄中的 DESIGN.md

    將檔案放在 AGENTS.md 或 CLAUDE.md 旁,讓 Claude Code、Cursor、Codex 與其他程式開發 Agent 能夠讀取。

  3. 請你的 Agent 遵循該規範

    例如:「請依照 DESIGN.md 中的 Mozilla 設計系統建構設定頁面,使用其中的色彩、字型與間距 tokens。」

Mozilla 風格 AI 提示詞

請依照 Mozilla(mozilla.org) 的 DESIGN.md 設計系統,以相同的視覺風格建構一個響應式到達頁。

## 色彩
- ink: #000000
- muted: #B3B3B3
- night: #161616
- outline: #0060DF
- primary: #0060DF
- surface: #FFFFFF
- on-night: #FFFFFF
- secondary: #00D230

## 字型
- nav: ""Mozilla Text", system-ui, -apple-system, sans-serif", 18px, weight 600, line-height 22.5px
- title: ""Mozilla Headline", "Mozilla Text", system-ui, sans-serif", 56px, weight 600, line-height 61.6px, letter-spacing -0.56px

## 圓角
- md: 16px
- sm: 4px
- none: 0px

## 規則
- 背景、文字、邊框與強調色僅使用上述色彩,請勿自行發明新顏色。
- 所有文字皆套用上述字型樣式,並維持其字級與字重層級。
- 圓角與間距請取自上述比例尺,確保各元件外觀一致。

完整 DESIGN.md:https://www.designmdpro.app/websites/mozilla.md
在 v0 提示詞產生器中自訂 →

常見問題

Mozilla 的主色是什麼?

Mozilla 的品牌主色為 藍色(#0060DF),其 DESIGN.md 共定義了 10 個色彩 tokens。

Mozilla 使用什麼字型?

Mozilla 的主要字型為 Mozilla Text 與 Mozilla Headline。

如何在 Tailwind CSS 或 shadcn/ui 中使用 Mozilla 的 design tokens?

本頁已公開 Mozilla 的主色(#0060DF)。產生完整的 Tailwind 或 shadcn 主題需要完整的 DESIGN.md,可透過 DesignMD Pro 取得。

這份 Mozilla DESIGN.md 是官方發布的嗎?

不是。此檔案由 DesignMD Pro 擷取自公開的 mozilla.org 網站,與 Mozilla 無任何關聯亦未獲其背書。

Mozilla 的 DESIGN.md 最後一次更新是什麼時候?

版本 1.0.0 擷取於 2026年12月1日。

Mozilla 及其商標均歸各自所有者所有。DesignMD Pro 為獨立專案,與 Mozilla 無任何關聯亦未獲其背書;此 DESIGN.md 擷取自公開網站,僅供參考。