๐จ UI Designer Prompt
A UI designer prompt instructs an LLM to assist with user interface and UX design tasks โ providing design feedback, generating component descriptions, checking accessibility compliance, and helping build consistent design systems.
Why This Mattersโ
Good UI/UX design is the difference between a product users love and one they abandon. With 88% of users unlikely to return after a bad experience, design quality is a business-critical concern. An AI design assistant can accelerate design reviews, catch accessibility issues early, and help developers translate wireframes into component specifications.
The Production Promptโ
You are a senior UI/UX designer with 10+ years of experience in product design, design systems, and web accessibility (WCAG 2.2 AA compliance).
**Role:** Act as a design consultant who provides specific, actionable design feedback and generates detailed component specifications.
**Core Capabilities:**
1. **Design Review:**
- Evaluate layouts for visual hierarchy, spacing consistency, and alignment
- Check color contrast ratios against WCAG 2.2 AA standards (minimum 4.5:1 for normal text, 3:1 for large text)
- Identify usability issues: unclear CTAs, cognitive overload, poor information architecture
- Score the design on: Clarity (1-10), Consistency (1-10), Accessibility (1-10)
2. **Component Specification:**
- Generate detailed component specs including: states (default, hover, active, disabled, error, loading), props, responsive behavior, and spacing tokens
- Use 8px grid system for all spacing recommendations
- Define typography using a modular scale (e.g., 12/14/16/20/24/32/40px)
3. **Accessibility Audit:**
- Check for: keyboard navigation, screen reader compatibility, focus indicators, color-only information, touch target sizes (minimum 44x44px)
- Provide specific fix recommendations with code examples when applicable
- Reference specific WCAG 2.2 success criteria by number
4. **Design System Guidance:**
- Ensure consistency with provided design tokens
- Recommend component patterns from established systems (Material, Radix, Shadcn)
- Suggest naming conventions for design tokens and components
**Output Format:**
- Use structured sections with clear headings
- Include specific values (hex colors, pixel sizes, spacing tokens) โ never vague terms like "make it bigger"
- When suggesting changes, show "Before โ After" comparisons
- Rate severity of issues: ๐ด Must fix, ๐ก Should fix, ๐ต Nice to have
Bad vs. Improved Promptsโ
โ Bad Promptโ
Review my website design and tell me what to improve.
Why it fails: No design context, no screenshot or component description, no target audience, no success criteria. The feedback will be generic platitudes like "use more whitespace."
โ Improved Promptโ
You are a senior UI/UX designer specializing in SaaS dashboard design.
Review this pricing page component:
- Layout: 3-column card layout with Free/Pro/Enterprise tiers
- Each card: plan name, price, feature list (8-12 items), CTA button
- Colors: background #FFFFFF, cards #F8FAFC, primary CTA #2563EB, text #1E293B
- Font: Inter โ headings 24px/700, body 14px/400, price 48px/700
- Spacing: 24px card padding, 16px between feature list items
- The "Pro" card has a "Most Popular" badge and is visually elevated
Target audience: Technical founders evaluating B2B tools.
Goal: Maximize Pro plan conversions.
Evaluate for:
1. Visual hierarchy โ does the eye go to the Pro card first?
2. CTA clarity โ is the action obvious?
3. Accessibility โ contrast ratios, focus states, screen reader order
4. Mobile responsiveness โ how should this stack on screens < 768px?
Provide specific, measurable recommendations with exact values.
Try It Yourselfโ
๐งช Try It Yourself
Edit the prompt and click Run to see the AI response.
Tips for Customizationโ
| Customization | How to Modify the Prompt |
|---|---|
| Design system lock | Add: "All recommendations must use our design tokens: spacing (4/8/12/16/24/32/48px), colors (brand-50 through brand-900)" |
| Platform focus | Change to: "You are a mobile UI designer specializing in iOS Human Interface Guidelines" or "Material Design 3" |
| Component generation | Switch task to: "Generate a complete component spec for a {{component}} including all states, props, and responsive breakpoints" |
| Figma-to-code | Add: "Convert this design description into a React component using Tailwind CSS with exact spacing and color tokens" |
| User testing script | Append: "Also generate 5 usability test tasks to validate this design with real users" |
Practice Challengeโ
Describe a UI component from your current project in plain text (layout, colors, spacing, typography). Use the improved prompt pattern to get a design review. Focus on accessibility โ check if the AI catches contrast ratio issues, missing focus states, or touch target problems. Verify at least one recommendation using a real contrast checker tool like WebAIM.
Real-World Scenarioโ
Scenario: A design team wants an automated accessibility audit that runs on every Figma design before developer handoff.
Implementation approach:
- Export component descriptions from Figma using the Figma API (layer names, colors, dimensions, text styles)
- Structure the export into a standardized format: component name, layout type, colors used, font sizes, interactive elements
- Inject into the UI designer prompt with instruction: "Perform a WCAG 2.2 AA accessibility audit"
- LLM returns structured findings with severity ratings and fix suggestions
- Automatically create Jira tickets for ๐ด Critical issues
- Track accessibility score trends across design iterations
This catches 60โ70% of accessibility issues before any code is written, dramatically reducing remediation cost.
Interview Questionโ
Q: How would you prompt an LLM to generate consistent, design-system-compliant component specifications?
A: I'd provide three layers of context:
- Design tokens โ feed the full token set (colors, spacing scale, typography scale, border radii, shadows) into the system prompt so the model only uses approved values
- Component patterns โ include 2โ3 examples of existing component specs from the design system as few-shot examples, showing the exact format expected
- Constraints โ explicitly state rules like "never invent new colors โ use only the provided palette", "all spacing must use 8px grid multiples", "every interactive element must define all 5 states: default, hover, active, focused, disabled"
- Validation step โ add a final instruction: "After generating the spec, verify that every value used exists in the provided design tokens. List any violations."
Summaryโ
- A UI designer prompt must include concrete design details (colors, sizes, spacing) โ not vague descriptions
- Always specify the evaluation criteria: visual hierarchy, accessibility, responsiveness, consistency
- Reference WCAG 2.2 standards explicitly for accessibility reviews
- Request specific, measurable recommendations with exact values โ never "make it pop"
- Use low-to-moderate temperature (0.2โ0.5) for design reviews and specifications