--- name: frontend-aesthetics description: Use when creating UI designs to avoid generic "AI slop" aesthetics. Enforces distinctive typography, cohesive color systems, purposeful motion, and atmospheric backgrounds. Critical for landing pages, dashboards, and branded interfaces. allowed-tools: Read, Grep, Glob --- # Frontend Aesthetics Skill ## When to Use **ALWAYS use this skill when:** - Creating landing pages or marketing sites - Designing dashboards or admin interfaces - Building branded UI components - Reviewing designs for distinctiveness - Implementing visual polish and animations **DO NOT use when:** - Working on backend/API code - Writing tests - Quick prototypes that won't ship ## The Problem: Distributional Convergence Claude defaults to generic designs because safe, universally-acceptable choices dominate training data. This creates the "AI slop aesthetic": - Inter/Roboto fonts everywhere - Purple/blue gradients - Minimal animations - Flat, lifeless backgrounds - Evenly-distributed color palettes **This skill provides specific alternatives to break free from defaults.** ## Core Principles - **True dark themes** (not gray - actual dark tones) - **Single accent color** - pick one and use it consistently - **Professional, actionable UI** - data-dense, not decorative - **Subtle depth** - layered backgrounds, not flat ## Four Design Vectors ### 1. Typography **Avoid:** Inter, Roboto, Arial as PRIMARY fonts (they're fine as fallbacks) **Distinctive Alternatives:** ```css /* Headings: Bold, distinctive */ --font-heading: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif; /* Body: Clean, readable */ --font-body: 'Inter Variable', system-ui; /* Code/Data: Monospace with character */ --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* Other distinctive options */ /* Modern/Tech: Space Grotesk, Outfit, Manrope */ /* Premium: Playfair Display, Cormorant */ /* Friendly: Nunito, Quicksand, Poppins */ ``` **Weight Contrasts:** ```typescript // DO: Extreme weight variation

Dashboard

// 900

Subtitle

// 300 // DON'T: Minimal variation

Dashboard

// 600

Subtitle

// 500 ``` **Size Hierarchy:** ```typescript // DO: Clear visual hierarchy

Main Heading

// 48px

Section

// 24px

Body text

// 14px // DON'T: Unclear hierarchy

Main Heading

// Too small

Section

// Too similar ``` ### 2. Color System **Principles:** - **True dark base** - Use near-black, not gray (avoid gray-900, slate-900) - **Single accent color** - Pick ONE brand color for primary actions - **Semantic colors** - Green=success, Amber=warning, Red=error - **Text hierarchy** - Primary (bright), secondary (muted), disabled (dim) **Color Application:** ```typescript // DO: Dominant background + single accent
// DON'T: Evenly distributed colors (rainbow soup)
// DO: Define CSS variables for your brand :root { --bg-base: /* your true dark */; --bg-surface: /* slightly lighter */; --accent: /* your brand color */; --accent-hover: /* lighter variant */; } ``` ### 3. Motion & Animation **Principles:** - Use CSS for simple transitions - Use Framer Motion for orchestrated animations - Focus on high-impact moments (page load, state changes) - Stagger reveals for lists **CSS-Only Patterns:** ```typescript // DO: Smooth, purposeful transitions // DO: Staggered list reveals
Item 1
Item 2
``` **Framer Motion Patterns:** ```typescript import { motion } from 'framer-motion' // DO: Orchestrated page load const container = { hidden: { opacity: 0 }, show: { opacity: 1, transition: { staggerChildren: 0.1 } } } const item = { hidden: { opacity: 0, y: 20 }, show: { opacity: 1, y: 0 } } {items.map(i => ( {i} ))} // DON'T: Static, lifeless pages
{items.map(i =>
{i}
)}
``` ### 4. Backgrounds & Depth **Avoid:** Solid colors, flat backgrounds **Patterns:** ```typescript // DO: Layered gradients with atmospheric depth
{/* Gradient orb using brand color */}
{/* Secondary subtle orb */}
{/* Content */}
{children}
// DO: Subtle grid patterns
{children}
// DO: Card elevation with glow {content} ``` ## Anti-Patterns (The "Slop" List) **NEVER do these:** | Anti-Pattern | Why It's Bad | What To Do Instead | |--------------|--------------|-------------------| | Inter font everywhere | Generic, immediately recognizable as AI | Use distinctive fonts (Plus Jakarta Sans, etc.) | | `bg-gray-900` | Gray, not true dark | Use `bg-neutral-950` or custom true dark | | Purple/blue gradients | Overused AI aesthetic | Use single brand accent, solid colors | | Equal color distribution | No visual hierarchy | Dominant color + one accent | | No animations | Lifeless, static | Add purposeful micro-interactions | | Rounded-full everywhere | Childish, unprofessional | Mix rounded-lg with sharp corners | | White cards on dark bg | Too much contrast | Use subtle elevation with soft borders | | Generic icons | No brand identity | Use Lucide with consistent stroke width | ## Component Styling Examples ### Dashboard Card ```typescript // Professional dashboard style (use your brand color for accent) System Status
98.7%

Uptime this month

``` ### Button Hierarchy ```typescript // Primary - brand color, prominent // Secondary - ghost with border // Destructive - red, serious (semantic color) ``` ### Data Table ```typescript // Professional data display Project Status My Project Active
``` ## Validation Checklist Before completing any UI work, verify: - [ ] **Typography**: Not using Inter/Roboto as primary font - [ ] **Colors**: Using true dark, not gray (gray-900, slate-900) - [ ] **Accents**: Single brand color used consistently for actions - [ ] **Motion**: Page has at least one meaningful animation - [ ] **Depth**: Background has gradients or patterns, not flat - [ ] **Hierarchy**: Clear visual weight differences (text, buttons) - [ ] **Consistency**: All components follow established design system ## Supporting Files - `typography-guide.md` - Complete font pairing reference - `motion-patterns.md` - Framer Motion recipes and CSS animations - `anti-patterns.md` - Expanded examples of what to avoid ## Design Token Standard This skill aligns with **DTCG 2025.10** (Design Tokens Community Group) format: - File extension: `.tokens.json` - Properties prefixed with `$` (`$value`, `$type`, `$description`) - Three-tier architecture: Core → Semantic → Component See [W3C DTCG Specification](https://www.designtokens.org/tr/drafts/format/) ## Resources - [W3C Design Tokens Spec](https://www.designtokens.org/) - Industry standard (2025.10) - [Style Dictionary](https://styledictionary.com/) - Token build system - [ShadCN UI Components](https://ui.shadcn.com) - [Framer Motion](https://www.framer.com/motion/) - [Tailwind CSS](https://tailwindcss.com) - [Google Fonts](https://fonts.google.com) - For distinctive typography