AgentSkillsCN

fct-web-ui-ux

面向 Web 和移动端,覆盖 13 种主流技术栈(React、Next.js、Vue、Svelte、Tailwind、shadcn/ui 等),提供全方位的 UI/UX 设计智能。适用于为网站、仪表板、应用构建、设计、评审或优化 UI/UX 时使用。涵盖风格、调色板、字体、无障碍性、动画效果、布局设计等多个维度。

SKILL.md
--- frontmatter
name: fct-web-ui-ux
description: UI/UX design intelligence for web and mobile across 13 stacks (React, Next.js, Vue, Svelte, Tailwind, shadcn/ui, etc.). Use when building, designing, reviewing, or optimizing UI/UX for websites, dashboards, apps. Covers styles, palettes, fonts, accessibility, animation, layout.

UI/UX Design Intelligence

Searchable database of UI styles, color palettes, font pairings, and UX guidelines. Generates complete design systems with reasoning.

Priority Rules

PriorityCategoryImpact
1AccessibilityCRITICAL
2Touch & InteractionCRITICAL
3PerformanceHIGH
4Layout & ResponsiveHIGH
5Typography & ColorMEDIUM
6AnimationMEDIUM
7Style SelectionMEDIUM
8Charts & DataLOW

Quick Reference

Accessibility (CRITICAL)

  • color-contrast - Minimum 4.5:1 ratio for text
  • focus-states - Visible focus rings on interactive elements
  • alt-text - Descriptive alt text for images
  • aria-labels - aria-label for icon-only buttons
  • keyboard-nav - Tab order matches visual order

Touch & Interaction (CRITICAL)

  • touch-target-size - Minimum 44x44px touch targets
  • loading-buttons - Disable button during async operations
  • cursor-pointer - Add cursor-pointer to clickable elements

Performance (HIGH)

  • image-optimization - Use WebP, srcset, lazy loading
  • reduced-motion - Check prefers-reduced-motion

Layout & Responsive (HIGH)

  • readable-font-size - Minimum 16px body text on mobile
  • z-index-management - Define z-index scale (10, 20, 30, 50)

Workflow

Step 1: Analyze Request

Extract from user request:

  • Product type: SaaS, e-commerce, portfolio, dashboard, landing page
  • Style keywords: minimal, playful, professional, elegant, dark mode
  • Industry: healthcare, fintech, gaming, education
  • Stack: React, Vue, Next.js, or default to html-tailwind

Step 2: Generate Design System (REQUIRED)

bash
uv run scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]

Returns: pattern, style, colors, typography, effects, anti-patterns.

Example:

bash
uv run scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"

Step 2b: Persist Design System (Optional)

Save for hierarchical retrieval across sessions:

bash
uv run scripts/search.py "<query>" --design-system --persist -p "Project Name"

Creates:

  • design-system/MASTER.md — Global Source of Truth
  • design-system/pages/ — Page-specific overrides

With page override:

bash
uv run scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"

Step 3: Detailed Searches (as needed)

bash
uv run scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
NeedDomainExample
More style optionsstyle--domain style "glassmorphism dark"
Chart recommendationschart--domain chart "real-time dashboard"
UX best practicesux--domain ux "animation accessibility"
Alternative fontstypography--domain typography "elegant luxury"
Landing structurelanding--domain landing "hero social-proof"

Step 4: Stack Guidelines

bash
uv run scripts/search.py "<keyword>" --stack html-tailwind

Stacks: html-tailwind (default), react, nextjs, astro, vue, nuxtjs, nuxt-ui, svelte, swiftui, react-native, flutter, shadcn, jetpack-compose


Search Reference

Domains

DomainUse For
productProduct type recommendations
styleUI styles, colors, effects
typographyFont pairings, Google Fonts
colorColor palettes by product type
landingPage structure, CTA strategies
chartChart types, library recommendations
uxBest practices, anti-patterns
reactReact/Next.js performance
webWeb interface guidelines

Common Rules

Icons & Visual Elements

RuleDoDon't
No emoji iconsUse SVG (Heroicons, Lucide)Use emojis as UI icons
Stable hover statesUse color/opacity transitionsUse scale transforms
Consistent sizingFixed viewBox (24x24) w-6 h-6Mix icon sizes

Interaction & Cursor

RuleDoDon't
Cursor pointerAdd cursor-pointer to clickable elementsLeave default cursor
Hover feedbackVisual feedback (color, shadow)No indication of interactivity
Smooth transitionstransition-colors duration-200Instant or >500ms

Light/Dark Mode Contrast

RuleDoDon't
Glass card light modebg-white/80 or higherbg-white/10
Text contrast light#0F172A (slate-900)#94A3B8 (slate-400)
Border visibilityborder-gray-200 light modeborder-white/10

Layout & Spacing

RuleDoDon't
Floating navbartop-4 left-4 right-4 spacingtop-0 left-0 right-0
Content paddingAccount for fixed navbarContent behind fixed elements
Consistent max-widthSame max-w-6xl or max-w-7xlMix container widths

Pre-Delivery Checklist

Visual Quality

  • No emojis as icons (use SVG)
  • Consistent icon set (Heroicons/Lucide)
  • Hover states don't cause layout shift
  • Use theme colors directly (bg-primary)

Interaction

  • All clickable elements have cursor-pointer
  • Transitions 150-300ms
  • Focus states visible

Light/Dark Mode

  • Light mode text contrast 4.5:1 minimum
  • Glass elements visible in light mode
  • Borders visible in both modes

Layout

  • Responsive at 375px, 768px, 1024px, 1440px
  • No horizontal scroll on mobile
  • No content behind fixed elements

Accessibility

  • All images have alt text
  • Form inputs have labels
  • prefers-reduced-motion respected