Skip to main content
Baidu

Baidu DESIGN.md design system & style guide

ConsumerFreev1.0.0 (Latest)

Baidu's design system uses Indigo (#4E6EF2) as the primary color and PingFang SC for type. This DESIGN.md records 14 colors and 82 design tokens from baidu.com.

baidu.com•Linked Nov 20, 2026, 01:49 PM•Reviewed by Bestony

China's leading search engine — a near-empty homepage built around one pill query box and the blue-violet 百度一下 button.

Showing 14 of 14 colors
Dark (23%)
Aa Test Sample#FE2D46
hot
rgb(254, 45, 70)
Light (72%)
Aa Test Sample#DBDCE0
outline
rgb(219, 220, 224)
Dark (19%)
Aa Test Sample#4E6EF2
primary
rgb(78, 110, 242)
Light (100%)
Aa Test Sample#FFFFFF
surface
rgb(255, 255, 255)
Dark (31%)
Aa Test Sample#FF6600
tertiary
rgb(255, 102, 0)
Light (92%)
Aa Test Sample#F5F6FA
secondary
rgb(245, 246, 250)
Light (100%)
Aa Test Sample#FFFFFF
on-primary
rgb(255, 255, 255)
Dark (2%)
Aa Test Sample#222222
on-surface
rgb(34, 34, 34)
Light (100%)
Aa Test Sample#FFFFFF
on-tertiary
rgb(255, 255, 255)
Dark (2%)
Aa Test Sample#222222
on-secondary
rgb(34, 34, 34)
Dark (2%)
Aa Test Sample#222222
inverse-surface
rgb(34, 34, 34)
Light (92%)
Aa Test Sample#F5F6FA
surface-container
rgb(245, 246, 250)
Light (100%)
Aa Test Sample#FFFFFF
inverse-on-surface
rgb(255, 255, 255)
Dark (30%)
Aa Test Sample#9195A3
on-surface-variant
rgb(145, 149, 163)

Design Guidelines

Overview

Baidu is the anti-portal: the homepage is a single centered ritual — logo, one enormous pill search box with the attached gradient "百度一下" button, an AI-assistant line, and a compact numbered 百度热搜 hot-list — floating in acres of white. The SERP then densifies into a tabbed results column plus a right rail of related searches and the hot list, all hairline-bordered white cards and gray chips.

The personality is functional-civic with a playful edge (the bear-paw logo, orange 热 badges). Imagery is essentially absent; the brand lives in the blue-violet action color and the giant search pill.

Colors

  • Baidu Blue-Violet / Primary (#4E6EF2): Search submit, 登录 login pill, active tabs, links, and AI accents — rendered as a blue→violet gradient on the big button (shadow tints around rgba(77,128,255,0.1–0.2)).
  • Chip Gray / Secondary (#F5F6FA): Related-search and suggestion chips, subtle fills.
  • Hot Orange / Tertiary (#FF6600): Square 热 badges marking trending items.
  • Rank Red / Hot (#FE2D46): The gradient red-orange of top-3 hot-search ranks (with #F63051 siblings); lower ranks fall to gray.
  • Ink: #222222 titles and query text; #9195A3 secondary, #BBBBBB footer/legal.
  • Outline (#DBDCE0): Card and input hairlines — the search box glows blue on focus instead of relying on a strong border.

Typography

Chinese UI set in PingFang SC over an Arial fallback (the measured stack is "PingFang SC", Arial, sans-serif; Latin-only fragments run Arial). Compact and list-oriented.

  • Headers: headline-lg 20px/600 for answer cards ("design – 设计 常见释义"); headline-md 16px/600 for rail titles (百度热搜, 相关搜索).
  • Body: body-md 14px result text; body-sm 13px descriptions.
  • Labels: label-md 13px nav items at an airy 1.77 line-height; label-sm 12px meta/footer.
  • Action: button-lg 17px/500 on the search button; input-lg 16px inside the query box.

Layout

Homepage: dead-center column (~640px box) under the logo, hot-list constrained to the lower third. SERP: header bar (logo + compressed pill search) then a two-column split — results ≈2/3, related/hot rail ≈1/3 — inside ~1200px. Base rhythm ~4px; cards pad 19–24px; the homepage is vertically centered rather than top-aligned.

Elevation & Depth

Flat white-on-white separated by #DBDCE0 hairlines. The one expressive shadow is functional: a blue-tinted focus glow (rgba(77,128,255,0.1) 0 10px 40px -8px, 0 13px 18px -15px @0.2) that blooms under the search box on focus — elevation as affordance, not decoration.

Shapes

The pill rules: homepage search container ~24px (xxl), inner 百度一下 button ~15px (xl), login button full 999px, chips at md 8px, and answer cards at lg 12px with square 4px (sm) 热 badges. Nothing is fully square except badges and thumbnails.

Motion & Micro-interaction

Featherweight: 200ms ease color swaps on tabs/links (state-change), a 240ms ease box-shadow bloom on search focus (focus-ring), and 250ms ease opacity/transform reveals for suggestions and AI panels (surface-enter). The interface otherwise snaps — no looping or decorative animation.

Voice & Content Strategy

  • Language: All-Chinese; terse 2–4 character labels (新闻, 地图, 贴吧, 视频, 登录, 设置).
  • Signature label: The search verb is branded — "百度一下" ("Baidu it"), never "搜索".
  • AI hook: Assistant pitch as a sentence — "复杂问题就找文心助手,深入思考回答更优".
  • Meta: Numbered hot-search entries keep headlines intact; rank color (red-orange→gray) signals heat, tiny 热 badge reinforces.
  • Legal: Dense gray ICP/licensing footer in 12px — required boilerplate, visually muted.

Components

  • input-search: The hero control — white pill, 24px radius, 16px text, voice/image icons inside, with the attached gradient submit; blue focus glow on engage.
  • button-search: 44px blue-violet gradient button (tokenized flat primary), 15px radius, 17px/500 white label — sits inside the pill's right cap.
  • button-primary: 29px #4E6EF2 登录 pill in the header.
  • nav-tab / nav-tab-active: 14px ink items (综合 文心 图片 资讯…); active turns Baidu Blue with a 2px underline.
  • chip-related: #F5F6FA 8px-radius suggestion chips (相关搜索, 大家还在搜) with a small 🔍 glyph.
  • card-result: White 12px-radius bordered answer/dictionary card with hairline outline.
  • badge-hot: Tiny orange square 热 flag beside trending titles.
  • rank-hot: Red-orange rank digits for positions 1–3 of the hot list.
  • link / footer-link: Baidu-blue inline links; muted 12px #BBB legal links.

Do's and Don'ts

  • Do keep the homepage almost empty — logo, one pill, one button; resist adding chrome.
  • Do render the primary action as the blue→violet gradient (flat #4E6EF2 is the token approximation).
  • Do keep hot ranks colored red→orange only for positions 1–3; gray for the rest.
  • Do keep 热 badges small and square — they flag, they don't headline.
  • Don't add shadows to cards; the only glow is the blue search-focus bloom.
  • Don't use mid-grays for body text — #222 on white is the reading standard; #9195A3/#BBBBBB are meta-only.
  • Note: white on #4E6EF2 measures ≈4.4:1 — the live brand pair; keep it for large 17px button labels but prefer darker text pairs for small print.

How to use Baidu's DESIGN.md with an AI agent

  1. Get Baidu's DESIGN.md

    Download it from this page, fetch https://www.designmdpro.app/websites/baidu.md, or call the get_design_md tool with slug "baidu" from the DesignMD Pro MCP server.

  2. Save it as DESIGN.md in your project root

    Put the file next to AGENTS.md or CLAUDE.md so Claude Code, Cursor, Codex and other coding agents can find it.

  3. Ask your agent to follow it

    For example: "Build the settings page following the Baidu design system in DESIGN.md — use its colors, typography and spacing tokens."

Baidu style AI prompt

Build a responsive landing page in the visual style of Baidu (baidu.com), following its DESIGN.md design system.

## Colors
- hot: #FE2D46
- outline: #DBDCE0
- primary: #4E6EF2
- surface: #FFFFFF
- tertiary: #FF6600
- secondary: #F5F6FA
- on-primary: #FFFFFF
- on-surface: #222222
- on-tertiary: #FFFFFF
- on-secondary: #222222
- inverse-surface: #222222
- surface-container: #F5F6FA
- inverse-on-surface: #FFFFFF
- on-surface-variant: #9195A3

## Typography
- body-md: "PingFang SC", 14px, weight 400, line-height 1.5
- body-sm: "PingFang SC", 13px, weight 400, line-height 1.5

## Corner radius
- lg: 12px
- md: 8px
- sm: 4px
- xl: 15px
- xxl: 24px
- full: 9999px

## Spacing
- lg: 19px
- md: 12px
- sm: 9px
- xl: 24px
- xs: 4px
- xxl: 32px
- base: 4px
- gutter: 18px

## Components
- link: textColor #4E6EF2, typography PingFang SC 14px
- nav-tab: textColor #222222, typography PingFang SC 14px
- rank-hot: textColor #FE2D46, typography PingFang SC 14px
- badge-hot: padding 4px, rounded 4px, textColor #FFFFFF, typography PingFang SC 12px, backgroundColor #FF6600
- card-result: padding 19px, rounded 12px, textColor #222222, typography PingFang SC 14px, backgroundColor #FFFFFF
- footer-link: textColor #9195A3, typography PingFang SC 12px

## Rules
- Use only the colors above for backgrounds, text, borders and accents; do not invent new colors.
- Set all text with the typography styles above and keep their size and weight hierarchy.
- Take corner radius and spacing from the scales above so components look consistent.

Full DESIGN.md: https://www.designmdpro.app/websites/baidu.md
Customize in the V0 prompt generator →

Frequently asked questions

What is Baidu's primary color?

Baidu's primary brand color is Indigo (#4E6EF2). Its DESIGN.md defines 14 color tokens in total.

What font does Baidu use?

Baidu uses PingFang SC as its primary typeface.

How do I use Baidu's design tokens in Tailwind CSS or shadcn/ui?

Download this DESIGN.md and paste it into the Tailwind theme generator or the shadcn theme generator to get a ready-to-use theme with Baidu's primary color #4E6EF2 and the rest of its tokens.

Is this Baidu DESIGN.md official?

No. DesignMD Pro extracted it from the public baidu.com website. It is not affiliated with or endorsed by Baidu.

When was Baidu's DESIGN.md last updated?

Version 1.0.0 was captured on November 20, 2026.

Add to Google favorites

Baidu and its trademarks belong to their respective owners. DesignMD Pro is an independent project, not affiliated with or endorsed by Baidu; this DESIGN.md is extracted from the public website for reference only.