Frontend Enhancer
Transform web applications into visually polished, human-designed experiences.
PREREQUISITE: Research First
Before using this skill, ALWAYS complete:
Skill(ui-research)
Research is mandatory to avoid generic AI-generated looks. See UI Inspiration Sources for source list.
When to Use
Use for:
- Improving styling and visual design
- Creating responsive layouts
- Adding animations and transitions
- Selecting color schemes
- Building modern UI patterns
- Enhancing aesthetics
Don't use when:
- Need inspiration first → use
ui-research (MANDATORY)
- UX flow design → use
generic-ux-designer
- Code architecture → use
generic-feature-developer
- Code review → use
generic-code-reviewer
Foundational References:
Research-Driven Enhancement Workflow
- Research - Use
ui-research skill first (5-10 examples minimum)
- Assess - Identify current gaps against research findings
- Plan - Define direction based on inspiration analysis
- Foundation - Set up colors, spacing, animations in theme
- Apply - Implement with human polish (not defaults)
- Anti-AI Check - Verify no generic AI patterns
- Refine - Test responsiveness, verify accessibility
- Review - Check hierarchy, consistency, performance
Color Palette Selection
| Palette |
Use Case |
| Corporate Blue |
Business apps, SaaS |
| Vibrant Purple |
Creative tools, portfolios |
| Minimalist Gray |
Clean, sophisticated |
| Warm Sunset |
Consumer apps, e-commerce |
| Ocean Fresh |
Health, finance apps |
| Dark Mode |
Developer tools, dashboards |
Each palette needs: Primary, Secondary, Accent, Background, Foreground, Muted, Success, Warning, Error
Component Patterns
Buttons
- Variants: primary, secondary, outline, ghost, danger
- Sizes: sm, md, lg
- States: loading, disabled
Cards
- Variants: default, bordered, elevated, interactive
- Subcomponents: Header, Title, Description, Content, Footer
Forms
- Clear focus states
- Validation feedback
- Helper text
- Required indicators
Animation Guidelines
GPU-Accelerated Only:
/* ✅ DO animate */
transform: translateY(-4px);
opacity: 0.8;
/* ❌ AVOID */
margin-top: -4px;
height: 100px;
Duration Guidelines:
- Micro-interactions: 100-200ms
- Transitions: 200-300ms
- Complex animations: 300-500ms
Accessibility:
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
Responsive Strategy
| Breakpoint |
Min Width |
Target |
| base |
0 |
Mobile |
| sm |
640px |
Large phones |
| md |
768px |
Tablets |
| lg |
1024px |
Laptops |
| xl |
1280px |
Desktops |
Accessibility Checklist
Layout Patterns
Hero Section
- Centered, split, or minimal variants
- Primary + secondary CTAs
- Optional background gradients
Feature Grid
- 2, 3, or 4 columns
- Icon + title + description
- Staggered animations
- Hover effects
Performance
- Bundle size awareness
- Lazy load heavy components
- Optimize images (WebP, responsive)
- 60fps animations
cn Utility Setup
// lib/utils.ts
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Before/After Pattern
When enhancing, document changes:
Before: Plain gray button, no hover state
After: Gradient primary button with hover lift effect
Avoiding the AI Look
Red Flags to Check
Before finalizing, ensure you DON'T have:
Human Touch Checklist
Ensure you DO have:
Quality Comparison
| Aspect |
Generic AI |
Human-Polished |
| Color |
Default blue |
Custom brand palette |
| Layout |
Perfect grid |
Intentional variation |
| Images |
Stock/generic |
Curated/custom |
| Copy |
Lorem ipsum |
Real, personality-rich |
| Motion |
Basic fades |
Purposeful, branded |
| Details |
None |
Hover states, feedback |
See Also
1---2name: frontend-enhancer-23description: This skill should be used when enhancing the visual design and aesthetics of web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. REQUIRES ui-research skill first. Use this skill for tasks like improving styling, creating responsive designs, implementing modern UI patterns, adding animations, selecting color schemes, or building aesthetically pleasing frontend interfaces.4---5
6# Frontend Enhancer
7
8Transform web applications into visually polished, human-designed experiences.
9
10## PREREQUISITE: Research First
11
12**Before using this skill, ALWAYS complete:**
13
14```
15Skill(ui-research)
16```
17
18Research is mandatory to avoid generic AI-generated looks. See [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md) for source list.
19
20---
21
22## When to Use
23
24**Use for:**
25
26- Improving styling and visual design
27- Creating responsive layouts
28- Adding animations and transitions
29- Selecting color schemes
30- Building modern UI patterns
31- Enhancing aesthetics
32
33**Don't use when:**
34
35- Need inspiration first → use `ui-research` (MANDATORY)
36- UX flow design → use `generic-ux-designer`
37- Code architecture → use `generic-feature-developer`
38- Code review → use `generic-code-reviewer`
39
40**Foundational References:**
41
42- [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md) - Research sources
43- [Design Patterns](../_shared/DESIGN_PATTERNS.md) - Visual tokens
44
45## Research-Driven Enhancement Workflow
46
471. **Research** - Use `ui-research` skill first (5-10 examples minimum)
482. **Assess** - Identify current gaps against research findings
493. **Plan** - Define direction based on inspiration analysis
504. **Foundation** - Set up colors, spacing, animations in theme
515. **Apply** - Implement with human polish (not defaults)
526. **Anti-AI Check** - Verify no generic AI patterns
537. **Refine** - Test responsiveness, verify accessibility
548. **Review** - Check hierarchy, consistency, performance
55
56## Color Palette Selection
57
58| Palette | Use Case |
59| --------------- | --------------------------- |
60| Corporate Blue | Business apps, SaaS |
61| Vibrant Purple | Creative tools, portfolios |
62| Minimalist Gray | Clean, sophisticated |
63| Warm Sunset | Consumer apps, e-commerce |
64| Ocean Fresh | Health, finance apps |
65| Dark Mode | Developer tools, dashboards |
66
67Each palette needs: Primary, Secondary, Accent, Background, Foreground, Muted, Success, Warning, Error
68
69## Component Patterns
70
71### Buttons
72
73- Variants: primary, secondary, outline, ghost, danger
74- Sizes: sm, md, lg
75- States: loading, disabled
76
77### Cards
78
79- Variants: default, bordered, elevated, interactive
80- Subcomponents: Header, Title, Description, Content, Footer
81
82### Forms
83
84- Clear focus states
85- Validation feedback
86- Helper text
87- Required indicators
88
89## Animation Guidelines
90
91**GPU-Accelerated Only:**
92
93```css
94/* ✅ DO animate */
95transform: translateY(-4px);
96opacity: 0.8;
97
98/* ❌ AVOID */
99margin-top: -4px;
100height: 100px;
101```
102
103**Duration Guidelines:**
104
105- Micro-interactions: 100-200ms
106- Transitions: 200-300ms
107- Complex animations: 300-500ms
108
109**Accessibility:**
110
111```css
112@media (prefers-reduced-motion: reduce) {
113 * {
114 animation: none !important;
115 transition: none !important;
116 }
117}
118```
119
120## Responsive Strategy
121
122| Breakpoint | Min Width | Target |
123| ---------- | --------- | ------------ |
124| base | 0 | Mobile |
125| sm | 640px | Large phones |
126| md | 768px | Tablets |
127| lg | 1024px | Laptops |
128| xl | 1280px | Desktops |
129
130## Accessibility Checklist
131
132- [ ] Color contrast >= 4.5:1 (WCAG AA)
133- [ ] Keyboard accessible
134- [ ] Visible focus indicators
135- [ ] Semantic HTML
136- [ ] Alt text on images
137- [ ] Form labels
138- [ ] Respects prefers-reduced-motion
139- [ ] Touch targets >= 44x44px
140
141## Layout Patterns
142
143### Hero Section
144
145- Centered, split, or minimal variants
146- Primary + secondary CTAs
147- Optional background gradients
148
149### Feature Grid
150
151- 2, 3, or 4 columns
152- Icon + title + description
153- Staggered animations
154- Hover effects
155
156## Performance
157
158- Bundle size awareness
159- Lazy load heavy components
160- Optimize images (WebP, responsive)
161- 60fps animations
162
163## cn Utility Setup
164
165```typescript
166// lib/utils.ts
167import { clsx, type ClassValue } from "clsx";
168import { twMerge } from "tailwind-merge";
169
170export function cn(...inputs: ClassValue[]) {
171 return twMerge(clsx(inputs));
172}
173```
174
175## Before/After Pattern
176
177When enhancing, document changes:
178
179```
180Before: Plain gray button, no hover state
181After: Gradient primary button with hover lift effect
182```
183
184## Avoiding the AI Look
185
186### Red Flags to Check
187
188Before finalizing, ensure you DON'T have:
189
190- [ ] Default blue/purple gradients
191- [ ] Perfectly symmetrical layouts
192- [ ] Generic blob/wave decorations
193- [ ] Undraw-style stock illustrations
194- [ ] "Hero with laptop mockup" cliché
195- [ ] Unchanged default color schemes
196- [ ] Cookie-cutter card grids
197- [ ] Overused glassmorphism/blur
198
199### Human Touch Checklist
200
201Ensure you DO have:
202
203- [ ] Custom color palette (not defaults)
204- [ ] Intentional layout asymmetry
205- [ ] Unique typography pairing
206- [ ] Real/custom imagery
207- [ ] Micro-interactions with personality
208- [ ] Brand-specific details
209- [ ] Thoughtful empty/loading states
210- [ ] Copy with character
211
212### Quality Comparison
213
214| Aspect | Generic AI | Human-Polished |
215| ----------- | ------------- | ---------------------- |
216| **Color** | Default blue | Custom brand palette |
217| **Layout** | Perfect grid | Intentional variation |
218| **Images** | Stock/generic | Curated/custom |
219| **Copy** | Lorem ipsum | Real, personality-rich |
220| **Motion** | Basic fades | Purposeful, branded |
221| **Details** | None | Hover states, feedback |
222
223---
224
225## See Also
226
227- [UI Inspiration Sources](../_shared/UI_INSPIRATION_SOURCES.md) - Research sources (USE FIRST)
228- [Design Patterns](../_shared/DESIGN_PATTERNS.md) - Visual design reference
229- [UX Principles](../_shared/UX_PRINCIPLES.md) - User experience
230- `ui-research` - Mandatory prerequisite skill
231- Project `CLAUDE.md` - Design constraints