Frontend Design
Create production-quality frontend interfaces that are visually distinctive, well-structured, and maintainable.
Core Principles
Design Quality
- •Avoid generic "AI-generated" aesthetics (excessive gradients, overused patterns)
- •Use whitespace intentionally for visual hierarchy
- •Ensure consistent spacing, typography scales, and color harmony
- •Design for real content, not lorem ipsum placeholders
Technical Standards
- •Write semantic HTML with proper accessibility (ARIA labels, keyboard navigation)
- •Use responsive design (mobile-first approach recommended)
- •Optimize for performance (minimal dependencies, efficient CSS)
- •Follow component-based architecture for reusability
Technology Selection
Select based on project context:
| Context | Recommended Stack |
|---|---|
| Interactive apps, SPAs | React + Tailwind CSS |
| Simple static pages | HTML + CSS (vanilla) |
| Vue ecosystem projects | Vue 3 + Tailwind CSS |
| Rapid prototyping | React + shadcn/ui |
Default to React + Tailwind CSS when no specific requirement exists.
Task Workflows
Landing Page / Website
- •
Structure Planning
- •Define sections: hero, features, CTA, footer
- •Plan responsive breakpoints
- •Identify key interactions
- •
Implementation
- •Start with mobile layout
- •Build section by section
- •Add micro-interactions last
- •
Quality Check
- •Test all breakpoints
- •Verify accessibility
- •Optimize images and assets
React/Vue Component
- •
Component Design
- •Define props interface clearly
- •Plan variants and states (hover, active, disabled)
- •Consider composition patterns
- •
Implementation
- •Build base component first
- •Add variants via props
- •Extract reusable sub-components
- •
Quality Check
- •Test all prop combinations
- •Verify keyboard accessibility
- •Document usage examples
Design Patterns
Color Usage
code
Primary: Use for main CTAs and key elements (sparingly) Secondary: Supporting elements, secondary actions Neutral: Text, backgrounds, borders (majority of UI) Accent: Highlights, success/error states
Typography Scale
code
Headings: Clear hierarchy (h1 > h2 > h3) Body: 16px base, 1.5 line-height for readability Small: 14px for captions, metadata
Spacing System
code
Use consistent increments: 4px, 8px, 16px, 24px, 32px, 48px, 64px Apply rhythm: same spacing within sections, larger between sections
Anti-Patterns to Avoid
- •Over-styling (excessive shadows, gradients, animations)
- •Inconsistent spacing and alignment
- •Poor color contrast (accessibility failure)
- •Hardcoded values instead of design tokens
- •Overly complex component hierarchies
- •Ignoring mobile/responsive design