Frontend Design
Create aesthetically beautiful, distinctive, production-grade frontend interfaces by following proven design principles, systematic workflows, and comprehensive analysis techniques. This skill combines design thinking, frontend implementation patterns, searchable pattern databases, and web interface guidelines compliance.
When to Use
- Building or designing user interfaces (websites, landing pages, dashboards, React components, HTML/CSS layouts)
- Analyzing designs from inspiration websites (Dribbble, Mobbin, Behance, Awwwards)
- Generating design images and evaluating aesthetic quality
- Implementing visual hierarchy, typography, color theory
- Adding micro-interactions and animations
- Creating design documentation and style guides
- Building production-grade frontend interfaces with distinctive aesthetics
- Reviewing UI code for Web Interface Guidelines compliance
- Styling/beautifying any web UI
Core Philosophy
Design Thinking
Before coding, understand the context and commit to a BOLD aesthetic direction:
- Purpose: What problem does this interface solve? Who uses it?
- Tone: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
- Constraints: Technical requirements (framework, performance, accessibility).
- Differentiation: What makes this UNFORGETTABLE? What's the one thing someone will remember?
CRITICAL: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
Progressive Excellence
Evidence-Based Aesthetics: AI lacks aesthetic sense - standards must come from analyzing high-quality examples and aligning with market tastes. Study existing designs, identify patterns, extract principles.
BEAUTIFUL: Understanding Aesthetics - Study existing designs, identify patterns, extract principles.
Reference: references/design-principles.md - Load for visual hierarchy, typography, color theory, white space principles.
RIGHT: Ensuring Functionality - Beautiful designs lacking usability are worthless. Study design systems, component architecture, accessibility requirements.
Reference: references/design-principles.md - Load for design systems, component libraries, WCAG accessibility standards.
SATISFYING: Micro-Interactions - Incorporate subtle animations with appropriate timing (150-300ms), easing curves (ease-out for entry, ease-in for exit), sequential delays.
Reference: references/micro-interactions.md - Load for duration guidelines, easing curves, performance optimization.
PEAK: Storytelling Through Design - Elevate with narrative elements - parallax effects, particle systems, thematic consistency. Use restraint: "too much of anything isn't good."
Reference: references/storytelling-design.md - Load for narrative elements, scroll-based storytelling, interactive techniques.
Frontend Aesthetics Guidelines
Typography
Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
Color & Theme
Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
Motion & Animation
Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Use anime.js for complex animations. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
Reference: references/animejs.md - Load when implementing anime.js v4 animations.
Spatial Composition
Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
Backgrounds & Visual Details
Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
Reference: references/implementation-guide.md - Load for detailed frontend design execution patterns.
Anti-Patterns: Avoid Generic AI Aesthetics
NEVER use:
- 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
Variation Principle: No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
Interpret creatively and make unexpected choices that feel genuinely designed for the context.
Implementation Complexity Matching
Match implementation complexity to the aesthetic vision:
- Maximalist designs: Need elaborate code with extensive animations and effects
- Minimalist/refined designs: Need restraint, precision, careful attention to spacing, typography, and subtle details
- Elegance: Comes from executing the vision well
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
- Production-grade and functional
- Visually striking and memorable
- Cohesive with a clear aesthetic point-of-view
- Meticulously refined in every detail
IMPORTANT: Match implementation complexity to the 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.
Workflows
Workflow 1: Capture & Analyze Inspiration
Extract design guidelines from inspiration websites:
- Browse inspiration sites (Dribbble, Mobbin, Behance, Awwwards)
- Use chrome-devtools skill to capture full-screen screenshots
- Use ai-multimodal skill to analyze and extract design patterns
- Document findings in project design guidelines
Reference: references/workflows.md - Load for complete workflow steps and analysis checklist.
Workflow 2: Generate & Iterate Design Images
Create aesthetically pleasing designs through iteration:
- Define design prompt with style, colors, typography, audience
- Use ai-multimodal skill to generate design images
- Evaluate aesthetic quality (must score >= 7/10)
- Iterate until professional standards met
- Document final design decisions
Reference: references/workflows.md - Load for complete iteration process and quality standards.
UI Pattern Database
Curated reference database of UI/UX patterns, styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices. Use as a lookup tool to find proven design patterns and implementation guidance.
Prerequisites
Check if Python is installed:
python3 --version || python --version
If Python is not installed, install it based on user's OS:
macOS:
brew install python3
Ubuntu/Debian:
sudo apt update && sudo apt install python3
Windows:
winget install Python.Python.3.12
How to Use the Pattern Database
When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
Step 1: Analyze User Requirements
Extract key information from user request:
- Product type: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
- Style keywords: minimal, playful, professional, elegant, dark mode, etc.
- Industry: healthcare, fintech, gaming, education, etc.
- Stack: React, Vue, Next.js, or default to
html-tailwind
Step 2: Search Relevant Domains
Use search.py multiple times to gather comprehensive information. Search until you have enough context.
python3 .claude/skills/ui-ux-design/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
Recommended search order:
- Product - Get style recommendations for product type
- Style - Get detailed style guide (colors, effects, frameworks)
- Typography - Get font pairings with Google Fonts imports
- Color - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
- Landing - Get page structure (if landing page)
- Chart - Get chart recommendations (if dashboard/analytics)
- UX - Get best practices and anti-patterns
- Stack - Get stack-specific guidelines (default: html-tailwind)
Step 3: Stack Guidelines (Default: html-tailwind)
If user doesn't specify a stack, default to html-tailwind.
python3 .claude/skills/ui-ux-design/scripts/search.py "<keyword>" --stack html-tailwind
Available stacks: html-tailwind, react, nextjs, vue, svelte, swiftui, react-native, flutter
Available Domains
| Domain |
Use For |
Example Keywords |
product |
Product type recommendations |
SaaS, e-commerce, portfolio, healthcare, beauty, service |
style |
UI styles, colors, effects |
glassmorphism, minimalism, dark mode, brutalism |
typography |
Font pairings, Google Fonts |
elegant, playful, professional, modern |
color |
Color palettes by product type |
saas, ecommerce, healthcare, beauty, fintech, service |
landing |
Page structure, CTA strategies |
hero, hero-centric, testimonial, pricing, social-proof |
chart |
Chart types, library recommendations |
trend, comparison, timeline, funnel, pie |
ux |
Best practices, anti-patterns |
animation, accessibility, z-index, loading |
prompt |
AI prompts, CSS keywords |
(style name) |
Tips for Better Results
- Be specific with keywords - "healthcare SaaS dashboard" > "app"
- Search multiple times - Different keywords reveal different insights
- Combine domains - Style + Typography + Color = Complete design system
- Always check UX - Search "animation", "z-index", "accessibility" for common issues
- Use stack flag - Get implementation-specific best practices
- Iterate - If first search doesn't match, try different keywords
Common Rules for Professional UI
These are frequently overlooked issues that make UI look unprofessional:
Icons & Visual Elements
| Rule |
Do |
Don't |
| No emoji icons |
Use SVG icons (Heroicons, Lucide, Simple Icons) |
Use emojis like as UI icons |
| Stable hover states |
Use color/opacity transitions on hover |
Use scale transforms that shift layout |
| Correct brand logos |
Research official SVG from Simple Icons |
Guess or use incorrect logo paths |
| Consistent icon sizing |
Use fixed viewBox (24x24) with w-6 h-6 |
Mix different icon sizes randomly |
Interaction & Cursor
| Rule |
Do |
Don't |
| Cursor pointer |
Add cursor-pointer to all clickable/hoverable cards |
Leave default cursor on interactive elements |
| Hover feedback |
Provide visual feedback (color, shadow, border) |
No indication element is interactive |
| Smooth transitions |
Use transition-colors duration-200 |
Instant state changes or too slow (>500ms) |
Light/Dark Mode Contrast
| Rule |
Do |
Don't |
| Glass card light mode |
Use bg-white/80 or higher opacity |
Use bg-white/10 (too transparent) |
| Text contrast light |
Use #0F172A (slate-900) for text |
Use #94A3B8 (slate-400) for body text |
| Muted text light |
Use #475569 (slate-600) minimum |
Use gray-400 or lighter |
| Border visibility |
Use border-gray-200 in light mode |
Use border-white/10 (invisible) |
Layout & Spacing
| Rule |
Do |
Don't |
| Floating navbar |
Add top-4 left-4 right-4 spacing |
Stick navbar to top-0 left-0 right-0 |
| Content padding |
Account for fixed navbar height |
Let content hide behind fixed elements |
| Consistent max-width |
Use same max-w-6xl or max-w-7xl |
Mix different container widths |
Pre-Delivery Checklist
Before delivering UI code, verify these items:
Visual Quality
Interaction
Light/Dark Mode
Layout
Accessibility
Web Interface Guidelines Review
Review files for compliance with Web Interface Guidelines.
How It Works
- Fetch the latest guidelines from the source URL below
- Read the specified files (or prompt user for files/pattern)
- Check against all rules in the fetched guidelines
- Output findings in the terse
file:line format
Guidelines Source
Fetch fresh guidelines before each review:
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
When a user provides a file or pattern argument:
- Fetch guidelines from the source URL above
- Read the specified files
- Apply all rules from the fetched guidelines
- Output findings using the format specified in the guidelines
If no files specified, ask the user which files to review.
Design Documentation
Create Design Guidelines
Use assets/design-guideline-template.md to document:
- Color patterns & psychology
- Typography system & hierarchy
- Layout principles & spacing
- Component styling standards
- Accessibility considerations
- Design highlights & rationale
Save in project ./docs/design-guideline.md.
Create Design Story
Use assets/design-story-template.md to document:
- Narrative elements & themes
- Emotional journey
- User journey & peak moments
- Design decision rationale
Save in project ./docs/design-story.md.
Related Skills Integration
- ai-multimodal: Analyze documents, screenshots & videos, generate design images, evaluate aesthetic quality using Gemini API
- chrome-devtools: Capture screenshots from inspiration websites, navigate pages, interact with elements
- media-processing: Refine generated images (FFmpeg for video, ImageMagick for images)
- ui-styling: Implement designs with shadcn/ui components + Tailwind CSS
- web-frameworks: Build with Next.js, React, Vue
Reference: references/design-resources.md - Load for inspiration platforms, design systems, AI tools, MCP integrations.
Key Principles
- Aesthetic standards come from humans, not AI - study quality examples
- Choose a BOLD aesthetic direction and execute with precision
- Iterate based on analysis - never settle for first output (minimum 7/10 quality)
- Balance beauty with functionality and accessibility
- Document decisions for consistency across development
- Use progressive disclosure in design - reveal complexity gradually
- Match implementation complexity to aesthetic vision
- Avoid generic AI aesthetics - create context-specific character
Remember: Claude is 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: frontend-design-153description: Create distinctive, production-grade frontend interfaces with high design quality. Visual design intelligence, UI/UX aesthetics, and web interface guidelines compliance. Integrates: chrome-devtools, ai-multimodal, media-processing. Capabilities: design analysis, visual hierarchy, color theory, typography, micro-interactions, animation, design systems, accessibility, pattern database search. Actions: analyze, design, create, capture, evaluate, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Use when: building beautiful UIs, analyzing design inspiration, implementing visual hierarchy, adding animations/micro-interactions, creating design systems, evaluating aesthetic quality, capturing design screenshots, reviewing UI code for compliance, building web components, pages, artifacts, posters, or applications.4license: Complete terms in LICENSE.txt5---6
7# Frontend Design
8
9Create aesthetically beautiful, distinctive, production-grade frontend interfaces by following proven design principles, systematic workflows, and comprehensive analysis techniques. This skill combines design thinking, frontend implementation patterns, searchable pattern databases, and web interface guidelines compliance.
10
11## When to Use
12
13- Building or designing user interfaces (websites, landing pages, dashboards, React components, HTML/CSS layouts)
14- Analyzing designs from inspiration websites (Dribbble, Mobbin, Behance, Awwwards)
15- Generating design images and evaluating aesthetic quality
16- Implementing visual hierarchy, typography, color theory
17- Adding micro-interactions and animations
18- Creating design documentation and style guides
19- Building production-grade frontend interfaces with distinctive aesthetics
20- Reviewing UI code for Web Interface Guidelines compliance
21- Styling/beautifying any web UI
22
23## Core Philosophy
24
25### Design Thinking
26
27Before coding, understand the context and commit to a BOLD aesthetic direction:
28- **Purpose**: What problem does this interface solve? Who uses it?
29- **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
30- **Constraints**: Technical requirements (framework, performance, accessibility).
31- **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
32
33**CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
34
35### Progressive Excellence
36
37**Evidence-Based Aesthetics**: AI lacks aesthetic sense - standards must come from analyzing high-quality examples and aligning with market tastes. Study existing designs, identify patterns, extract principles.
38
391. **BEAUTIFUL**: Understanding Aesthetics - Study existing designs, identify patterns, extract principles.
40 **Reference**: `references/design-principles.md` - Load for visual hierarchy, typography, color theory, white space principles.
41
422. **RIGHT**: Ensuring Functionality - Beautiful designs lacking usability are worthless. Study design systems, component architecture, accessibility requirements.
43 **Reference**: `references/design-principles.md` - Load for design systems, component libraries, WCAG accessibility standards.
44
453. **SATISFYING**: Micro-Interactions - Incorporate subtle animations with appropriate timing (150-300ms), easing curves (ease-out for entry, ease-in for exit), sequential delays.
46 **Reference**: `references/micro-interactions.md` - Load for duration guidelines, easing curves, performance optimization.
47
484. **PEAK**: Storytelling Through Design - Elevate with narrative elements - parallax effects, particle systems, thematic consistency. Use restraint: "too much of anything isn't good."
49 **Reference**: `references/storytelling-design.md` - Load for narrative elements, scroll-based storytelling, interactive techniques.
50
51## Frontend Aesthetics Guidelines
52
53### Typography
54Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
55
56### Color & Theme
57Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
58
59### Motion & Animation
60Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Use anime.js for complex animations. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
61
62**Reference**: `references/animejs.md` - Load when implementing anime.js v4 animations.
63
64### Spatial Composition
65Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
66
67### Backgrounds & Visual Details
68Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
69
70**Reference**: `references/implementation-guide.md` - Load for detailed frontend design execution patterns.
71
72## Anti-Patterns: Avoid Generic AI Aesthetics
73
74NEVER use:
75- Overused font families (Inter, Roboto, Arial, system fonts)
76- Cliched color schemes (particularly purple gradients on white backgrounds)
77- Predictable layouts and component patterns
78- Cookie-cutter design that lacks context-specific character
79
80**Variation Principle**: No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
81
82Interpret creatively and make unexpected choices that feel genuinely designed for the context.
83
84## Implementation Complexity Matching
85
86Match implementation complexity to the aesthetic vision:
87- **Maximalist designs**: Need elaborate code with extensive animations and effects
88- **Minimalist/refined designs**: Need restraint, precision, careful attention to spacing, typography, and subtle details
89- **Elegance**: Comes from executing the vision well
90
91Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
92- Production-grade and functional
93- Visually striking and memorable
94- Cohesive with a clear aesthetic point-of-view
95- Meticulously refined in every detail
96
97**IMPORTANT**: Match implementation complexity to the 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.
98
99## Workflows
100
101### Workflow 1: Capture & Analyze Inspiration
102
103Extract design guidelines from inspiration websites:
1041. Browse inspiration sites (Dribbble, Mobbin, Behance, Awwwards)
1052. Use **chrome-devtools** skill to capture full-screen screenshots
1063. Use **ai-multimodal** skill to analyze and extract design patterns
1074. Document findings in project design guidelines
108
109**Reference**: `references/workflows.md` - Load for complete workflow steps and analysis checklist.
110
111### Workflow 2: Generate & Iterate Design Images
112
113Create aesthetically pleasing designs through iteration:
1141. Define design prompt with style, colors, typography, audience
1152. Use **ai-multimodal** skill to generate design images
1163. Evaluate aesthetic quality (must score >= 7/10)
1174. Iterate until professional standards met
1185. Document final design decisions
119
120**Reference**: `references/workflows.md` - Load for complete iteration process and quality standards.
121
122## UI Pattern Database
123
124Curated reference database of UI/UX patterns, styles, color palettes, font pairings, chart types, product recommendations, UX guidelines, and stack-specific best practices. Use as a lookup tool to find proven design patterns and implementation guidance.
125
126### Prerequisites
127
128Check if Python is installed:
129
130```bash
131python3 --version || python --version
132```
133
134If Python is not installed, install it based on user's OS:
135
136**macOS:**
137```bash
138brew install python3
139```
140
141**Ubuntu/Debian:**
142```bash
143sudo apt update && sudo apt install python3
144```
145
146**Windows:**
147```powershell
148winget install Python.Python.3.12
149```
150
151### How to Use the Pattern Database
152
153When user requests UI/UX work (design, build, create, implement, review, fix, improve), follow this workflow:
154
155**Step 1: Analyze User Requirements**
156
157Extract key information from user request:
158- **Product type**: SaaS, e-commerce, portfolio, dashboard, landing page, etc.
159- **Style keywords**: minimal, playful, professional, elegant, dark mode, etc.
160- **Industry**: healthcare, fintech, gaming, education, etc.
161- **Stack**: React, Vue, Next.js, or default to `html-tailwind`
162
163**Step 2: Search Relevant Domains**
164
165Use `search.py` multiple times to gather comprehensive information. Search until you have enough context.
166
167```bash
168python3 .claude/skills/ui-ux-design/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
169```
170
171**Recommended search order:**
172
1731. **Product** - Get style recommendations for product type
1742. **Style** - Get detailed style guide (colors, effects, frameworks)
1753. **Typography** - Get font pairings with Google Fonts imports
1764. **Color** - Get color palette (Primary, Secondary, CTA, Background, Text, Border)
1775. **Landing** - Get page structure (if landing page)
1786. **Chart** - Get chart recommendations (if dashboard/analytics)
1797. **UX** - Get best practices and anti-patterns
1808. **Stack** - Get stack-specific guidelines (default: html-tailwind)
181
182**Step 3: Stack Guidelines (Default: html-tailwind)**
183
184If user doesn't specify a stack, **default to `html-tailwind`**.
185
186```bash
187python3 .claude/skills/ui-ux-design/scripts/search.py "<keyword>" --stack html-tailwind
188```
189
190Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`
191
192### Available Domains
193
194| Domain | Use For | Example Keywords |
195|--------|---------|------------------|
196| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty, service |
197| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism |
198| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern |
199| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech, service |
200| `landing` | Page structure, CTA strategies | hero, hero-centric, testimonial, pricing, social-proof |
201| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie |
202| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading |
203| `prompt` | AI prompts, CSS keywords | (style name) |
204
205### Tips for Better Results
206
2071. **Be specific with keywords** - "healthcare SaaS dashboard" > "app"
2082. **Search multiple times** - Different keywords reveal different insights
2093. **Combine domains** - Style + Typography + Color = Complete design system
2104. **Always check UX** - Search "animation", "z-index", "accessibility" for common issues
2115. **Use stack flag** - Get implementation-specific best practices
2126. **Iterate** - If first search doesn't match, try different keywords
213
214## Common Rules for Professional UI
215
216These are frequently overlooked issues that make UI look unprofessional:
217
218### Icons & Visual Elements
219
220| Rule | Do | Don't |
221|------|----|----- |
222| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like as UI icons |
223| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |
224| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |
225| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |
226
227### Interaction & Cursor
228
229| Rule | Do | Don't |
230|------|----|----- |
231| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |
232| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |
233| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |
234
235### Light/Dark Mode Contrast
236
237| Rule | Do | Don't |
238|------|----|----- |
239| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |
240| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |
241| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter |
242| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |
243
244### Layout & Spacing
245
246| Rule | Do | Don't |
247|------|----|----- |
248| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |
249| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |
250| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths |
251
252## Pre-Delivery Checklist
253
254Before delivering UI code, verify these items:
255
256### Visual Quality
257- [ ] No emojis used as icons (use SVG instead)
258- [ ] All icons from consistent icon set (Heroicons/Lucide)
259- [ ] Brand logos are correct (verified from Simple Icons)
260- [ ] Hover states don't cause layout shift
261- [ ] Use theme colors directly (bg-primary) not var() wrapper
262
263### Interaction
264- [ ] All clickable elements have `cursor-pointer`
265- [ ] Hover states provide clear visual feedback
266- [ ] Transitions are smooth (150-300ms)
267- [ ] Focus states visible for keyboard navigation
268
269### Light/Dark Mode
270- [ ] Light mode text has sufficient contrast (4.5:1 minimum)
271- [ ] Glass/transparent elements visible in light mode
272- [ ] Borders visible in both modes
273- [ ] Test both modes before delivery
274
275### Layout
276- [ ] Floating elements have proper spacing from edges
277- [ ] No content hidden behind fixed navbars
278- [ ] Responsive at 320px, 768px, 1024px, 1440px
279- [ ] No horizontal scroll on mobile
280
281### Accessibility
282- [ ] All images have alt text
283- [ ] Form inputs have labels
284- [ ] Color is not the only indicator
285- [ ] `prefers-reduced-motion` respected
286
287## Web Interface Guidelines Review
288
289Review files for compliance with Web Interface Guidelines.
290
291### How It Works
292
2931. Fetch the latest guidelines from the source URL below
2942. Read the specified files (or prompt user for files/pattern)
2953. Check against all rules in the fetched guidelines
2964. Output findings in the terse `file:line` format
297
298### Guidelines Source
299
300Fetch fresh guidelines before each review:
301
302```
303https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
304```
305
306Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
307
308When a user provides a file or pattern argument:
3091. Fetch guidelines from the source URL above
3102. Read the specified files
3113. Apply all rules from the fetched guidelines
3124. Output findings using the format specified in the guidelines
313
314If no files specified, ask the user which files to review.
315
316## Design Documentation
317
318### Create Design Guidelines
319Use `assets/design-guideline-template.md` to document:
320- Color patterns & psychology
321- Typography system & hierarchy
322- Layout principles & spacing
323- Component styling standards
324- Accessibility considerations
325- Design highlights & rationale
326
327Save in project `./docs/design-guideline.md`.
328
329### Create Design Story
330Use `assets/design-story-template.md` to document:
331- Narrative elements & themes
332- Emotional journey
333- User journey & peak moments
334- Design decision rationale
335
336Save in project `./docs/design-story.md`.
337
338## Related Skills Integration
339
340- **ai-multimodal**: Analyze documents, screenshots & videos, generate design images, evaluate aesthetic quality using Gemini API
341- **chrome-devtools**: Capture screenshots from inspiration websites, navigate pages, interact with elements
342- **media-processing**: Refine generated images (FFmpeg for video, ImageMagick for images)
343- **ui-styling**: Implement designs with shadcn/ui components + Tailwind CSS
344- **web-frameworks**: Build with Next.js, React, Vue
345
346**Reference**: `references/design-resources.md` - Load for inspiration platforms, design systems, AI tools, MCP integrations.
347
348## Key Principles
349
3501. Aesthetic standards come from humans, not AI - study quality examples
3512. Choose a BOLD aesthetic direction and execute with precision
3523. Iterate based on analysis - never settle for first output (minimum 7/10 quality)
3534. Balance beauty with functionality and accessibility
3545. Document decisions for consistency across development
3556. Use progressive disclosure in design - reveal complexity gradually
3567. Match implementation complexity to aesthetic vision
3578. Avoid generic AI aesthetics - create context-specific character
358
359Remember: Claude is 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.