A highly customizable UI design specification system based on headless component libraries (shadcn/ui, Radix UI), integrating Apple HIG, Microsoft Fluent, and Google Material Design. Unlike using off-the-shelf frameworks (Ant Design, Element Plus), this skill is for scenarios requiring full control over component styles and DOM structure, emphasizing design freedom and brand customization. Use when: generating custom UI code, reviewing custom UI designs, or needing to follow platform-specific design guidelines. Supports HIG / Fluent / Material / All specification modes. Keywords: shadcn/ui, Radix UI, headless, custom components, HIG, Fluent, Material Design.
Design & media
ui-framework-spec
Try itA UI design specification system based on off-the-shelf UI frameworks (Element Plus, Ant Design, Arco Design, TDesign, Semi Design). Suitable for projects using framework-built-in components, as opposed to headless component libraries (shadcn/ui, Radix UI). Use when: generating UI code with a specified framework, reviewing existing code for framework compliance, recommending between frameworks, or migrating code from one framework to another. Keywords: Element Plus, Ant Design, Arco Design, TDesign, Semi Design, framework components, Vue components, React components, framework migration, design tokens, theme variables.
What it does
A UI design specification system based on off-the-shelf UI frameworks (Element Plus, Ant Design, Arco Design, TDesign, Semi Design). Suitable for projects using framework-built-in components, as opposed to headless component libraries (shadcn/ui, Radix UI). Use when: generating UI code with a specified framework, reviewing existing code for framework compliance, recommending between frameworks, or migrating code from one framework to another. Keywords: Element Plus, Ant Design, Arco Design, TDesign, Semi Design, framework components, Vue components, React components, framework migration, design tokens, theme variables.
The skill document
UI Framework Spec
Overview
This skill provides specification references for five major UI frameworks, guiding project development based on off-the-shelf UI frameworks. Unlike custom-ui-spec (for headless customization), this skill mandates using framework-provided components and design systems — do not implement component styles outside the framework.
Supported Frameworks
| Framework | Ecosystem | Version | Design Language |
|---|---|---|---|
| Element Plus | Vue 3 | Latest | Enterprise back-office, clean and neutral |
| Ant Design | React | 5.x | Back-office, professional and stable |
| Arco Design | React | 2.x | ByteDance, modern and flexible |
| TDesign | React / Vue | Latest | Tencent, general enterprise-grade |
| Semi Design | React | 2.x | Douyin, content-immersive |
Usage Modes
Mode 1: Framework Selection Consultation
When the user has not specified a framework, read references/framework-selection.md for guidance.
Selection Flow:
- Determine target platform (Vue / React / Other)
- Determine design tone preference
- Recommend 1-2 most suitable frameworks
- Provide rationale and key differences
Mode 2: Generating UI Code
When generating UI code with a specified framework:
- Read the corresponding framework reference file (e.g.,
references/ant-design.md) - Follow the framework's component naming, Props conventions, and layout system
- Use framework-provided APIs (Form, Table, Modal, etc.) — do not re-implement them
- Follow the framework's design token / theme variable system
- For detailed framework-specific component APIs, Claude should generate based on its own knowledge without exceeding the scope of official framework documentation
- Code must import components from the official framework package (e.g.,
import { Button } from 'antd') — do not create custom substitutes
Mode 3: Reviewing UI Code
When reviewing existing code for framework compliance:
- Determine the framework version in use
- Read the corresponding framework reference file
- Check item by item: correct component usage, Props compliance, use of framework tokens for styles, adherence to the framework grid system for layout
- Report non-compliant items with suggested fixes
Mode 4: Framework Migration
When migrating code from one framework to another:
- Read the source and target framework reference files
- Establish component mapping
- Migrate Props and events (note naming differences, e.g., Ant Design's
onChangevs Element Plus's@change) - Migrate the layout system (Flex/Grid)
- Migrate the form validation system
- Output the migration plan and change list
Framework Differences Quick Reference
Component Naming Differences
| Unified Concept | Element Plus | Ant Design | Arco Design | TDesign | Semi Design |
|---|---|---|---|---|---|
| Button | ElButton | Button | Button | Button | Button |
| Input | ElInput | Input | Input | Input | Input |
| Table | ElTable | Table | Table | Table | Table |
| Form | ElForm | Form | Form | Form | Form |
| Dialog | ElDialog | Modal | Modal | Dialog | Modal |
| Toast Message | ElMessage | message | Message | Message | Toast |
| Tabs | ElTabs | Tabs | Tabs | Tabs | Tab |
| Select | ElSelect | Select | Select | Select | Select |
| DatePicker | ElDatePicker | DatePicker | DatePicker | DatePicker | DatePicker |
| Tree | ElTree | Tree | Tree | Tree | Tree |
Design Token / Theme Variable Systems
| Framework | Theming Mechanism | Variable Format |
|---|---|---|
| Element Plus | CSS Variables + SCSS | --el-color-primary |
| Ant Design | Design Token (CSS-in-JS) | colorPrimary, borderRadius |
| Arco Design | CSS Variables | --color-primary-6 |
| TDesign | CSS Variables + Less | --td-primary-color |
| Semi Design | CSS Variables + Design Token | --semi-color-primary |
Layout Systems
| Framework | Layout Approach |
|---|---|
| Element Plus | ElContainer + ElRow/ElCol (24-column grid) |
| Ant Design | Layout + Row/Col (24-column grid) + Flex |
| Arco Design | Layout + Grid (24-column grid) + Grid.Row/Grid.Col |
| TDesign | Layout + Row/Col (24-column grid) |
| Semi Design | Layout + Row/Col (24-column grid) |
General Principles
- Prefer framework-built-in components — do not re-implement standard components
- Follow the framework theming mechanism — do not hardcode color values
- Use the framework layout system — do not mix multiple layout approaches
- Use the framework icon library — do not mix in external icon libraries
- Do not modify framework component DOM structures — customize via Props or ConfigProvider
- Lock the version — specify the framework version in use and reference the corresponding documentation
Resource Reference
| File | When to Read |
|---|---|
references/framework-selection.md | When the user has not specified a framework and needs a recommendation |
references/element-plus.md | When using Element Plus (Vue) |
references/ant-design.md | When using Ant Design (React) |
references/arco-design.md | When using Arco Design (React) |
references/tdesign.md | When using TDesign (React/Vue) |
references/semi-design.md | When using Semi Design (React) |
For detailed framework API references and component documentation, Claude should generate based on its own knowledge or use WebSearch to fetch the latest official documentation. The reference files only cover core design philosophies, specification highlights, and key differences.
Related skills
UI 视觉设计系统——配色主题(10预设+自定义生成)+ 美学变体(soft/minimalist/brutalist)+ 协同选择流程
面向设计团队和企业项目的专业级UI/UX设计决策引擎,涵盖全部10个设计域、 10种技术栈、设计系统持久化、页面级覆盖、批量搜索等高级能力。核心能力: - 全部10个设计域搜索(product/style/typography/color/landing/chart/ux/react/web/prompt) - 10种技术栈实现指引(html-tailwind/react/nextjs/vue/svelte/swiftui/react-native/flutter/shadcn/jetpack-compose) - 设计系统持久化:...
当用户给出一个产品或界面设计想法时,自动按标准模版范式将其优化为结构清晰、细节完备的设计描述。适用于小程序、App、网页、H5 等任何界面类产品设计任务。
生成并验证 UI 设计交付物:可交互 preview.html、annotated.html、tokens.css、spec.json 与 assumptions.log。支持文字、截图、Sketch、Figma 输入,以及 mobile-h5/web-pc 平台;按需加载 universal、内置或用户导入的...
Crawl and analyze a website's visual design system from a given URL, identifying design style, color system, typography, component styles, and UI patterns.