Front-end design skill for building React UIs with Ant Design (antd): component patterns, layout, forms, tables, and theming/tokens via ConfigProvider. Use when this capability is needed.
Use this skill when you are building a React UI with Ant Design (antd) and want consistent, non-ugly screens fast.
Layout + Sider + Header + ContentMenuForm, Form.Item, Input, Select, DatePicker, SwitchTable + column definitions + row actionsmessage, notification, Modal.confirmConfigProvider (global) and component-level overrides.Layout with Sider (collapsible), Header for top actions, Content scroll.Flex (or Space) row.Form + Form.Item rules for validation; avoid custom validation unless necessary.Form.useForm() and form.setFieldsValue() for edit flows.rowKey always.Ant Design v5 uses Design Tokens and CSS-in-JS.
Wrap your app in ConfigProvider:
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>
);
}
Use theme.darkAlgorithm and keep tokens consistent:
const isDark = true;
<ConfigProvider
theme={{
algorithm: isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,
token: { colorPrimary: '#7c3aed' },
}}
/>
Use components.<ComponentName> for specific tweaks (Button, Input, Table, etc.).
protocols/ when you want LLM-first contracts (describe UIs as data, then generate code deterministically).references/tokens.md for a tokens cookbook.references/components.md for practical page recipes (CRUD, Settings, Wizard).examples/ when you want ready-to-copy AntD screens.starter/ when you need a runnable Vite + React + AntD skeleton.Converted and distributed by TomeVault | Claim this content