Design & media

ui-framework-spec

Try it

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.

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

FrameworkEcosystemVersionDesign Language
Element PlusVue 3LatestEnterprise back-office, clean and neutral
Ant DesignReact5.xBack-office, professional and stable
Arco DesignReact2.xByteDance, modern and flexible
TDesignReact / VueLatestTencent, general enterprise-grade
Semi DesignReact2.xDouyin, 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:

  1. Determine target platform (Vue / React / Other)
  2. Determine design tone preference
  3. Recommend 1-2 most suitable frameworks
  4. Provide rationale and key differences

Mode 2: Generating UI Code

When generating UI code with a specified framework:

  1. Read the corresponding framework reference file (e.g., references/ant-design.md)
  2. Follow the framework's component naming, Props conventions, and layout system
  3. Use framework-provided APIs (Form, Table, Modal, etc.) — do not re-implement them
  4. Follow the framework's design token / theme variable system
  5. For detailed framework-specific component APIs, Claude should generate based on its own knowledge without exceeding the scope of official framework documentation
  6. 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:

  1. Determine the framework version in use
  2. Read the corresponding framework reference file
  3. Check item by item: correct component usage, Props compliance, use of framework tokens for styles, adherence to the framework grid system for layout
  4. Report non-compliant items with suggested fixes

Mode 4: Framework Migration

When migrating code from one framework to another:

  1. Read the source and target framework reference files
  2. Establish component mapping
  3. Migrate Props and events (note naming differences, e.g., Ant Design's onChange vs Element Plus's @change)
  4. Migrate the layout system (Flex/Grid)
  5. Migrate the form validation system
  6. Output the migration plan and change list

Framework Differences Quick Reference

Component Naming Differences

Unified ConceptElement PlusAnt DesignArco DesignTDesignSemi Design
ButtonElButtonButtonButtonButtonButton
InputElInputInputInputInputInput
TableElTableTableTableTableTable
FormElFormFormFormFormForm
DialogElDialogModalModalDialogModal
Toast MessageElMessagemessageMessageMessageToast
TabsElTabsTabsTabsTabsTab
SelectElSelectSelectSelectSelectSelect
DatePickerElDatePickerDatePickerDatePickerDatePickerDatePicker
TreeElTreeTreeTreeTreeTree

Design Token / Theme Variable Systems

FrameworkTheming MechanismVariable Format
Element PlusCSS Variables + SCSS--el-color-primary
Ant DesignDesign Token (CSS-in-JS)colorPrimary, borderRadius
Arco DesignCSS Variables--color-primary-6
TDesignCSS Variables + Less--td-primary-color
Semi DesignCSS Variables + Design Token--semi-color-primary

Layout Systems

FrameworkLayout Approach
Element PlusElContainer + ElRow/ElCol (24-column grid)
Ant DesignLayout + Row/Col (24-column grid) + Flex
Arco DesignLayout + Grid (24-column grid) + Grid.Row/Grid.Col
TDesignLayout + Row/Col (24-column grid)
Semi DesignLayout + Row/Col (24-column grid)

General Principles

  1. Prefer framework-built-in components — do not re-implement standard components
  2. Follow the framework theming mechanism — do not hardcode color values
  3. Use the framework layout system — do not mix multiple layout approaches
  4. Use the framework icon library — do not mix in external icon libraries
  5. Do not modify framework component DOM structures — customize via Props or ConfigProvider
  6. Lock the version — specify the framework version in use and reference the corresponding documentation

Resource Reference

FileWhen to Read
references/framework-selection.mdWhen the user has not specified a framework and needs a recommendation
references/element-plus.mdWhen using Element Plus (Vue)
references/ant-design.mdWhen using Ant Design (React)
references/arco-design.mdWhen using Arco Design (React)
references/tdesign.mdWhen using TDesign (React/Vue)
references/semi-design.mdWhen 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

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.

UI 视觉设计系统——配色主题(10预设+自定义生成)+ 美学变体(soft/minimalist/brutalist)+ 协同选择流程

2 installs

面向设计团队和企业项目的专业级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) - 设计系统持久化:...

1 installs

当用户给出一个产品或界面设计想法时,自动按标准模版范式将其优化为结构清晰、细节完备的设计描述。适用于小程序、App、网页、H5 等任何界面类产品设计任务。

1 installs

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