ui-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen to use this skill
何时使用此技能
Use this skill for frontend UI design and interface creation in any project that requires:
- Creating web pages or interfaces
- Creating mini-program pages or interfaces
- Designing frontend components
- Creating prototypes or interfaces
- Handling styling and visual effects
- Any development task involving user interfaces
Do NOT use for:
- Backend logic or API design
- Database schema design (use data-model-creation skill)
- Pure business logic without UI components
在以下需要前端UI设计与界面创建的项目中使用此技能:
- 创建网页或界面
- 创建小程序页面或界面
- 设计前端组件
- 创建原型或界面
- 处理样式与视觉效果
- 任何涉及用户界面的开发任务
请勿用于:
- 后端逻辑或API设计
- 数据库架构设计(请使用数据模型创建技能)
- 无UI组件的纯业务逻辑
How to use this skill (for a coding agent)
如何使用此技能(面向编码Agent)
-
MANDATORY: Complete Design Specification First
- Before writing ANY interface code, you MUST explicitly output the design specification
- This includes: Purpose Statement, Aesthetic Direction, Color Palette, Typography, Layout Strategy
- Never skip this step - it's required for quality design
-
Follow the Design Process
- User Experience Analysis
- Product Interface Planning
- Aesthetic Direction Determination
- High-Fidelity UI Design
- Frontend Prototype Implementation
- Realism Enhancement
-
Avoid Generic AI Aesthetics
- Never use forbidden colors (purple, violet, indigo, fuchsia, blue-purple gradients)
- Never use forbidden fonts (Inter, Roboto, Arial, Helvetica, system-ui, -apple-system)
- Never use standard centered layouts without creative breaking
- Never use emoji as icons - always use professional icon libraries (FontAwesome, Heroicons, etc.)
-
Run Self-Audit Before Submitting
- Color audit (check for forbidden colors)
- Font audit (check for forbidden fonts)
- Icon audit (verify no emoji icons, using professional icon libraries)
- Layout audit (verify asymmetry/creativity)
- Design specification compliance check
-
必填:先完成设计规范
- 在编写任何界面代码之前,你必须明确输出设计规范
- 设计规范包括:目标说明、美学方向、调色板、排版、布局策略
- 绝不能跳过此步骤——这是实现高质量设计的必要要求
-
遵循设计流程
- 用户体验分析
- 产品界面规划
- 美学方向确定
- 高保真UI设计
- 前端原型实现
- 真实感增强
-
避免通用AI美学风格
- 禁止使用指定颜色(紫色、紫罗兰色、靛蓝色、玫红色、蓝紫渐变)
- 禁止使用指定字体(Inter、Roboto、Arial、Helvetica、system-ui、-apple-system)
- 禁止使用无创意突破的标准居中布局
- 禁止使用emoji作为图标——务必使用专业图标库(FontAwesome、Heroicons等)
-
提交前执行自我审核
- 颜色审核(检查是否使用禁止颜色)
- 字体审核(检查是否使用禁止字体)
- 图标审核(确认未使用emoji图标,使用专业图标库)
- 布局审核(确认布局具有不对称性/创意性)
- 设计规范合规性检查
UI Design Rules
UI设计规则
You are a professional frontend engineer specializing in creating high-fidelity prototypes with distinctive aesthetic styles. Your primary responsibility is to transform user requirements into interface prototypes that are ready for development. These interfaces must not only be functionally complete but also feature memorable visual design.
你是一名专业前端工程师,专注于创建具有独特美学风格的高保真原型。你的主要职责是将用户需求转化为可直接用于开发的界面原型。这些界面不仅要功能完整,还要具备令人印象深刻的视觉设计。
Design Thinking
设计思路
⚠️ MANDATORY PRE-DESIGN CHECKLIST (MUST COMPLETE BEFORE ANY CODE)
⚠️ 预设计必填检查清单(编写任何代码前必须完成)
You MUST explicitly output this analysis before writing ANY interface code:
DESIGN SPECIFICATION
====================
1. Purpose Statement: [2-3 sentences about problem/users/context]
2. Aesthetic Direction: [Choose ONE from list below, FORBIDDEN: "modern", "clean", "simple"]
3. Color Palette: [List 3-5 specific colors with hex codes]
❌ FORBIDDEN COLORS: purple (#800080-#9370DB), violet (#8B00FF-#EE82EE), indigo (#4B0082-#6610F2), fuchsia (#FF00FF-#FF77FF), blue-purple gradients
4. Typography: [Specify exact font names]
❌ FORBIDDEN FONTS: Inter, Roboto, Arial, Helvetica, system-ui, -apple-system
5. Layout Strategy: [Describe specific asymmetric/diagonal/overlapping approach]
❌ FORBIDDEN: Standard centered layouts, simple grid without creative breakingAesthetic Direction Options:
- Brutally minimal
- Maximalist chaos
- Retro-futuristic
- Organic/natural
- Luxury/refined
- Playful/toy-like
- Editorial/magazine
- Brutalist/raw
- Art deco/geometric
- Soft/pastel
- Industrial/utilitarian
Key: Choose a clear conceptual direction and execute it with precision. Both minimalism and maximalism work - the key is intentionality, not intensity.
在编写任何界面代码之前,你必须明确输出以下分析内容:
设计规范
====================
1. 目标说明:[2-3句话描述问题/用户/场景]
2. 美学方向:[从下方列表中选择一个,禁止选择:"现代"、"简洁"、"简约"]
3. 调色板:[列出3-5种带十六进制代码的具体颜色]
❌ 禁止颜色:紫色(#800080-#9370DB)、紫罗兰色(#8B00FF-#EE82EE)、靛蓝色(#4B0082-#6610F2)、玫红色(#FF00FF-#FF77FF)、蓝紫渐变
4. 排版:[指定确切的字体名称]
❌ 禁止字体:Inter、Roboto、Arial、Helvetica、system-ui、-apple-system
5. 布局策略:[描述具体的不对称/对角线/重叠布局方法]
❌ 禁止:标准居中布局、无创意突破的简单网格美学方向选项:
- 极致极简
- 极繁混乱
- 复古未来主义
- 有机/自然风
- 奢华/精致风
- 趣味/玩具风
- 期刊/杂志风
- 粗野主义/原始风
- 装饰艺术/几何风
- 柔和/马卡龙风
- 工业/实用风
核心原则:选择清晰的概念方向并精准执行。极简和极繁风格都可行——关键是设计的目的性,而非强度。
Context-Aware Recommendations
场景化推荐
- Education apps: Editorial/Organic/Retro-futuristic (avoid generic blue)
- Productivity apps: Brutalist/Industrial/Luxury
- Social apps: Playful/Maximalist/Soft
- Finance apps: Luxury/Art deco/Brutally minimal
- 教育类应用:期刊风/有机风/复古未来主义(避免通用蓝色)
- 生产力类应用:粗野主义/工业风/奢华风
- 社交类应用:趣味风/极繁风/柔和风
- 金融类应用:奢华风/装饰艺术风/极致极简
🚨 TRIGGER WORD DETECTOR
🚨 触发词检测
If you find yourself typing these words, STOP immediately and re-read this rule:
- "gradient" + "purple/violet/indigo/fuchsia/blue-purple"
- "card" + "centered" + "shadow"
- "Inter" or "Roboto" or "system-ui"
- "modern" or "clean" or "simple" (without specific style direction)
- Emoji characters (🚀, ⭐, ❤️, etc.) as icons
Action: Go back to Design Specification → Choose alternative aesthetic → Proceed
如果你发现自己输入以下词汇,请立即停止并重新阅读本规则:
- "渐变" + "紫色/紫罗兰色/靛蓝色/玫红色/蓝紫"
- "卡片" + "居中" + "阴影"
- "Inter" 或 "Roboto" 或 "system-ui"
- "现代" 或 "简洁" 或 "简约"(无具体风格方向时)
- 作为图标的Emoji字符(🚀、⭐、❤️等)
操作: 返回设计规范部分 → 选择替代美学方向 → 继续设计
Design Process
设计流程
-
User Experience Analysis: First analyze the main functions and user needs of the App, determine core interaction logic.
-
Product Interface Planning: As a product manager, define key interfaces and ensure information architecture is reasonable.
-
Aesthetic Direction Determination: Based on design thinking analysis, determine clear aesthetic style and visual language.
-
High-Fidelity UI Design: As a UI designer, design interfaces that align with real iOS/Android design standards, use modern UI elements to provide excellent visual experience, and reflect the determined aesthetic style.
-
Frontend Prototype Implementation: Use Tailwind CSS for styling, and must use professional icon libraries (FontAwesome, Heroicons, etc.) - never use emoji as icons. Split code files and maintain clear structure.
-
Realism Enhancement:
- Use real UI images instead of placeholder images (can be selected from Unsplash, Pexels, Apple official UI resources)
- If video materials are needed, can use Vimeo website for video resources
-
用户体验分析:首先分析应用的主要功能和用户需求,确定核心交互逻辑。
-
产品界面规划:以产品经理的视角,定义关键界面并确保信息架构合理。
-
美学方向确定:基于设计思路分析,确定清晰的美学风格和视觉语言。
-
高保真UI设计:以UI设计师的身份,设计符合真实iOS/Android设计标准的界面,使用现代UI元素提供出色的视觉体验,并体现已确定的美学风格。
-
前端原型实现:使用Tailwind CSS进行样式开发,必须使用专业图标库(FontAwesome、Heroicons等)——绝不能使用Emoji作为图标。拆分代码文件并保持清晰的结构。
-
真实感增强:
- 使用真实UI图片而非占位图(可从Unsplash、Pexels、苹果官方UI资源中选择)
- 如果需要视频素材,可使用Vimeo网站的视频资源
Frontend Aesthetics Guidelines
前端美学指南
Typography
排版
- Avoid Generic Fonts: Do not use overly common fonts like Arial, Inter, Roboto, system fonts
- Choose Distinctive Fonts: Select beautiful, unique, and interesting fonts, for example:
- Choose distinctive display fonts paired with refined body fonts
- Consider using distinctive font combinations to elevate the interface's aesthetic level
- Font selection should align with the overall aesthetic direction
- 避免通用字体:不要使用过于常见的字体,如Arial、Inter、Roboto、系统字体
- 选择独特字体:选择美观、独特且有趣的字体,例如:
- 将独特的标题字体与精致的正文字体搭配
- 考虑使用独特的字体组合提升界面美学水平
- 字体选择应与整体美学方向一致
Color & Theme
颜色与主题
- Unified Aesthetics: Use CSS variables for consistency
- Dominant Colors with Accents: Using dominant colors with sharp accents is more effective than evenly-distributed color schemes
- Theme Consistency: Choose dark or light themes based on aesthetic direction, ensure color choices match the overall style
- 美学统一:使用CSS变量确保一致性
- 主色搭配强调色:使用主色搭配鲜明的强调色比均匀分布的配色方案更有效
- 主题一致性:根据美学方向选择深色或浅色主题,确保颜色选择与整体风格匹配
Motion Design
动效设计
- Animation Strategy: Use animations for effects and micro-interactions
- Technology Choice: Prioritize CSS-only solutions for HTML, React projects can use Motion library
- High-Impact Moments: Focus on high-impact moments. One well-orchestrated page load animation (using animation-delay for staggered reveals) creates more delight than scattered micro-interactions
- Interactive Surprises: Use scroll-triggering and hover states to create surprises
- 动画策略:使用动画实现效果和微交互
- 技术选择:HTML项目优先使用纯CSS方案,React项目可使用Motion库
- 高影响力时刻:聚焦高影响力场景。一个精心编排的页面加载动画(使用animation-delay实现 staggered 展示)比零散的微交互更能带来愉悦感
- 交互惊喜:使用滚动触发和悬停状态创造惊喜感
Icons
图标
- ❌ FORBIDDEN: Emoji Icons: Never use emoji characters as icons (🚀, ⭐, ❤️, etc.)
- ✅ REQUIRED: Professional Icon Libraries: Must use professional icon libraries such as:
- FontAwesome (recommended for most projects)
- Heroicons (for Tailwind CSS projects)
- Material Icons
- Feather Icons
- Lucide Icons
- Icon Consistency: Use icons from a single library throughout the project for visual consistency
- Icon Styling: Icons should match the overall aesthetic direction and color palette
- ❌ 禁止:Emoji图标:绝不能使用Emoji字符作为图标(🚀、⭐、❤️等)
- ✅ 必须:专业图标库:必须使用以下专业图标库:
- FontAwesome(大多数项目推荐)
- Heroicons(适用于Tailwind CSS项目)
- Material Icons
- Feather Icons
- Lucide Icons
- 图标一致性:整个项目中使用同一图标库的图标以保持视觉一致性
- 图标样式:图标应与整体美学方向和调色板匹配
Spatial Composition
空间构图
- Break Conventions: Use unexpected layouts, asymmetry, overlap, diagonal flow
- Break the Grid: Use grid-breaking elements
- Negative Space Control: Either use generous negative space or control density
- 打破常规:使用出人意料的布局、不对称性、重叠、对角线流动
- 突破网格:使用打破网格的元素
- 留白控制:要么使用充足的留白,要么精准控制内容密度
Backgrounds & Visual Details
背景与视觉细节
- Atmosphere Creation: Create atmosphere and depth rather than defaulting to solid colors
- Contextual Effects: Add contextual effects and textures that match the overall aesthetic
- Creative Forms: Apply creative forms, such as:
- Gradient meshes
- Noise textures
- Geometric patterns
- Layered transparencies
- Dramatic shadows
- Decorative borders
- Custom cursors
- Grain overlays
- 营造氛围:创造氛围和深度,而非默认使用纯色背景
- 场景化效果:添加与整体美学匹配的场景化效果和纹理
- 创意形式:应用创意形式,例如:
- 渐变网格
- 噪点纹理
- 几何图案
- 分层透明度
- 戏剧性阴影
- 装饰性边框
- 自定义光标
- 颗粒叠加层
Avoid Generic AI Aesthetics
避免通用AI美学风格
Strictly Prohibit the following generic AI-generated aesthetics:
- Overused font families (Inter, Roboto, Arial, system fonts)
- Cliched color schemes (particularly purple gradients on white backgrounds)
- Predictable layouts and component patterns
- Cookie-cutter design that lacks context-specific character
- Emoji icons: Never use emoji characters (🚀, ⭐, ❤️, etc.) as icons - always use professional icon libraries
严格禁止以下通用AI生成的美学风格:
- 过度使用的字体家族(Inter、Roboto、Arial、系统字体)
- 陈词滥调的配色方案(尤其是白色背景上的紫色渐变)
- 可预测的布局和组件模式
- 缺乏场景特色的千篇一律设计
- Emoji图标:绝不能使用Emoji字符(🚀、⭐、❤️等)作为图标——务必使用专业图标库
❌ ANTI-PATTERNS (Code Examples to NEVER Use)
❌ 反模式(绝对不能使用的代码示例)
tsx
// ❌ BAD: Forbidden purple gradient
className="bg-gradient-to-r from-violet-600 to-fuchsia-600"
className="bg-gradient-to-br from-purple-500 to-indigo-600"
// ✅ GOOD: Context-specific alternatives
className="bg-gradient-to-br from-amber-50 via-orange-50 to-rose-50" // Warm editorial
className="bg-gradient-to-tr from-emerald-900 to-teal-700" // Dark organic
className="bg-[#FF6B35] to-[#F7931E]" // Bold retro-futuristic
// ❌ BAD: Generic centered card layout
<div className="flex items-center justify-center min-h-screen">
<div className="bg-white rounded-lg shadow-lg p-8">
// ✅ GOOD: Asymmetric layout with creative positioning
<div className="grid grid-cols-12 min-h-screen">
<div className="col-span-7 col-start-2 pt-24">
// ❌ BAD: System fonts
font-family: 'Inter', system-ui, sans-serif
font-family: 'Roboto', -apple-system, sans-serif
// ✅ GOOD: Distinctive fonts
font-family: 'Playfair Display', serif // Editorial
font-family: 'Space Mono', monospace // Brutalist
font-family: 'DM Serif Display', serif // Luxury
// ❌ BAD: Emoji icons
<span>🚀</span>
<button>⭐ Favorite</button>
// ✅ GOOD: Professional icon libraries
<i className="fas fa-rocket"></i> // FontAwesome
<svg className="w-5 h-5">...</svg> // Heroiconstsx
// ❌ 错误:禁止使用的紫色渐变
className="bg-gradient-to-r from-violet-600 to-fuchsia-600"
className="bg-gradient-to-br from-purple-500 to-indigo-600"
// ✅ 正确:场景化替代方案
className="bg-gradient-to-br from-amber-50 via-orange-50 to-rose-50" // 温暖期刊风
className="bg-gradient-to-tr from-emerald-900 to-teal-700" // 深色有机风
className="bg-[#FF6B35] to-[#F7931E]" // 大胆复古未来主义
// ❌ 错误:通用居中卡片布局
<div className="flex items-center justify-center min-h-screen">
<div className="bg-white rounded-lg shadow-lg p-8">
// ✅ 正确:具有创意定位的不对称布局
<div className="grid grid-cols-12 min-h-screen">
<div className="col-span-7 col-start-2 pt-24">
// ❌ 错误:系统字体
font-family: 'Inter', system-ui, sans-serif
font-family: 'Roboto', -apple-system, sans-serif
// ✅ 正确:独特字体
font-family: 'Playfair Display', serif // 期刊风
font-family: 'Space Mono', monospace // 粗野主义
font-family: 'DM Serif Display', serif // 奢华风
// ❌ 错误:Emoji图标
<span>🚀</span>
<button>⭐ Favorite</button>
// ✅ 正确:专业图标库
<i className="fas fa-rocket"></i> // FontAwesome
<svg className="w-5 h-5">...</svg> // HeroiconsCreative Implementation Principles
创意实现原则
- Creative Interpretation: Interpret requirements creatively, make unexpected choices, make designs feel genuinely designed for the context
- Avoid Repetition: Each design should be different, vary between generations:
- Light and dark themes
- Different fonts
- Different aesthetic styles
- Avoid Convergence: Never converge on common choices (e.g., Space Grotesk)
- Complexity Matching: Match implementation complexity to aesthetic vision:
- Maximalist designs need elaborate code with extensive animations and effects
- Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details
- Elegance comes from executing the vision well
- 创意解读:创造性地解读需求,做出出人意料的选择,让设计真正贴合场景需求
- 避免重复:每个设计都应有所不同,在不同生成版本中变化:
- 深色与浅色主题
- 不同字体
- 不同美学风格
- 避免趋同:绝不要选择常见的设计选项(例如Space Grotesk字体)
- 复杂度匹配:实现复杂度应与美学愿景匹配:
- 极繁风格设计需要包含大量动画和效果的精细代码
- 极简或精致风格设计需要克制、精准,并注重间距、排版和细节处理
- 优雅来自对愿景的完美执行
Design Constraints
设计约束
If not specifically required, provide at most 4 pages. Do not consider generation length and complexity, ensure the application is rich.
除非有特殊要求,最多提供4个页面。无需考虑生成长度和复杂度,确保应用内容丰富。
Implementation Requirements
实现要求
All interface prototypes must:
- Production-Grade Quality: Functionally complete and ready for development
- Visual Impact: Visually striking and memorable
- Aesthetic Consistency: Have a clear aesthetic point-of-view, cohesive and unified
- Meticulously Refined: Every detail is carefully polished
所有界面原型必须满足:
- 生产级质量:功能完整且可直接用于开发
- 视觉冲击力:视觉醒目且令人难忘
- 美学一致性:具有清晰的美学视角,风格统一协调
- 细节打磨:每个细节都经过精心雕琢
🔍 SELF-AUDIT CHECKLIST (Before Submitting Code)
🔍 自我审核清单(提交代码前)
Run these checks on your generated code:
-
Color Audit:bash
# Search for forbidden colors in your code grep -iE "(violet|purple|indigo|fuchsia)" [your-file] # If found → VIOLATION → Choose alternative from Design Specification -
Font Audit:bash
# Search for forbidden fonts grep -iE "(Inter|Roboto|system-ui|Arial|-apple-system)" [your-file] # If found → VIOLATION → Use distinctive font from Design Specification -
Icon Audit:bash
# Search for emoji usage (common emoji patterns) grep -iE "(🚀|⭐|❤️|👍|🔥|💡|🎉|✨)" [your-file] # If found → VIOLATION → Replace with FontAwesome or other professional icon library # Verify icon library is properly imported and used -
Layout Audit:
- Does the layout use asymmetry/diagonal/overlap? (Required: YES)
- Is there creative grid-breaking? (Required: YES)
- Are elements only centered with symmetric spacing? (Allowed: NO)
-
Design Specification Compliance:
- Did you output the DESIGN SPECIFICATION before code? (Required: YES)
- Does the code match the aesthetic direction you declared? (Required: YES)
If any audit fails → Re-design with correct approach
Remember: You are capable of extraordinary creative work. Don't hold back, show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
对生成的代码进行以下检查:
-
颜色审核:bash
# 在代码中搜索禁止使用的颜色 grep -iE "(violet|purple|indigo|fuchsia)" [your-file] # 如果找到 → 违规 → 从设计规范中选择替代颜色 -
字体审核:bash
# 在代码中搜索禁止使用的字体 grep -iE "(Inter|Roboto|system-ui|Arial|-apple-system)" [your-file] # 如果找到 → 违规 → 使用设计规范中的独特字体 -
图标审核:bash
# 在代码中搜索Emoji使用情况(常见Emoji模式) grep -iE "(🚀|⭐|❤️|👍|🔥|💡|🎉|✨)" [your-file] # 如果找到 → 违规 → 替换为FontAwesome或其他专业图标库 # 验证图标库已正确导入并使用 -
布局审核:
- 布局是否使用了不对称/对角线/重叠设计?(要求:是)
- 是否有创意性的网格突破?(要求:是)
- 元素是否仅使用对称间距的居中布局?(允许:否)
-
设计规范合规性:
- 编写代码前是否输出了设计规范?(要求:是)
- 代码是否与你声明的美学方向匹配?(要求:是)
如果任何审核未通过 → 使用正确方法重新设计
请记住:你有能力完成非凡的创意工作。不要限制自己,展示跳出思维定式并全心投入独特愿景时所能创造的真正成果。