Ant Design
Ant Design
alipay
Design System
Alipay logo

Alipay

Alipay (支付宝) is the payments and lifestyle super-app at the center of Ant Group, and its design legacy is outsized: the team that builds Alipay's enterprise and merchant tooling also created Ant Design, the open-source React design system that became the de-facto standard for Chinese B2B software and one of the most-adopted component libraries in the wor

01

Color Palette

Brand

Accent

Neutrals

Semantic

02

Typography

Type Scale

Rendered in system-ui to clearly show scale & weight.

display44px · 600 · 1.25
Design at scale
32px32px · 600 · 1.25
Section heading
heading-lg24px · 600 · 1.4
Subheading
body16px · 400 · 1.5
Body text. The quick brown fox jumps over the lazy dog. Designed for readable line-height in long-form content.
small12px · 400 · 1.5
Supporting text
caption12px · 400 · 1.5
Caption · timestamp · 2026
label10px · 500 · 1.5
BADGE / LABEL

Fonts

Primary
Inter
Open · OFL
Designed by Rasmus Andersson. Variable font with full weight range.
Install via Google Fonts
Primary
PingFang SC
Systemno install needed
Apple system font for Simplified Chinese.
Not publicly distributed.
Primary
Microsoft YaHei
Systemno install needed
Windows Simplified Chinese.
Not publicly distributed.
Primary
Hiragino Sans GB
Brand-only
Not in the OMD font registry. Likely a brand-proprietary typeface — check the brand's own design site for source/availability.
Not publicly distributed.
03

Spacing & Shape

Spacing

PurposeValuePreview
Densitycompact
Base unit8px
Section gap16px
Card padding12px
Element gap8px

Border Radius

ElementValuePreview
buttons6px
inputs6px
cards6px
dialogs6px
badges6px
pillPill9999px

Elevation

Shadow 1
Shadow 2
Shadow 3
04

Guidelines

Do and Don't guidelines parsed from DESIGN.md.

Do

  • Use Daybreak Blue #1677FF as the primary; derive hover/active from the value ladder (#4096FF hover, #0958D9 active).
  • keep color semantic: blue = primary/info, green = success, gold = warning, red = error. Each means one thing.
  • build text hierarchy with black-opacity levels (#000000E0 / #000000A6 / #00000040), not arbitrary gray hexes.
  • design around the 14px base and 8px spacing scale; use size variants for density control.
  • Use 6px radius for controls (buttons/inputs), 8px for cards/modals.
  • lead the font stack with system fonts + Simplified-Chinese fallbacks (PingFang SC, Microsoft YaHei).

Don't

  • invent ad-hoc blues. The 10-step ladder covers every blue you need.
  • Use a status color decoratively. A success-green chip must indicate success, not just "look nice".
  • drop to weight 700 for headings — Ant headings are weight 600 (semibold).
  • bloat dense screens with 16–18px body — that breaks the table/form rhythm the system is tuned for.
  • Use pill-shaped or 0px-sharp controls — Ant's calm 6px radius is the brand signature.
  • load a heavy custom web font — native fonts render crispest at 14px density.
05

Components

Buttons

Primary
Background`#1677FF`
Text`#FFFFFF`
Bordernone
Radius6px
Padding4px 15px (default `controlHeight: 32px`)
Font14px / 400
Hoverbackground `#4096FF`
Activebackground `#0958D9`
Use: Primary action — Pay, Confirm, Submit (确认 / 支付).
Default (Secondary)
Background`#FFFFFF`
Text`#000000E0`
Border1px solid `#D9D9D9`
Radius6px
Padding4px 15px
Font14px / 400
Hovertext + border transition to `#4096FF`
Use: Secondary action beside a primary.
Text / Link
Backgroundtransparent
Text`#1677FF` (link) / `#000000E0` (text button)
Bordernone
Radius6px
Hoverlink `#4096FF`; text button gets `#0000000A` fill
Use: Tertiary actions, inline links.
Danger (Primary danger)
Background`#FF4D4F`
Text`#FFFFFF`
Radius6px
Use: Destructive confirmation (delete, cancel order).

Inputs

Default
Background`#FFFFFF`
Text`#000000E0`
Border1px solid `#D9D9D9`
Radius6px
Padding4px 11px (height 32px)
Font14px / 400
Focusborder `#1677FF` + faint blue focus ring (`#1677FF` at low alpha)
Disabledbackground `#F5F5F5`, text `#00000040`
Errorborder `#FF4D4F`
Use: Form fields, search, amount entry.

Cards

Default Card
Default Card
Background`#FFFFFF`
Border1px solid `#D9D9D9` (or borderless variant with shadow)
Radius8px (`borderRadiusLG`)
Padding24px (body)
Shadownone default; `boxShadowTertiary` on hover for clickable cards
Use: Console panels, dashboard widgets, content grouping.

Tags / Badges

Status
Status Tag
Backgroundstatus color at low alpha (e.g. success `#52C41A` on `#F6FFED` fill, border `#B7EB8F`)
Textstatus color
Radius4px (`borderRadiusSM`)
Padding0 7px
Font12px / 400
Use: "已支付 / Paid", "待处理 / Pending", "失败 / Failed" — semantic status pills.

Modals

Default
Dialog content placeholder
Default
Background`#FFFFFF`
Radius8px
Padding20px 24px
Shadow`boxShadow` (elevated)
Backdrop`#00000073` (black ~45%)
Use: Confirmations, payment dialogs, multi-step flows.