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.
- CloudBase main entry:
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
- Current skill raw source:
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ui-design/SKILL.md
Keep 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
- The request is to decide visual direction, produce a design specification, create a prototype, or make layout, typography, color, and visual hierarchy choices for an interface.
- The implementation should follow a deliberate aesthetic rather than directly coding an already-approved design.
Read before writing code if
- The response must choose typography, color, spacing, layout strategy, or other visual rules before code exists.
- The user asks for "design", "prototype", "look and feel", or "style" rather than straight implementation.
Then also read
- Web implementation ->
../web-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/web-development/SKILL.md)
- Mini program implementation ->
../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
- Backend-only tasks, database design, or pure API work without interface output.
- Straight implementation of an already-approved UI without new design decisions.
- Generic frontend coding requests where the visual direction is already settled.
Common mistakes / gotchas
- Writing JSX, WXML, or CSS before outputting the design specification.
- Falling back to generic AI layouts instead of an explicit aesthetic direction.
- Jumping into implementation when the design intent is still unclear.
- Ignoring platform constraints after the visual concept is defined.
Minimal checklist
- Read UI Design Activation Checklist before interface generation.
When 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
How to use this skill (for a coding 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
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:
- 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.
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
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
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
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
- Brand Escape Hatch: If a product already mandates a brand palette or typography system, you may use those tokens, but call out the override explicitly in the design specification
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
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
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
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
❌ 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
<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> // 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 well
Design 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:
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
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
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
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.
1---
2name: ui-design
3description: Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI.
4version: 2.23.8
5alwaysApply: false
6---
7
8## Standalone Install Note
9
10If this environment only installed the current skill, start from the CloudBase main entry and use the published `cloudbase/references/...` paths for sibling skills.
11
12- CloudBase main entry: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md`
13- Current skill raw source: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ui-design/SKILL.md`
14
15Keep 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.
16
17## Activation Contract
18
19### Use this first when
20
21- The request is to decide visual direction, produce a design specification, create a prototype, or make layout, typography, color, and visual hierarchy choices for an interface.
22- The implementation should follow a deliberate aesthetic rather than directly coding an already-approved design.
23
24### Read before writing code if
25
26- The response must choose typography, color, spacing, layout strategy, or other visual rules before code exists.
27- The user asks for "design", "prototype", "look and feel", or "style" rather than straight implementation.
28
29### Then also read
30
31- Web implementation -> `../web-development/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/web-development/SKILL.md`)
32- Mini program implementation -> `../miniprogram-development/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/miniprogram-development/SKILL.md`)
33
34### Do NOT use for
35
36- Backend-only tasks, database design, or pure API work without interface output.
37- Straight implementation of an already-approved UI without new design decisions.
38- Generic frontend coding requests where the visual direction is already settled.
39
40### Common mistakes / gotchas
41
42- Writing JSX, WXML, or CSS before outputting the design specification.
43- Falling back to generic AI layouts instead of an explicit aesthetic direction.
44- Jumping into implementation when the design intent is still unclear.
45- Ignoring platform constraints after the visual concept is defined.
46
47### Minimal checklist
48
49- Read [UI Design Activation Checklist](checklist.md) before interface generation.
50
51## When to use this skill
52
53Use this skill for **frontend UI design and interface creation** in any project that requires:
54
55- Creating web pages or interfaces
56- Creating mini-program pages or interfaces
57- Designing frontend components
58- Creating prototypes or interfaces
59- Handling styling and visual effects
60- Any development task involving user interfaces
61
62**Do NOT use for:**
63- Backend logic or API design
64- Database schema design (use data-model-creation skill)
65- Pure business logic without UI components
66
67---
68
69## How to use this skill (for a coding agent)
70
711. **MANDATORY: Complete Design Specification First**
72 - Before writing ANY interface code, you MUST explicitly output the design specification
73 - This includes: Purpose Statement, Aesthetic Direction, Color Palette, Typography, Layout Strategy
74 - Never skip this step - it's required for quality design
75
762. **Follow the Design Process**
77 - User Experience Analysis
78 - Product Interface Planning
79 - Aesthetic Direction Determination
80 - High-Fidelity UI Design
81 - Frontend Prototype Implementation
82 - Realism Enhancement
83
843. **Avoid Generic AI Aesthetics**
85 - Never use forbidden colors (purple, violet, indigo, fuchsia, blue-purple gradients)
86 - Never use forbidden fonts (Inter, Roboto, Arial, Helvetica, system-ui, -apple-system)
87 - Never use standard centered layouts without creative breaking
88 - Never use emoji as icons - always use professional icon libraries (FontAwesome, Heroicons, etc.)
89
904. **Run Self-Audit Before Submitting**
91 - Color audit (check for forbidden colors)
92 - Font audit (check for forbidden fonts)
93 - Icon audit (verify no emoji icons, using professional icon libraries)
94 - Layout audit (verify asymmetry/creativity)
95 - Design specification compliance check
96
975. **Respect brand or design-system overrides when they are real constraints**
98 - If the project already has approved brand colors, font tokens, or a design system, treat those as higher-priority constraints
99 - Explicitly document which default UI-design prohibitions are being overridden and why
100 - Keep the override narrow: preserve the overall quality bar instead of falling back to generic AI styling
101
102---
103
104# UI Design Rules
105
106You 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.
107
108## Design Thinking
109
110### ⚠️ MANDATORY PRE-DESIGN CHECKLIST (MUST COMPLETE BEFORE ANY CODE)
111
112**You MUST explicitly output this analysis before writing ANY interface code:**
113
114```
115DESIGN SPECIFICATION
116====================
1171. Purpose Statement: [2-3 sentences about problem/users/context]
1182. Aesthetic Direction: [Choose ONE from list below, FORBIDDEN: "modern", "clean", "simple"]
1193. Color Palette: [List 3-5 specific colors with hex codes]
120 ❌ FORBIDDEN COLORS: purple (#800080-#9370DB), violet (#8B00FF-#EE82EE), indigo (#4B0082-#6610F2), fuchsia (#FF00FF-#FF77FF), blue-purple gradients
1214. Typography: [Specify exact font names]
122 ❌ FORBIDDEN FONTS: Inter, Roboto, Arial, Helvetica, system-ui, -apple-system
1235. Layout Strategy: [Describe specific asymmetric/diagonal/overlapping approach]
124 ❌ FORBIDDEN: Standard centered layouts, simple grid without creative breaking
125```
126
127**Aesthetic Direction Options:**
128- Brutally minimal
129- Maximalist chaos
130- Retro-futuristic
131- Organic/natural
132- Luxury/refined
133- Playful/toy-like
134- Editorial/magazine
135- Brutalist/raw
136- Art deco/geometric
137- Soft/pastel
138- Industrial/utilitarian
139
140**Key**: Choose a clear conceptual direction and execute it with precision. Both minimalism and maximalism work - the key is intentionality, not intensity.
141
142### Context-Aware Recommendations
143- **Education apps**: Editorial/Organic/Retro-futuristic (avoid generic blue)
144- **Productivity apps**: Brutalist/Industrial/Luxury
145- **Social apps**: Playful/Maximalist/Soft
146- **Finance apps**: Luxury/Art deco/Brutally minimal
147
148### 🚨 TRIGGER WORD DETECTOR
149
150**If you find yourself typing these words, STOP immediately and re-read this rule:**
151- "gradient" + "purple/violet/indigo/fuchsia/blue-purple"
152- "card" + "centered" + "shadow"
153- "Inter" or "Roboto" or "system-ui"
154- "modern" or "clean" or "simple" (without specific style direction)
155- Emoji characters (🚀, ⭐, ❤️, etc.) as icons
156
157**Action**: Go back to Design Specification → Choose alternative aesthetic → Proceed
158
159## Design Process
160
1611. **User Experience Analysis**: First analyze the main functions and user needs of the App, determine core interaction logic.
162
1632. **Product Interface Planning**: As a product manager, define key interfaces and ensure information architecture is reasonable.
164
1653. **Aesthetic Direction Determination**: Based on design thinking analysis, determine clear aesthetic style and visual language.
166
1674. **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.
168
1695. **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.
170
1716. **Realism Enhancement**:
172 - Use real UI images instead of placeholder images (can be selected from Unsplash, Pexels, Apple official UI resources)
173 - If video materials are needed, can use Vimeo website for video resources
174
175## Frontend Aesthetics Guidelines
176
177### Typography
178- **Avoid Generic Fonts**: Do not use overly common fonts like Arial, Inter, Roboto, system fonts
179- **Choose Distinctive Fonts**: Select beautiful, unique, and interesting fonts, for example:
180 - Choose distinctive display fonts paired with refined body fonts
181 - Consider using distinctive font combinations to elevate the interface's aesthetic level
182 - Font selection should align with the overall aesthetic direction
183
184### Color & Theme
185- **Unified Aesthetics**: Use CSS variables for consistency
186- **Dominant Colors with Accents**: Using dominant colors with sharp accents is more effective than evenly-distributed color schemes
187- **Theme Consistency**: Choose dark or light themes based on aesthetic direction, ensure color choices match the overall style
188- **Brand Escape Hatch**: If a product already mandates a brand palette or typography system, you may use those tokens, but call out the override explicitly in the design specification
189
190### Motion Design
191- **Animation Strategy**: Use animations for effects and micro-interactions
192- **Technology Choice**: Prioritize CSS-only solutions for HTML, React projects can use Motion library
193- **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
194- **Interactive Surprises**: Use scroll-triggering and hover states to create surprises
195
196### Icons
197- **❌ FORBIDDEN: Emoji Icons**: Never use emoji characters as icons (🚀, ⭐, ❤️, etc.)
198- **✅ REQUIRED: Professional Icon Libraries**: Must use professional icon libraries such as:
199 - FontAwesome (recommended for most projects)
200 - Heroicons (for Tailwind CSS projects)
201 - Material Icons
202 - Feather Icons
203 - Lucide Icons
204- **Icon Consistency**: Use icons from a single library throughout the project for visual consistency
205- **Icon Styling**: Icons should match the overall aesthetic direction and color palette
206
207### Spatial Composition
208- **Break Conventions**: Use unexpected layouts, asymmetry, overlap, diagonal flow
209- **Break the Grid**: Use grid-breaking elements
210- **Negative Space Control**: Either use generous negative space or control density
211
212### Backgrounds & Visual Details
213- **Atmosphere Creation**: Create atmosphere and depth rather than defaulting to solid colors
214- **Contextual Effects**: Add contextual effects and textures that match the overall aesthetic
215- **Creative Forms**: Apply creative forms, such as:
216 - Gradient meshes
217 - Noise textures
218 - Geometric patterns
219 - Layered transparencies
220 - Dramatic shadows
221 - Decorative borders
222 - Custom cursors
223 - Grain overlays
224
225### Avoid Generic AI Aesthetics
226**Strictly Prohibit** the following generic AI-generated aesthetics:
227- Overused font families (Inter, Roboto, Arial, system fonts)
228- Cliched color schemes (particularly purple gradients on white backgrounds)
229- Predictable layouts and component patterns
230- Cookie-cutter design that lacks context-specific character
231- **Emoji icons**: Never use emoji characters (🚀, ⭐, ❤️, etc.) as icons - always use professional icon libraries
232
233### ❌ ANTI-PATTERNS (Code Examples to NEVER Use)
234
235```tsx
236// ❌ BAD: Forbidden purple gradient
237className="bg-gradient-to-r from-violet-600 to-fuchsia-600"
238className="bg-gradient-to-br from-purple-500 to-indigo-600"
239
240// ✅ GOOD: Context-specific alternatives
241className="bg-gradient-to-br from-amber-50 via-orange-50 to-rose-50" // Warm editorial
242className="bg-gradient-to-tr from-emerald-900 to-teal-700" // Dark organic
243className="bg-[#FF6B35] to-[#F7931E]" // Bold retro-futuristic
244
245// ❌ BAD: Generic centered card layout
246<div className="flex items-center justify-center min-h-screen">
247 <div className="bg-white rounded-lg shadow-lg p-8">
248
249// ✅ GOOD: Asymmetric layout with creative positioning
250<div className="grid grid-cols-12 min-h-screen">
251 <div className="col-span-7 col-start-2 pt-24">
252
253// ❌ BAD: System fonts
254font-family: 'Inter', system-ui, sans-serif
255font-family: 'Roboto', -apple-system, sans-serif
256
257// ✅ GOOD: Distinctive fonts
258font-family: 'Playfair Display', serif // Editorial
259font-family: 'Space Mono', monospace // Brutalist
260font-family: 'DM Serif Display', serif // Luxury
261
262// ❌ BAD: Emoji icons
263<span>🚀</span>
264<button>⭐ Favorite</button>
265
266// ✅ GOOD: Professional icon libraries
267<i className="fas fa-rocket"></i> // FontAwesome
268<svg className="w-5 h-5">...</svg> // Heroicons
269```
270
271### Creative Implementation Principles
272- **Creative Interpretation**: Interpret requirements creatively, make unexpected choices, make designs feel genuinely designed for the context
273- **Avoid Repetition**: Each design should be different, vary between generations:
274 - Light and dark themes
275 - Different fonts
276 - Different aesthetic styles
277- **Avoid Convergence**: Never converge on common choices (e.g., Space Grotesk)
278- **Complexity Matching**: Match implementation complexity to aesthetic vision:
279 - Maximalist designs need elaborate code with extensive animations and effects
280 - Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details
281 - Elegance comes from executing the vision well
282
283## Design Constraints
284If not specifically required, provide at most 4 pages. Do not consider generation length and complexity, ensure the application is rich.
285
286## Implementation Requirements
287
288All interface prototypes must:
289- **Production-Grade Quality**: Functionally complete and ready for development
290- **Visual Impact**: Visually striking and memorable
291- **Aesthetic Consistency**: Have a clear aesthetic point-of-view, cohesive and unified
292- **Meticulously Refined**: Every detail is carefully polished
293
294### 🔍 SELF-AUDIT CHECKLIST (Before Submitting Code)
295
296**Run these checks on your generated code:**
297
2981. **Color Audit**:
299 ```bash
300 # Search for forbidden colors in your code
301 grep -iE "(violet|purple|indigo|fuchsia)" [your-file]
302 # If found → VIOLATION → Choose alternative from Design Specification
303 ```
304
3052. **Font Audit**:
306 ```bash
307 # Search for forbidden fonts
308 grep -iE "(Inter|Roboto|system-ui|Arial|-apple-system)" [your-file]
309 # If found → VIOLATION → Use distinctive font from Design Specification
310 ```
311
3123. **Icon Audit**:
313 ```bash
314 # Search for emoji usage (common emoji patterns)
315 grep -iE "(🚀|⭐|❤️|👍|🔥|💡|🎉|✨)" [your-file]
316 # If found → VIOLATION → Replace with FontAwesome or other professional icon library
317 # Verify icon library is properly imported and used
318 ```
319
3204. **Layout Audit**:
321 - Does the layout use asymmetry/diagonal/overlap? (Required: YES)
322 - Is there creative grid-breaking? (Required: YES)
323 - Are elements only centered with symmetric spacing? (Allowed: NO)
324
3255. **Design Specification Compliance**:
326 - Did you output the DESIGN SPECIFICATION before code? (Required: YES)
327 - Does the code match the aesthetic direction you declared? (Required: YES)
328
329**If any audit fails → Re-design with correct approach**
330
331Remember: 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.