--- name: Frontend Design description: Create production-grade, distinctive frontend interfaces with modern UX/UI patterns for web applications --- # Frontend Design This skill guides you in creating exceptional, memorable frontend user interfaces that stand out with professional design quality. ## When to Use This Skill Use this skill when you need to: - Design and build distinctive, professional user interfaces - Create unique visual experiences that reflect brand identity - Implement modern UX/UI patterns with accessibility in mind - Build responsive, performant frontend applications - Avoid generic, template-like "AI slop" designs ## Core Principles ### 1. Distinctive Design - **Intentional choices**: Make deliberate design decisions that serve the user - **Have a point of view**: Create interfaces with clear visual direction - **Be memorable**: Design experiences that users remember - **Show personality**: Reflect brand or product identity clearly ### 2. Production Quality - **Pixel-perfect**: Attention to spacing, alignment, typography - **Responsive**: Works beautifully on all screen sizes - **Performant**: Fast load times, smooth animations - **Accessible**: WCAG 2.1 AA compliant minimum ### 3. Modern Patterns - **Current best practices**: Use contemporary design patterns - **Progressive enhancement**: Core functionality works everywhere - **Mobile-first**: Design for smallest screens first - **Component-driven**: Reusable, maintainable code ## Design Process ### Step 1: Understand Context Before writing code, analyze: - **Purpose**: What problem does this solve? - **Audience**: Who will use this? - **Brand**: What's the personality/identity? - **Constraints**: Technical, business, accessibility requirements ### Step 2: Choose an Aesthetic Select a design direction that fits the context: **Minimalist**: Clean, spacious, focused - High contrast - Generous whitespace - Limited color palette - System fonts or elegant serifs **Maximalist**: Bold, rich, expressive - Layered elements - Rich colors and gradients - Custom typography - Visual hierarchy through size/weight **Brutalist**: Raw, honest, functional - Stark contrasts - Monospace fonts - Unpolished aesthetic - Clear structure **Neumorphic**: Soft, tactile, modern - Soft shadows and highlights - Subtle depth - Limited colors - Gentle animations **Glassmorphic**: Transparent, layered, sleek - Frosted glass effects - Backdrop blur - Light transparency - Depth through layering ### Step 3: Implement with Quality Focus on: - **Typography**: Hierarchy, readability, rhythm - **Color**: Purposeful palette, contrast, meaning - **Spacing**: Consistent scale, breathing room - **Motion**: Subtle, purposeful animations - **Components**: Well-structured, reusable elements ## Code Examples ### Example 1: Modern Hero Section ```tsx import React from 'react'; export function Hero() { return (
{/* Animated background */}
{/* Content */}

Build Something Remarkable

A design system that helps you create memorable, accessible, and performant user interfaces.

); } ``` ### Example 2: Glassmorphic Card Component ```tsx interface CardProps { title: string; description: string; icon: React.ReactNode; } export function GlassCard({ title, description, icon }: CardProps) { return (
{/* Glow effect on hover */}
{/* Card */}
{icon}

{title}

{description}

); } ``` ### Example 3: Minimalist Form ```tsx export function MinimalistForm() { return (