Ui Design Guide
by @binggg
Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI.
clawhub install ui-design-guideπ About This Skill
name: ui-design-guide description: Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI. version: 2.18.0 alwaysApply: false
Standalone Install Note
If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ui-design/SKILL.mdKeep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.
Activation Contract
Use this first when
Read before writing code if
Then also read
../web-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/web-development/SKILL.md)../miniprogram-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/miniprogram-development/SKILL.md)Do NOT use for
Common mistakes / gotchas
Minimal checklist
When to use this skill
Use this skill for frontend UI design and interface creation in any project that requires:
Do NOT use for:
How to use this skill (for a coding agent)
1. 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
2. Follow the Design Process - User Experience Analysis - Product Interface Planning - Aesthetic Direction Determination - High-Fidelity UI Design - Frontend Prototype Implementation - Realism Enhancement
3. 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.)
4. 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
5. Respect brand or design-system overrides when they are real constraints - If the project already has approved brand colors, font tokens, or a design system, treat those as higher-priority constraints - Explicitly document which default UI-design prohibitions are being overridden and why - Keep the override narrow: preserve the overall quality bar instead of falling back to generic AI styling
UI Design Rules
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 breaking
Aesthetic Direction Options:
Key: Choose a clear conceptual direction and execute it with precision. Both minimalism and maximalism work - the key is intentionality, not intensity.
Context-Aware Recommendations
π¨ TRIGGER WORD DETECTOR
If you find yourself typing these words, STOP immediately and re-read this rule:
Action: Go back to Design Specification β Choose alternative aesthetic β Proceed
Design Process
1. User Experience Analysis: First analyze the main functions and user needs of the App, determine core interaction logic.
2. Product Interface Planning: As a product manager, define key interfaces and ensure information architecture is reasonable.
3. Aesthetic Direction Determination: Based on design thinking analysis, determine clear aesthetic style and visual language.
4. 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.
5. 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.
6. 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
Frontend Aesthetics Guidelines
Typography
Color & Theme
Motion Design
Icons
Spatial Composition
Backgrounds & Visual Details
Avoid Generic AI Aesthetics
Strictly Prohibit the following generic AI-generated aesthetics:β ANTI-PATTERNS (Code Examples to NEVER Use)
// β 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
// β
GOOD: Asymmetric layout with creative positioning
// β 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
π
// β
GOOD: Professional icon libraries
// FontAwesome
// Heroicons
Creative 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 wellDesign Constraints
If not specifically required, provide at most 4 pages. Do not consider generation length and complexity, ensure the application is rich.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:
1. Color Audit:
# Search for forbidden colors in your code
grep -iE "(violet|purple|indigo|fuchsia)" [your-file]
# If found β VIOLATION β Choose alternative from Design Specification
2. Font Audit:
# Search for forbidden fonts
grep -iE "(Inter|Roboto|system-ui|Arial|-apple-system)" [your-file]
# If found β VIOLATION β Use distinctive font from Design Specification
3. Icon Audit:
# 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
4. 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)
5. 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.