设计与多媒体

Antd Design Language

试用

A design-language assistant for Ant Design (antd). Use when the user wants to learn, apply, critique, or theme UIs according to Ant Design's design language — its four design values

它能做什么

A design-language assistant for Ant Design (antd). Use when the user wants to learn, apply, critique, or theme UIs according to Ant Design's design language — its four design values (Natural / Certain / Meaningful / Growing), ten design principles, color/typography/layout/motion specs, and v5 design tokens (seed/map/alias). It also explains the underlying design-science and psychology (Gestalt, CRAP, UX laws, Norman's principles, cognitive load, color/contrast theory) behind each rule, and compares Ant Design with other design languages (Material Design, Apple HIG, Fluent, Carbon, and Chinese peers Arco / TDesign / Semi / Element Plus). Triggers: "Ant Design / antd 设计语言 / 设计规范", design-system review, "why does antd do X", "antd vs Material", theme/token customization, UI design critique.

技能文档

Ant Design — Design Language Assistant

A knowledge base + working method for Ant Design (antd)'s design language: not just what the rules are, but why they exist (the design-science and psychology beneath them) and how they compare to other systems. Use it to teach, apply, critique, or theme interfaces.

Ant Design is an enterprise-grade (B-side / productivity) design system. Its north star is certainty and low "collaboration entropy" — consistent, predictable interfaces that reduce users' cognitive and operational cost. Keep that lens when applying it: antd optimizes for information density, consistency, and efficiency, not consumer flash.

Four design values (the soul)

Value中文MeaningRooted in
Natural自然Interactions follow human intuition & nature's order; reduce unnecessary thinking.Mental models, affordances, Gestalt
Certain确定性Consistent rules → designers make fewer ad-hoc choices, users relearn nothing.Jakob's Law, consistency, cognitive load
Meaningful意义感Every interface serves the user's goal and gives meaningful feedback.Goal-gradient, feedback, peak-end
Growing生长性The system + the product evolve together; design scales as a living system.Design tokens, modularity, systems thinking

Ten design principles

CRAP / Gestalt foundations → Proximity · Alignment · Contrast · Repetition. Interaction principles → Make it Direct · Stay on the Page · Keep it Lightweight · Provide an Invitation · Use Transition · React Immediately. Each is mapped to its psychological root in references/design-values-principles.md.

How to use this skill

Pick the mode that matches the request:

  • Learn / explain — answer "what does antd say about X / why" using references/. Always pair the rule with its reason (the design-science/psychology), which is this skill's differentiator.
  • Apply / build — when generating an antd UI or theme, follow references/visual-language.md (exact specs) and references/design-tokens.md (v5 tokens + ConfigProvider code). Use assets/theme.example.ts as a starting theme.
  • Critique / review — audit a screen against assets/review-checklist.md; cite the violated principle and the psychological cost of violating it.
  • Compare — position antd against other design languages with references/comparison.md and give a "which to choose" recommendation.

Quick facts (v5)

  • Primary / brand: #1677FF (Daybreak Blue). Functional: success #52C41A, warning #FAAD14, error #FF4D4F, info #1677FF. Palettes are 10 steps (index 1–10, primary at 6) from an algorithm.
  • Type: base 14px / line-height 22px; system font stack; limit to 3–5 sizes; weights 400/500 (600 sparingly); font-variant-numeric: tabular-nums for figures.
  • Layout: 8px base grid, spacing in multiples of 8; 24-column grid; 1440px design canvas.
  • Tokens: Seed (colorPrimary, borderRadius: 6, fontSize: 14, sizeUnit: 4…) → Map → Alias; three algorithms: defaultAlgorithm, darkAlgorithm, compactAlgorithm (combinable).

Files in this skill

PathRead it when you need…
references/design-values-principles.mdThe 4 values + 10 principles in depth, each mapped to the design-science/psychology law it expresses.
references/visual-language.mdExact visual specs: color system & palettes, typography scale, 8px layout & 24-grid, icons, motion, shadow/elevation, radius, dark mode.
references/design-tokens.mdThe v5 token architecture (seed/map/alias), the three algorithms, and how to theme via ConfigProvider + theme (with code).
references/psychology-design-science.mdThe "why" toolbox: Gestalt, CRAP, ~15 UX laws, Norman's principles, cognitive-load theory, color & contrast science — with how each maps to antd.
references/comparison.mdAnt Design vs Material Design, Apple HIG, Fluent, Carbon, and Chinese peers (Arco / TDesign / Semi / Element Plus) — philosophy, visuals, and a decision guide.
assets/review-checklist.mdA practical UI audit checklist: rule → principle → psychological reason, for design reviews.
assets/theme.example.tsA ready ConfigProvider theme (brand color, light/dark/compact, component tokens) to copy.

Working rule

When you state an antd rule, always give its reason — the Gestalt/CRAP/UX-law/Norman/cognitive principle behind it. "Antd uses 8px spacing" is trivia; "antd uses an 8px rhythm because consistent spacing leverages the Gestalt law of common region/proximity to group related controls and lowers extraneous cognitive load" is the assistant's value. That pairing is the whole point of this skill.

相关技能

生成并验证 UI 设计交付物:可交互 preview.html、annotated.html、tokens.css、spec.json 与 assumptions.log。支持文字、截图、Sketch、Figma 输入,以及 mobile-h5/web-pc 平台;按需加载 universal、内置或用户导入的...

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my si...

4 次安装

用可量化的层级、间距、字号、配色与版式规则,绘制并诊断视觉作品。

作者 Iván138 次安装6 星标

Query a brand's DESIGN.md (a plain-text design-system format) and present the spec — color palette, typography, components, layout principles, do's and don'ts — back to the user or to another AI agent. Use when the user asks about a product's design style, colors, fonts, or UI conventions, wants a p

中文UI/UX设计智能 — 50种风格、161个配色方案、57组字体搭配、22种技术栈。适用于中文互联网产品的设计系统生成、组件规范、交互指导。支持电商/教育/金融/SaaS/政府等本土化场景。

2 次安装

Build dashboard and admin-UI slides in Slidev using ant-design-vue (the Vue 3 implementation of Ant Design). Use when creating Slidev presentations that need dashboards

1 次安装