name: ui-design-skill
description: Expert guidance on UI/UX design for console and web interfaces. Use when designing, implementing, or reviewing: (1) Console UIs with Rich library for terminal apps, (2) Web UIs with Tailwind CSS, (3) Responsive layouts and mobile-first design, (4) Accessible interfaces following WCAG guidelines, (5) Design systems and component consistency, (6) User-centered design decisions. Invoke when user asks about colors, layouts, typography, user flows, or interface patterns.
UI Design Skill
Expert guidance for creating beautiful, accessible, and user-friendly interfaces.
Design Decision Framework
User Need → Information Architecture → Visual Hierarchy → Interaction Design → Accessibility Check
When to Use Which Technology
| Context |
Technology |
Reference |
| Phase I Console App |
Rich library |
rich-console-ui.md |
| Phase II Web App |
Tailwind CSS |
tailwind-patterns.md |
| Mobile/Responsive |
Media queries |
responsive-design.md |
Core Principles (Nielsen's Heuristics)
- Visibility of system status - Always show what's happening
- Match real world - Use familiar language and concepts
- User control - Provide undo, cancel, clear exits
- Consistency - Same actions = same results
- Error prevention - Prevent problems before they occur
- Recognition over recall - Show options, don't require memory
- Flexibility - Support both novice and expert users
- Aesthetic minimalism - Remove unnecessary information
- Error recovery - Clear error messages with solutions
- Help & documentation - Easy to search, task-focused
Visual Hierarchy Quick Reference
Typography Scale
Heading 1: 2.25rem (36px) - Page titles
Heading 2: 1.875rem (30px) - Section headers
Heading 3: 1.5rem (24px) - Subsections
Body: 1rem (16px) - Main content
Small: 0.875rem (14px) - Secondary info
Caption: 0.75rem (12px) - Labels, hints
Color Usage
Primary: Brand identity, main CTAs
Secondary: Supporting actions
Success: Confirmations, completions (green)
Warning: Caution states (yellow/amber)
Error: Failures, destructive actions (red)
Neutral: Text, backgrounds, borders
Spacing Scale (8px base)
xs: 4px (0.25rem)
sm: 8px (0.5rem)
md: 16px (1rem)
lg: 24px (1.5rem)
xl: 32px (2rem)
2xl: 48px (3rem)
Console UI Quick Start (Rich)
from rich.console import Console
from rich.table import Table
from rich.panel import Panel
from rich.prompt import Prompt, Confirm
console = Console()
# Status messages
console.print("[green]✓[/green] Task completed")
console.print("[red]✗[/red] Error occurred")
console.print("[yellow]![/yellow] Warning message")
# Data display
table = Table(title="Tasks")
table.add_column("ID", style="dim")
table.add_column("Title", style="bold")
table.add_column("Status")
table.add_row("1", "Buy groceries", "[green]Done[/green]")
console.print(table)
# User input
name = Prompt.ask("Enter task name")
confirm = Confirm.ask("Delete this task?")
Web UI Quick Start (Tailwind)
<!-- Card Component -->
<div class="bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow">
<h3 class="text-lg font-semibold text-gray-900">Task Title</h3>
<p class="text-gray-600 mt-2">Task description here</p>
<div class="mt-4 flex gap-2">
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
Complete
</button>
<button class="px-4 py-2 border border-gray-300 rounded-md hover:bg-gray-50">
Edit
</button>
</div>
</div>
Accessibility Checklist
References
- Design Principles - User-centered design, mental models, feedback
- Rich Console UI - Tables, panels, progress bars, prompts
- Tailwind Patterns - Components, utilities, dark mode
- Responsive Design - Breakpoints, mobile-first, layouts
- Accessibility (WCAG) - ARIA, keyboard nav, screen readers
- Design Systems - Tokens, components, documentation
1---2name: ui-design-skill3description: Expert guidance for creating beautiful, accessible, and user-friendly interfaces.4---5
6---
7name: ui-design-skill
8description: Expert guidance on UI/UX design for console and web interfaces. Use when designing, implementing, or reviewing: (1) Console UIs with Rich library for terminal apps, (2) Web UIs with Tailwind CSS, (3) Responsive layouts and mobile-first design, (4) Accessible interfaces following WCAG guidelines, (5) Design systems and component consistency, (6) User-centered design decisions. Invoke when user asks about colors, layouts, typography, user flows, or interface patterns.
9---
10
11# UI Design Skill
12
13Expert guidance for creating beautiful, accessible, and user-friendly interfaces.
14
15## Design Decision Framework
16
17```
18User Need → Information Architecture → Visual Hierarchy → Interaction Design → Accessibility Check
19```
20
21### When to Use Which Technology
22
23| Context | Technology | Reference |
24|---------|------------|-----------|
25| Phase I Console App | Rich library | [rich-console-ui.md](references/rich-console-ui.md) |
26| Phase II Web App | Tailwind CSS | [tailwind-patterns.md](references/tailwind-patterns.md) |
27| Mobile/Responsive | Media queries | [responsive-design.md](references/responsive-design.md) |
28
29## Core Principles (Nielsen's Heuristics)
30
311. **Visibility of system status** - Always show what's happening
322. **Match real world** - Use familiar language and concepts
333. **User control** - Provide undo, cancel, clear exits
344. **Consistency** - Same actions = same results
355. **Error prevention** - Prevent problems before they occur
366. **Recognition over recall** - Show options, don't require memory
377. **Flexibility** - Support both novice and expert users
388. **Aesthetic minimalism** - Remove unnecessary information
399. **Error recovery** - Clear error messages with solutions
4010. **Help & documentation** - Easy to search, task-focused
41
42## Visual Hierarchy Quick Reference
43
44### Typography Scale
45```
46Heading 1: 2.25rem (36px) - Page titles
47Heading 2: 1.875rem (30px) - Section headers
48Heading 3: 1.5rem (24px) - Subsections
49Body: 1rem (16px) - Main content
50Small: 0.875rem (14px) - Secondary info
51Caption: 0.75rem (12px) - Labels, hints
52```
53
54### Color Usage
55```
56Primary: Brand identity, main CTAs
57Secondary: Supporting actions
58Success: Confirmations, completions (green)
59Warning: Caution states (yellow/amber)
60Error: Failures, destructive actions (red)
61Neutral: Text, backgrounds, borders
62```
63
64### Spacing Scale (8px base)
65```
66xs: 4px (0.25rem)
67sm: 8px (0.5rem)
68md: 16px (1rem)
69lg: 24px (1.5rem)
70xl: 32px (2rem)
712xl: 48px (3rem)
72```
73
74## Console UI Quick Start (Rich)
75
76```python
77from rich.console import Console
78from rich.table import Table
79from rich.panel import Panel
80from rich.prompt import Prompt, Confirm
81
82console = Console()
83
84# Status messages
85console.print("[green]✓[/green] Task completed")
86console.print("[red]✗[/red] Error occurred")
87console.print("[yellow]![/yellow] Warning message")
88
89# Data display
90table = Table(title="Tasks")
91table.add_column("ID", style="dim")
92table.add_column("Title", style="bold")
93table.add_column("Status")
94table.add_row("1", "Buy groceries", "[green]Done[/green]")
95console.print(table)
96
97# User input
98name = Prompt.ask("Enter task name")
99confirm = Confirm.ask("Delete this task?")
100```
101
102## Web UI Quick Start (Tailwind)
103
104```html
105<!-- Card Component -->
106<div class="bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow">
107 <h3 class="text-lg font-semibold text-gray-900">Task Title</h3>
108 <p class="text-gray-600 mt-2">Task description here</p>
109 <div class="mt-4 flex gap-2">
110 <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
111 Complete
112 </button>
113 <button class="px-4 py-2 border border-gray-300 rounded-md hover:bg-gray-50">
114 Edit
115 </button>
116 </div>
117</div>
118```
119
120## Accessibility Checklist
121
122- [ ] Color contrast ratio ≥ 4.5:1 for text
123- [ ] All interactive elements keyboard accessible
124- [ ] Focus states visible and clear
125- [ ] Images have alt text
126- [ ] Form inputs have labels
127- [ ] Error messages announced to screen readers
128- [ ] Heading hierarchy is logical (h1 → h2 → h3)
129- [ ] Touch targets ≥ 44x44 pixels
130
131## References
132
133- **[Design Principles](references/design-principles.md)** - User-centered design, mental models, feedback
134- **[Rich Console UI](references/rich-console-ui.md)** - Tables, panels, progress bars, prompts
135- **[Tailwind Patterns](references/tailwind-patterns.md)** - Components, utilities, dark mode
136- **[Responsive Design](references/responsive-design.md)** - Breakpoints, mobile-first, layouts
137- **[Accessibility (WCAG)](references/accessibility-wcag.md)** - ARIA, keyboard nav, screen readers
138- **[Design Systems](references/design-systems.md)** - Tokens, components, documentation