✓ Verified
💻 Development
✓ Enhanced Data
Ant Design Skill
Front-end design skill for building React UIs with Ant Design (antd): component patterns, layout, fo
- Rating
- 4.2 (479 reviews)
- Downloads
- 15,537 downloads
- Version
- 1.0.0
Overview
Front-end design skill for building React UIs with Ant Design (antd): component patterns, layout, forms, tables.
Complete Documentation
View Source →
Ant Design (React) — Practical Front-end Design Skill
Use this skill when you are building a React UI with Ant Design (antd) and want consistent, non-ugly screens fast.
When to use
- The project uses React + Ant Design
- You need to design/implement pages with: Layout, Menu, Form, Table, Modal, Drawer, Steps, Tabs, Pagination
- You need to implement theme tokens (colors, radius, typography, spacing)
- You want predictable UI patterns (CRUD screens, dashboards, settings pages)
Default workflow (do this order)
1) Confirm stack: React + antd version (v5+ assumed). 2) Choose page pattern:- CRUD list (Table) + filters (Form) + actions (Modal/Drawer)
- Wizard (Steps)
- Settings (Form + Cards)
- Dashboard (Grid + Cards + Charts)
Layout+Sider+Header+Content- Navigation with
Menu
- Forms:
Form,Form.Item,Input,Select,DatePicker,Switch - Tables:
Table+ column definitions + row actions
message,notification,Modal.confirm
ConfigProvider (global) and component-level overrides.
7) Verify:
- Empty states
- Loading states
- Error states
- Mobile responsiveness (at least: 360px layout sanity)
Component patterns (copy/paste mental models)
Layout
- Use
LayoutwithSider(collapsible),Headerfor top actions,Contentscroll. - Put page title + primary CTA in a
Flex(orSpace) row.
Forms
- Keep forms vertical; align labels consistently.
- Use
Form+Form.Itemrules for validation; avoid custom validation unless necessary. - Use
Form.useForm()andform.setFieldsValue()for edit flows.
Tables (CRUD)
- Columns:
- left: identifier/name
- middle: important attributes
- right: actions (Edit/Delete)
- Use
rowKeyalways. - Use server-side pagination for real apps.
Modals/Drawers
- Modal for short forms.
- Drawer for longer forms or when you want context kept.
Theming / Tokens (AntD v5)
Ant Design v5 uses Design Tokens and CSS-in-JS.Global theme
Wrap your app inConfigProvider:tsx
import { ConfigProvider, theme } from 'antd';
export function AppProviders({ children }: { children: React.ReactNode }) {
return (
<ConfigProvider
theme={{
algorithm: theme.defaultAlgorithm,
token: {
colorPrimary: '#1677ff',
borderRadius: 10,
fontSize: 14,
},
components: {
Button: { controlHeight: 40 },
Layout: { headerBg: '#ffffff' },
},
}}
>
{children}
</ConfigProvider>
);
}
Dark mode
Usetheme.darkAlgorithm and keep tokens consistent:tsx
const isDark = true;
<ConfigProvider
theme={{
algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
token: { colorPrimary: '#7c3aed' },
}}
/>
Component-level overrides
Usecomponents. for specific tweaks (Button, Input, Table, etc.).References
- Read README.md for the full “how-to” (setup + patterns + examples).
- Use
protocols/when you want LLM-first contracts (describe UIs as data, then generate code deterministically). - Read
references/tokens.mdfor a tokens cookbook. - Read
references/components.mdfor practical page recipes (CRUD, Settings, Wizard). - Use
examples/when you want ready-to-copy AntD screens. - Use
starter/when you need a runnable Vite + React + AntD skeleton.
Guardrails
- Assume Ant Design v5+ (tokens). If project is v4 (Less variables), stop and ask.
- Prefer built-in components and patterns over custom CSS.
- Avoid over-theming: set a small set of tokens and only override components when needed.
Installation
Terminal bash
openclaw install ant-design-skill
Copied!
💻Code Examples
}
.txt
### Dark mode
Use `theme.darkAlgorithm` and keep tokens consistent:example.txt
import { ConfigProvider, theme } from 'antd';
export function AppProviders({ children }: { children: React.ReactNode }) {
return (
<ConfigProvider
theme={{
algorithm: theme.defaultAlgorithm,
token: {
colorPrimary: '#1677ff',
borderRadius: 10,
fontSize: 14,
},
components: {
Button: { controlHeight: 40 },
Layout: { headerBg: '#ffffff' },
},
}}
>
{children}
</ConfigProvider>
);
}example.txt
const isDark = true;
<ConfigProvider
theme={{
algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
token: { colorPrimary: '#7c3aed' },
}}
/>Tags
#web_and-frontend-development
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author felipeoff
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install ant-design-skill
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0