设计与多媒体

custom-ui-spec

试用

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.

它能做什么

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.

技能文档

Custom UI Spec

Overview

This skill provides strict definitions for the three major design specifications — Apple HIG, Microsoft Fluent, and Google Material Design — to guide highly customizable UI implementations based on headless component libraries like shadcn/ui and Radix UI.

Unlike scenarios using off-the-shelf UI frameworks (e.g., TDesign), this skill is for projects that require full control over component anatomy and styling, emphasizing design freedom, brand customization, and cross-platform design consistency.

Specification Selection Decision Tree

Dimension A: Target Platform (default recommendation)

PlatformRecommended SpecRationale
iOS / iPadOS / macOS / watchOS / tvOSHIGNative Apple ecosystem experience
Windows / XboxFluentNative Microsoft ecosystem experience
Android / Web / FlutterMaterialNative Google ecosystem experience
Cross-platform / UnsureAsk about design tone preferenceSee Dimension B

Dimension B: Design Tone Preference (when platform is unclear)

Design ToneRecommended SpecTypical Scenarios
Refined, native, restrained, layeredHIGUtility apps, productivity software, Apple ecosystem products
Productive, professional, deep, luminousFluentEnterprise software, office suites, Windows ecosystem products
Bold, graphical, tactile, dynamicMaterialConsumer apps, creative products, Google ecosystem products

Decision Flow:

User specified a spec explicitly?
├── Yes → Use the specified spec directly
└── No → User specified a target platform?
    ├── Yes → Recommend per Dimension A
    └── No → Ask about design tone preference (Dimension B)
        └── User chooses "All" → Comprehensive cross-check (flag cross-spec conflicts)

Usage Modes

Generation Mode

Before generating UI code:

  1. Determine the target spec using the decision tree
  2. Read the corresponding references/.md for the complete specification
  3. Implement compliant styles using headless components like shadcn/ui
  4. Run scripts/validate_ui.py for automated validation
  5. Self-check against references/checklist.md item by item
  6. Output the validation report

Review Mode

When reviewing existing UI code/design:

  1. Determine the target spec based on code characteristics or user input
  2. Run scripts/validate_ui.py for automated static analysis
  3. Cross-check against references/checklist.md item by item
  4. Output the validation report (Pass / Warning / Error)

Validation Flow

Three-step validation:

  1. Automated check: Run scripts/validate_ui.py --spec --file or --text
  2. Manual self-check: Agent cross-checks against references/checklist.md item by item
  3. Report output: Combine automated results and manual review into a structured validation report

Color checks are skipped by default. Add --check-color to enable them.

Component Mapping Quick Reference

Unified NameHIGFluentMaterial
ButtonButtonButtonButton
TextFieldText FieldInputText Field
CheckboxCheckboxCheckboxCheckbox
RadioButtonRadio ButtonRadioRadio Button
SwitchToggleSwitchSwitch
SliderSliderSliderSlider
ProgressIndicatorProgress ViewProgress BarProgress Indicator
MenuMenuMenuMenu
DialogAlert / SheetDialogDialog
CardCardCard
ListListListList
NavigationBarNavigation BarNavigationApp Bar / Bottom App Bar
TabBarTab BarTabTabs
SegmentedControlSegmented Control
TooltipTooltipTooltipTooltip
BadgeBadgeBadgeBadge
ChipTagChip
DatePickerDate PickerDate PickerDate Picker
TableTableData GridData Table
BreadcrumbBreadcrumb
SelectPop-up ButtonDropdownExposed Dropdown Menu
Autocomplete— (inferred)Combobox— (inferred)
TextareaMultiline Text FieldTextareaText Field (multiline)
NumberInputStepper + FieldSpinButton— (inferred)
Upload— (inferred)— (inferred)— (inferred)
Toast— (inferred)ToastSnackbar
Notification— (inferred)— (inferred)— (inferred)
Alert·Banner— (inferred)MessageBarBanner
Skeleton— (inferred)Skeleton— (inferred)
Drawer·SidebarSidebarNavigationViewNavigation Drawer
Pagination— (inferred)— (inferred)— (inferred)
Stepper— (inferred)— (inferred)Stepper
Sheet·ActionSheetAction Sheet— (inferred)Bottom Sheet
Avatar— (inferred)Avatar / PersonaAvatar
AccordionDisclosureAccordion— (inferred)
CarouselPage ControlCarouselCarousel
Timeline— (inferred)— (inferred)— (inferred)
TreeOutline ViewTreeView— (inferred)
DividerSeparatorDividerDivider
Grid·Layout— (inferred)— (inferred)Grid
Space·Stack— (inferred)Stack— (inferred)
AspectRatio— (inferred)— (inferred)— (inferred)
PopoverPopoverPopover— (inferred)
ModalModal SheetModal DialogFull-screen Dialog
FAB— (inferred)— (inferred)FAB
SearchBarSearch FieldSearchBoxSearch Bar
Rating— (inferred)Rating— (inferred)
ColorPickerColor WellColorPicker— (inferred)
CalendarCalendar ViewCalendarDate Calendar

See references/component-specs.md for detailed definitions.

Resource Reference

FileWhen to Read
references/apple-hig.mdWhen HIG spec is selected
references/microsoft-fluent.mdWhen Fluent spec is selected
references/google-material.mdWhen Material spec is selected
references/component-specs.mdWhen detailed component definitions or cross-spec comparison is needed
references/interaction-guidelines.mdWhen user interaction behavior specs (navigation/gestures/feedback/confirmation/undo) are needed
references/checklist.mdWhen performing manual self-checks
scripts/validate_ui.pyWhen running automated validation

相关技能

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.

Use this skill whenever the user wants to build, refine, or review a production-grade user interface with Tailwind CSS v4 and shadcn/ui. Triggers include: building a landing page, dashboard, auth flow, admin panel, marketing site, SaaS UI, or any React/Next.js component or page.

2 次安装

Use this skill whenever the user wants to build a production-grade UI with native/vanilla CSS — no Tailwind, no CSS-in-JS, no utility framework. Triggers include: plain Vite + HTML/CSS projects, static sites, simple landing pages, or any project explicitly avoiding a CSS framework.

1 次安装

Create distinctive, production-grade static sites with React, Tailwind CSS, and shadcn/ui — no mockups needed. Generates bold, memorable designs from plain text requirements with anti-AI-slop aesthetics, mobile-first responsive patterns, and single-file bundling. Use when building landing pages, marketing sites, portfolios, dashboards, or any static web UI. Supports both Vite (pure static) and Next.js (Vercel deploy) workflows.

8 次安装

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

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

2 次安装