@@ -3,9 +3,9 @@ description: Plan and implement UI
33auto_execution_mode : 3
44---
55
6- # UI/UX Pro Max - Design Intelligence
6+ # ui-ux-pro-max
77
8- Searchable database of UI styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices .
8+ Comprehensive design guide for web and mobile applications. Contains 50+ styles, 97 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 9 technology stacks. Searchable database with priority-based recommendations .
99
1010## Prerequisites
1111
@@ -46,28 +46,46 @@ Extract key information from user request:
4646- ** Industry** : healthcare, fintech, gaming, education, etc.
4747- ** Stack** : React, Vue, Next.js, or default to ` html-tailwind `
4848
49- ### Step 2: Search Relevant Domains
49+ ### Step 2: Generate Design System (REQUIRED)
5050
51- Use ` search.py ` multiple times to gather comprehensive information. Search until you have enough context.
51+ ** Always start with ` --design-system ` ** to get comprehensive recommendations with reasoning:
52+
53+ ``` bash
54+ python3 .shared/ui-ux-pro-max/scripts/search.py " <product_type> <industry> <keywords>" --design-system [-p " Project Name" ]
55+ ```
56+
57+ This command:
58+ 1 . Searches 5 domains in parallel (product, style, color, landing, typography)
59+ 2 . Applies reasoning rules from ` ui-reasoning.csv ` to select best matches
60+ 3 . Returns complete design system: pattern, style, colors, typography, effects
61+ 4 . Includes anti-patterns to avoid
62+
63+ ** Example:**
64+ ``` bash
65+ python3 .shared/ui-ux-pro-max/scripts/search.py " beauty spa wellness service" --design-system -p " Serenity Spa"
66+ ```
67+
68+ ### Step 3: Supplement with Detailed Searches (as needed)
69+
70+ After getting the design system, use domain searches to get additional details:
5271
5372``` bash
5473python3 .shared/ui-ux-pro-max/scripts/search.py " <keyword>" --domain < domain> [-n < max_results> ]
5574```
5675
57- ** Recommended search order :**
76+ ** When to use detailed searches :**
5877
59- 1 . ** Product** - Get style recommendations for product type
60- 2 . ** Style** - Get detailed style guide (colors, effects, frameworks)
61- 3 . ** Typography** - Get font pairings with Google Fonts imports
62- 4 . ** Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
63- 5 . ** Landing** - Get page structure (if landing page)
64- 6 . ** Chart** - Get chart recommendations (if dashboard/analytics)
65- 7 . ** UX** - Get best practices and anti-patterns
66- 8 . ** Stack** - Get stack-specific guidelines (default: html-tailwind)
78+ | Need | Domain | Example |
79+ | ------| --------| ---------|
80+ | More style options | ` style ` | ` --domain style "glassmorphism dark" ` |
81+ | Chart recommendations | ` chart ` | ` --domain chart "real-time dashboard" ` |
82+ | UX best practices | ` ux ` | ` --domain ux "animation accessibility" ` |
83+ | Alternative fonts | ` typography ` | ` --domain typography "elegant luxury" ` |
84+ | Landing structure | ` landing ` | ` --domain landing "hero social-proof" ` |
6785
68- ### Step 3 : Stack Guidelines (Default: html-tailwind)
86+ ### Step 4 : Stack Guidelines (Default: html-tailwind)
6987
70- If user doesn't specify a stack, ** default to ` html-tailwind ` ** .
88+ Get implementation-specific best practices. If user doesn't specify a stack, ** default to ` html-tailwind ` ** .
7189
7290``` bash
7391python3 .shared/ui-ux-pro-max/scripts/search.py " <keyword>" --stack html-tailwind
@@ -90,6 +108,8 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
90108| ` landing ` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
91109| ` chart ` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
92110| ` ux ` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
111+ | ` react ` | React/Next.js performance | waterfall, bundle, suspense, memo, rerender, cache |
112+ | ` web ` | Web interface guidelines | aria, focus, keyboard, semantic, virtualize |
93113| ` prompt ` | AI prompts, CSS keywords | (style name) |
94114
95115### Available Stacks
@@ -112,33 +132,51 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
112132
113133** User request:** "Làm landing page cho dịch vụ chăm sóc da chuyên nghiệp"
114134
115- ** AI should:**
135+ ### Step 1: Analyze Requirements
136+ - Product type: Beauty/Spa service
137+ - Style keywords: elegant, professional, soft
138+ - Industry: Beauty/Wellness
139+ - Stack: html-tailwind (default)
140+
141+ ### Step 2: Generate Design System (REQUIRED)
116142
117143``` bash
118- # 1. Search product type
119- python3 .shared/ui-ux-pro-max/scripts/search.py " beauty spa wellness service " --domain product
144+ python3 .shared/ui-ux-pro-max/scripts/search.py " beauty spa wellness service elegant " --design-system -p " Serenity Spa "
145+ ```
120146
121- # 2. Search style (based on industry: beauty, elegant)
122- python3 .shared/ui-ux-pro-max/scripts/search.py " elegant minimal soft" --domain style
147+ ** Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
123148
124- # 3. Search typography
125- python3 .shared/ui-ux-pro-max/scripts/search.py " elegant luxury" --domain typography
149+ ### Step 3: Supplement with Detailed Searches (as needed)
126150
127- # 4. Search color palette
128- python3 .shared/ui-ux-pro-max/scripts/search.py " beauty spa wellness" --domain color
151+ ``` bash
152+ # Get UX guidelines for animation and accessibility
153+ python3 .shared/ui-ux-pro-max/scripts/search.py " animation accessibility" --domain ux
129154
130- # 5. Search landing page structure
131- python3 .shared/ui-ux-pro-max/scripts/search.py " hero-centric social-proof" --domain landing
155+ # Get alternative typography options if needed
156+ python3 .shared/ui-ux-pro-max/scripts/search.py " elegant luxury serif" --domain typography
157+ ```
132158
133- # 6. Search UX guidelines
134- python3 .shared/ui-ux-pro-max/scripts/search.py " animation" --domain ux
135- python3 .shared/ui-ux-pro-max/scripts/search.py " accessibility" --domain ux
159+ ### Step 4: Stack Guidelines
136160
137- # 7. Search stack guidelines (default: html-tailwind)
138- python3 .shared/ui-ux-pro-max/scripts/search.py " layout responsive" --stack html-tailwind
161+ ``` bash
162+ python3 .shared/ui-ux-pro-max/scripts/search.py " layout responsive form " --stack html-tailwind
139163```
140164
141- ** Then:** Synthesize all search results and implement the design.
165+ ** Then:** Synthesize design system + detailed searches and implement the design.
166+
167+ ---
168+
169+ ## Output Formats
170+
171+ The ` --design-system ` flag supports two output formats:
172+
173+ ``` bash
174+ # ASCII box (default) - best for terminal display
175+ python3 .shared/ui-ux-pro-max/scripts/search.py " fintech crypto" --design-system
176+
177+ # Markdown - best for documentation
178+ python3 .shared/ui-ux-pro-max/scripts/search.py " fintech crypto" --design-system -f markdown
179+ ```
142180
143181---
144182
@@ -150,10 +188,6 @@ python3 .shared/ui-ux-pro-max/scripts/search.py "layout responsive" --stack html
1501884 . ** Always check UX** - Search "animation", "z-index", "accessibility" for common issues
1511895 . ** Use stack flag** - Get implementation-specific best practices
1521906 . ** Iterate** - If first search doesn't match, try different keywords
153- 7 . ** Split Into Multiple Files** - For better maintainability:
154- - Separate components into individual files (e.g., ` Header.tsx ` , ` Footer.tsx ` )
155- - Extract reusable styles into dedicated files
156- - Keep each file focused and under 200-300 lines
157191
158192---
159193
@@ -206,6 +240,7 @@ Before delivering UI code, verify these items:
206240- [ ] All icons from consistent icon set (Heroicons/Lucide)
207241- [ ] Brand logos are correct (verified from Simple Icons)
208242- [ ] Hover states don't cause layout shift
243+ - [ ] Use theme colors directly (bg-primary) not var() wrapper
209244
210245### Interaction
211246- [ ] All clickable elements have ` cursor-pointer `
@@ -222,7 +257,7 @@ Before delivering UI code, verify these items:
222257### Layout
223258- [ ] Floating elements have proper spacing from edges
224259- [ ] No content hidden behind fixed navbars
225- - [ ] Responsive at 320px , 768px, 1024px, 1440px
260+ - [ ] Responsive at 375px , 768px, 1024px, 1440px
226261- [ ] No horizontal scroll on mobile
227262
228263### Accessibility
0 commit comments