Frontend Enhancer
Overview
The Frontend Enhancer skill transforms Next.js applications into visually stunning, modern web experiences. It provides production-ready components, comprehensive design guidelines, curated color palettes, smooth animations, and flexible layout templates optimized for responsiveness and accessibility.
When to Use This Skill
Invoke this skill when:
- Improving the visual appearance of an existing application
- Creating new UI components with modern styling
- Selecting color schemes and design themes
- Adding animations and transitions
- Building responsive layouts for different screen sizes
- Implementing hero sections, feature grids, or landing pages
- Enhancing user experience with better visual hierarchy
- Applying consistent design patterns across an application
Core Capabilities
1. Component Library
Use pre-built, production-ready React components with multiple variants and states:
Button Component (assets/button-variants.tsx):
- Variants: primary, secondary, outline, ghost, danger
- Sizes: sm, md, lg
- Loading states with animated spinner
- Full TypeScript support
- Accessibility features built-in
Card Component (assets/card-variants.tsx):
- Variants: default, bordered, elevated, interactive
- Subcomponents: CardHeader, CardTitle, CardDescription, CardContent, CardFooter
- Hover effects and transitions
- Flexible padding options
Input Components (assets/input-variants.tsx):
- Text inputs with validation states
- Textarea component
- Left/right icon support
- Error and helper text display
- Label integration
- Full accessibility support
Implementation workflow:
- Copy the desired component file from
assets/ to your project's components directory
- Ensure the
cn utility function exists (see assets/utils-cn.ts)
- Customize colors, spacing, or variants to match your brand
- Import and use the component in your pages
2. Layout Templates
Use pre-designed, responsive layout patterns for common page sections:
Hero Section (assets/layout-hero-section.tsx):
- Three variants: centered, split, minimal
- Support for CTAs (primary and secondary)
- Optional background gradients
- Image/illustration support
- Built-in animations
Feature Grid (assets/layout-feature-grid.tsx):
- Configurable columns (2, 3, or 4)
- Icon integration
- Staggered animations
- Hover effects
- Fully responsive
Implementation workflow:
- Copy the layout component from
assets/ to your components directory
- Customize the props and content to match your needs
- Integrate with your existing pages
- Adjust styling as needed for your brand
3. Design System Guidelines
Reference comprehensive design principles for consistent, professional interfaces:
Design Principles (references/design_principles.md):
- Visual hierarchy best practices
- Spacing and rhythm guidelines
- Typography recommendations
- Color theory and usage
- Consistency standards
- Responsiveness strategies
- Accessibility guidelines (WCAG AA/AAA)
- Common layout patterns
When to reference:
- Starting a new design
- Making decisions about visual hierarchy
- Ensuring accessibility compliance
- Establishing consistency across the app
- Reviewing design quality
How to use:
Read references/design_principles.md to understand best practices, then apply them to your specific design challenges. The document covers both theory and practical implementation.
4. Color Palettes
Access professionally curated color schemes optimized for modern web applications:
Available Palettes (references/color_palettes.md):
- Corporate Blue - Professional, trustworthy (business apps, SaaS)
- Vibrant Purple - Creative, modern (creative tools, portfolios)
- Minimalist Gray - Clean, sophisticated (minimalist designs)
- Warm Sunset - Energetic, friendly (consumer apps, e-commerce)
- Ocean Fresh - Calm, professional (health, finance apps)
- Dark Mode - Modern, eye-friendly (developer tools, dashboards)
Each palette includes:
- Primary and secondary colors
- Accent colors
- Background and surface colors
- Text colors (primary and secondary)
- Semantic colors (success, warning, error)
- Border colors
Implementation options:
- Tailwind CSS: Add colors to
tailwind.config.js (examples provided)
- CSS Variables: Use custom properties in global CSS (examples provided)
- Inline styles: Reference hex codes directly in components
Selection workflow:
- Review
references/color_palettes.md to see all available palettes
- Consider your application's purpose and brand identity
- Choose a palette that matches your goals
- Implement using Tailwind config or CSS variables
- Adjust specific colors if needed to match your brand
5. Animations and Transitions
Add smooth, professional animations using pre-built CSS classes and keyframes:
Animation Library (assets/animations.css):
- Fade animations (fadeIn, fadeOut, fadeInUp, fadeInDown)
- Slide animations (slideInLeft, slideInRight)
- Scale animations (scaleIn, scaleOut)
- Utility animations (bounce, pulse, spin)
- Skeleton loading (shimmer effect)
- Hover effects (lift, glow, scale)
- Stagger delays for list animations
Accessibility:
All animations respect prefers-reduced-motion for accessibility compliance.
Implementation workflow:
- Copy
assets/animations.css to your global CSS file (or create a separate animations file)
- Apply utility classes like
animate-fade-in-up, hover-lift, etc.
- Use stagger classes for sequential animations in lists
- Customize duration and easing if needed
Best practices:
- Keep animations subtle (200-300ms for micro-interactions)
- Use animations to guide user attention
- Avoid excessive motion that distracts
- Always test with
prefers-reduced-motion enabled
Enhancement Workflow
Follow this systematic approach when enhancing a frontend application:
Step 1: Assess Current State
- Identify areas lacking visual polish
- Note inconsistent styling patterns
- Check responsive behavior
- Review accessibility issues
- Evaluate color scheme and typography
Step 2: Select Design Direction
- Choose a color palette from
references/color_palettes.md
- Review design principles in
references/design_principles.md
- Decide on component variants and styles
- Plan layout improvements
Step 3: Implement Foundation
- Set up the
cn utility function (assets/utils-cn.ts)
- Configure chosen color palette (Tailwind or CSS variables)
- Add animation CSS (
assets/animations.css) to global styles
- Ensure consistent spacing scale
Step 4: Apply Components
- Replace basic elements with enhanced components from
assets/
- Implement layout templates for key pages
- Apply consistent styling across the application
- Add animations and transitions
Step 5: Refine and Polish
- Test responsiveness across device sizes
- Verify accessibility (keyboard navigation, contrast, screen readers)
- Ensure consistent hover/focus states
- Optimize performance (check animation performance)
- Test with
prefers-reduced-motion
Step 6: Final Review
- Check visual hierarchy on all pages
- Verify color consistency
- Test all interactive states
- Validate responsive breakpoints
- Review accessibility compliance
Utility Function Setup
Most components require the cn utility function for class name merging. To set it up:
- Copy
assets/utils-cn.ts to your project's lib/utils.ts
- Install dependencies:
npm install clsx tailwind-merge
- Import in components:
import { cn } from '@/lib/utils';
Responsive Design Strategy
All components and layouts follow a mobile-first approach:
- Base styles - Optimized for mobile (320px+)
- sm breakpoint - Small tablets (640px+)
- md breakpoint - Tablets (768px+)
- lg breakpoint - Desktops (1024px+)
- xl breakpoint - Large desktops (1280px+)
Test each breakpoint to ensure proper layout and readability.
Accessibility Checklist
Ensure all enhanced interfaces meet these standards:
Customization Guide
To adapt components and templates to your brand:
- Colors: Update color values in palette config or component files
- Typography: Adjust font sizes, weights, and families
- Spacing: Modify padding and margin values
- Border Radius: Change rounded corners (e.g.,
rounded-lg to rounded-xl)
- Shadows: Adjust shadow intensity (e.g.,
shadow-md to shadow-lg)
- Animations: Modify duration and easing functions
Resources Summary
This skill includes:
references/
color_palettes.md - Six professionally designed color schemes with implementation examples
design_principles.md - Comprehensive design guidelines covering visual hierarchy, typography, accessibility, and common patterns
assets/
button-variants.tsx - Modern button component with 5 variants and 3 sizes
card-variants.tsx - Flexible card component with subcomponents
input-variants.tsx - Input and textarea components with validation states
layout-hero-section.tsx - Hero section with 3 layout variants
layout-feature-grid.tsx - Responsive feature grid with configurable columns
animations.css - Complete animation library with accessibility support
utils-cn.ts - Utility function for class name merging
Tips for Success
- Start with a plan: Review design principles before making changes
- Choose one palette: Stick to a single color scheme for consistency
- Test on real devices: Emulators don't always show true responsive behavior
- Keep it simple: Modern design favors simplicity over complexity
- Prioritize accessibility: Design for all users from the start
- Iterate based on feedback: Show designs to users and refine
- Maintain consistency: Use the same patterns throughout your application
- Performance matters: Keep animations smooth (60fps) and optimize images
Common Use Cases
Enhancing an Existing App
- Select a color palette and implement it
- Replace basic buttons/inputs with enhanced components
- Add subtle animations to improve feedback
- Review and improve spacing consistency
- Ensure responsive behavior across devices
Building a Landing Page
- Use hero section layout as the focal point
- Add feature grid to showcase key features
- Implement consistent button styles for CTAs
- Add staggered animations for visual interest
- Test responsiveness thoroughly
Creating a Dashboard
- Use card components for data sections
- Implement consistent spacing and hierarchy
- Choose a professional color palette
- Add skeleton loaders for data fetching
- Ensure touch-friendly controls on mobile
Redesigning Forms
- Replace inputs with enhanced input components
- Add clear error and validation states
- Ensure proper label associations
- Implement loading states for submission
- Test keyboard navigation flow
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: frontend-enhancer-23description: This skill should be used when enhancing the visual design and aesthetics of Next.js web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. 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. Use when this capability is needed.4---56# Frontend Enhancer78## Overview910The Frontend Enhancer skill transforms Next.js applications into visually stunning, modern web experiences. It provides production-ready components, comprehensive design guidelines, curated color palettes, smooth animations, and flexible layout templates optimized for responsiveness and accessibility.1112## When to Use This Skill1314Invoke this skill when:15- Improving the visual appearance of an existing application16- Creating new UI components with modern styling17- Selecting color schemes and design themes18- Adding animations and transitions19- Building responsive layouts for different screen sizes20- Implementing hero sections, feature grids, or landing pages21- Enhancing user experience with better visual hierarchy22- Applying consistent design patterns across an application2324## Core Capabilities2526### 1. Component Library2728Use pre-built, production-ready React components with multiple variants and states:2930**Button Component** (`assets/button-variants.tsx`):31- Variants: primary, secondary, outline, ghost, danger32- Sizes: sm, md, lg33- Loading states with animated spinner34- Full TypeScript support35- Accessibility features built-in3637**Card Component** (`assets/card-variants.tsx`):38- Variants: default, bordered, elevated, interactive39- Subcomponents: CardHeader, CardTitle, CardDescription, CardContent, CardFooter40- Hover effects and transitions41- Flexible padding options4243**Input Components** (`assets/input-variants.tsx`):44- Text inputs with validation states45- Textarea component46- Left/right icon support47- Error and helper text display48- Label integration49- Full accessibility support5051**Implementation workflow:**521. Copy the desired component file from `assets/` to your project's components directory532. Ensure the `cn` utility function exists (see `assets/utils-cn.ts`)543. Customize colors, spacing, or variants to match your brand554. Import and use the component in your pages5657### 2. Layout Templates5859Use pre-designed, responsive layout patterns for common page sections:6061**Hero Section** (`assets/layout-hero-section.tsx`):62- Three variants: centered, split, minimal63- Support for CTAs (primary and secondary)64- Optional background gradients65- Image/illustration support66- Built-in animations6768**Feature Grid** (`assets/layout-feature-grid.tsx`):69- Configurable columns (2, 3, or 4)70- Icon integration71- Staggered animations72- Hover effects73- Fully responsive7475**Implementation workflow:**761. Copy the layout component from `assets/` to your components directory772. Customize the props and content to match your needs783. Integrate with your existing pages794. Adjust styling as needed for your brand8081### 3. Design System Guidelines8283Reference comprehensive design principles for consistent, professional interfaces:8485**Design Principles** (`references/design_principles.md`):86- Visual hierarchy best practices87- Spacing and rhythm guidelines88- Typography recommendations89- Color theory and usage90- Consistency standards91- Responsiveness strategies92- Accessibility guidelines (WCAG AA/AAA)93- Common layout patterns9495**When to reference:**96- Starting a new design97- Making decisions about visual hierarchy98- Ensuring accessibility compliance99- Establishing consistency across the app100- Reviewing design quality101102**How to use:**103Read `references/design_principles.md` to understand best practices, then apply them to your specific design challenges. The document covers both theory and practical implementation.104105### 4. Color Palettes106107Access professionally curated color schemes optimized for modern web applications:108109**Available Palettes** (`references/color_palettes.md`):1101. **Corporate Blue** - Professional, trustworthy (business apps, SaaS)1112. **Vibrant Purple** - Creative, modern (creative tools, portfolios)1123. **Minimalist Gray** - Clean, sophisticated (minimalist designs)1134. **Warm Sunset** - Energetic, friendly (consumer apps, e-commerce)1145. **Ocean Fresh** - Calm, professional (health, finance apps)1156. **Dark Mode** - Modern, eye-friendly (developer tools, dashboards)116117Each palette includes:118- Primary and secondary colors119- Accent colors120- Background and surface colors121- Text colors (primary and secondary)122- Semantic colors (success, warning, error)123- Border colors124125**Implementation options:**1261. **Tailwind CSS**: Add colors to `tailwind.config.js` (examples provided)1272. **CSS Variables**: Use custom properties in global CSS (examples provided)1283. **Inline styles**: Reference hex codes directly in components129130**Selection workflow:**1311. Review `references/color_palettes.md` to see all available palettes1322. Consider your application's purpose and brand identity1333. Choose a palette that matches your goals1344. Implement using Tailwind config or CSS variables1355. Adjust specific colors if needed to match your brand136137### 5. Animations and Transitions138139Add smooth, professional animations using pre-built CSS classes and keyframes:140141**Animation Library** (`assets/animations.css`):142- Fade animations (fadeIn, fadeOut, fadeInUp, fadeInDown)143- Slide animations (slideInLeft, slideInRight)144- Scale animations (scaleIn, scaleOut)145- Utility animations (bounce, pulse, spin)146- Skeleton loading (shimmer effect)147- Hover effects (lift, glow, scale)148- Stagger delays for list animations149150**Accessibility:**151All animations respect `prefers-reduced-motion` for accessibility compliance.152153**Implementation workflow:**1541. Copy `assets/animations.css` to your global CSS file (or create a separate animations file)1552. Apply utility classes like `animate-fade-in-up`, `hover-lift`, etc.1563. Use stagger classes for sequential animations in lists1574. Customize duration and easing if needed158159**Best practices:**160- Keep animations subtle (200-300ms for micro-interactions)161- Use animations to guide user attention162- Avoid excessive motion that distracts163- Always test with `prefers-reduced-motion` enabled164165## Enhancement Workflow166167Follow this systematic approach when enhancing a frontend application:168169### Step 1: Assess Current State170- Identify areas lacking visual polish171- Note inconsistent styling patterns172- Check responsive behavior173- Review accessibility issues174- Evaluate color scheme and typography175176### Step 2: Select Design Direction177- Choose a color palette from `references/color_palettes.md`178- Review design principles in `references/design_principles.md`179- Decide on component variants and styles180- Plan layout improvements181182### Step 3: Implement Foundation183- Set up the `cn` utility function (`assets/utils-cn.ts`)184- Configure chosen color palette (Tailwind or CSS variables)185- Add animation CSS (`assets/animations.css`) to global styles186- Ensure consistent spacing scale187188### Step 4: Apply Components189- Replace basic elements with enhanced components from `assets/`190- Implement layout templates for key pages191- Apply consistent styling across the application192- Add animations and transitions193194### Step 5: Refine and Polish195- Test responsiveness across device sizes196- Verify accessibility (keyboard navigation, contrast, screen readers)197- Ensure consistent hover/focus states198- Optimize performance (check animation performance)199- Test with `prefers-reduced-motion`200201### Step 6: Final Review202- Check visual hierarchy on all pages203- Verify color consistency204- Test all interactive states205- Validate responsive breakpoints206- Review accessibility compliance207208## Utility Function Setup209210Most components require the `cn` utility function for class name merging. To set it up:2112121. Copy `assets/utils-cn.ts` to your project's `lib/utils.ts`2132. Install dependencies:214 ```bash215 npm install clsx tailwind-merge216 ```2173. Import in components:218 ```typescript219 import { cn } from '@/lib/utils';220 ```221222## Responsive Design Strategy223224All components and layouts follow a mobile-first approach:2252261. **Base styles** - Optimized for mobile (320px+)2272. **sm breakpoint** - Small tablets (640px+)2283. **md breakpoint** - Tablets (768px+)2294. **lg breakpoint** - Desktops (1024px+)2305. **xl breakpoint** - Large desktops (1280px+)231232Test each breakpoint to ensure proper layout and readability.233234## Accessibility Checklist235236Ensure all enhanced interfaces meet these standards:237238- [ ] Color contrast meets WCAG AA (4.5:1 for text)239- [ ] All interactive elements are keyboard accessible240- [ ] Focus indicators are visible and clear241- [ ] Semantic HTML is used (nav, main, article, etc.)242- [ ] Images have alt text243- [ ] Forms have proper labels244- [ ] Animations respect prefers-reduced-motion245- [ ] Touch targets are at least 44x44px246247## Customization Guide248249To adapt components and templates to your brand:2502511. **Colors**: Update color values in palette config or component files2522. **Typography**: Adjust font sizes, weights, and families2533. **Spacing**: Modify padding and margin values2544. **Border Radius**: Change rounded corners (e.g., `rounded-lg` to `rounded-xl`)2555. **Shadows**: Adjust shadow intensity (e.g., `shadow-md` to `shadow-lg`)2566. **Animations**: Modify duration and easing functions257258## Resources Summary259260This skill includes:261262### references/263- `color_palettes.md` - Six professionally designed color schemes with implementation examples264- `design_principles.md` - Comprehensive design guidelines covering visual hierarchy, typography, accessibility, and common patterns265266### assets/267- `button-variants.tsx` - Modern button component with 5 variants and 3 sizes268- `card-variants.tsx` - Flexible card component with subcomponents269- `input-variants.tsx` - Input and textarea components with validation states270- `layout-hero-section.tsx` - Hero section with 3 layout variants271- `layout-feature-grid.tsx` - Responsive feature grid with configurable columns272- `animations.css` - Complete animation library with accessibility support273- `utils-cn.ts` - Utility function for class name merging274275## Tips for Success2762771. **Start with a plan**: Review design principles before making changes2782. **Choose one palette**: Stick to a single color scheme for consistency2793. **Test on real devices**: Emulators don't always show true responsive behavior2804. **Keep it simple**: Modern design favors simplicity over complexity2815. **Prioritize accessibility**: Design for all users from the start2826. **Iterate based on feedback**: Show designs to users and refine2837. **Maintain consistency**: Use the same patterns throughout your application2848. **Performance matters**: Keep animations smooth (60fps) and optimize images285286## Common Use Cases287288### Enhancing an Existing App2891. Select a color palette and implement it2902. Replace basic buttons/inputs with enhanced components2913. Add subtle animations to improve feedback2924. Review and improve spacing consistency2935. Ensure responsive behavior across devices294295### Building a Landing Page2961. Use hero section layout as the focal point2972. Add feature grid to showcase key features2983. Implement consistent button styles for CTAs2994. Add staggered animations for visual interest3005. Test responsiveness thoroughly301302### Creating a Dashboard3031. Use card components for data sections3042. Implement consistent spacing and hierarchy3053. Choose a professional color palette3064. Add skeleton loaders for data fetching3075. Ensure touch-friendly controls on mobile308309### Redesigning Forms3101. Replace inputs with enhanced input components3112. Add clear error and validation states3123. Ensure proper label associations3134. Implement loading states for submission3145. Test keyboard navigation flow315316---317> Converted and distributed by [TomeVault](https://tomevault.io/claim/ailabs-393) — claim your Tome and manage your conversions.318<!-- tomevault:4.0:skill_md:2026-04-11 -->