Skip to content
ant-design logo

Ant Design

ant-design

Ant Design 6.x guidance for selecting components, theming/tokens, css-in-js/SSR setup, and resolving antd component behavior in React/Next.js/Umi/Vite apps. Use when building or reviewing UI with antd, configuring ConfigProvider/theme, or troubleshooting Ant Design UI/SSR/performance issues.

NeverSight/skills_feed0installs214starsOther

SKILL.md

Full skill instructions

Ant Design

S - Scope

  • Target: antd@^6 with React 18-19 (per official docs).
  • Cover: core components, theming/​tokens, css-in-js, SSR, a11y, and performance patterns.
  • Avoid: Pro routing/​layout and ProComponents (use ant-design-pro skill).
  • Avoid: AI chat/​copilot UI (use ant-design-x skill).

Reference index (Chinese)

TopicDescriptionReference
Core v6Version scope, migration notes, theming/​SSR overviewreferences/​antd-v6.md
Legacy v5Existing v5 projects and migration guardrailsreferences/​antd-v5.md
Form advancedDynamic forms, dependencies, validation perfreferences/​form-advanced.md
Table advancedSorting/​filtering/​virtualization patternsreferences/​table-advanced.md
Upload advancedControlled upload, customRequest, edge casesreferences/​upload-advanced.md
Select advancedRemote search, tags, rendering and a11yreferences/​select-advanced.md
Tree advancedAsync load, checkStrictly, virtualreferences/​tree-advanced.md

P - Process

  1. Identify app context: product type, rendering mode (CSR/​SSR/​streaming), theming depth, data scale.
  2. Set providers: single ConfigProvider at app root; add StyleProvider when SSR or strict style ordering is required.
  3. Choose component patterns: Form as source of truth; stable rowKey for Table; destroyOnClose for stateful Modal/​Drawer.
  4. Plan theming: global tokens -> component tokens -> alias tokens; avoid global .ant-* overrides.
  5. When complexity appears, open the matching Reference file from the index above.
  6. Validate a11y/​perf: keyboard/​focus, virtualization, memoized columns, throttled updates.

O - Output

  • Recommend components and layout primitives with short rationale.
  • Provide token/​theming strategy and the minimal provider setup needed.
  • Call out SSR, perf, and a11y risks plus concrete mitigations.
  • Include a short checklist for acceptance or regression testing.