# Examples & Case Studies
Real-world examples demonstrating correct and incorrect application of frontend design principles.
---
## Table of Contents
1. [Case Study: Blog Search Bar (Design Consistency)](#case-study-blog-search-bar)
2. [Example: Component Reuse Decision Matrix](#example-component-reuse-decision)
3. [Example: Typography Consistency](#example-typography-consistency)
4. [Example: Layout Pattern Matching](#example-layout-pattern-matching)
5. [Anti-Example: Generic AI Slop](#anti-example-generic-ai-slop)
---
## Case Study: Blog Search Bar
**Context:** Adding a search bar to a blog page in an existing Next.js application.
### ❌ WRONG APPROACH (Autopilot Mode)
**What happened:**
```
User: "Blog page needs a search bar"
Assistant: [Sees SearchBar component exists] → [Pastes component into blog page] → Done
```
**Implementation:**
```tsx
// Blog page
);
}
```
---
## Anti-Example: Generic AI Slop
### ❌ The Problem
**Request:** "Create a landing page for a SaaS product"
**Generic AI Output:**
```tsx
// Predictable, seen-it-before structure
{/* Purple gradient hero */}
Revolutionize Your Workflow
The all-in-one platform for modern teams
{/* Three feature cards */}
{/* Testimonials */}
{/* CTA */}
```
**Font:** Inter (of course)
**Colors:** Purple gradient (of course)
**Layout:** Centered everything (of course)
**Problem:** Indistinguishable from 1000 other AI-generated SaaS pages.
### ✅ Better Approach
**Apply design thinking:**
- What makes THIS product different?
- Who is the audience? (Technical? Creative? Enterprise?)
- What feeling should the design evoke?
- What's ONE memorable element?
**Example re-design (Brutalist/Technical Direction):**
```tsx
// Bold, distinctive approach
{/* Terminal-style hero */}
$ initialize_revolution.sh
SYSTEM
OVERRIDE
For developers who don't compromise. Raw power. Zero abstraction.
{/* Asymmetric feature layout */}
{/* Main feature */}
{/* Stats ticker */}
```
**Distinctive elements:**
- Terminal/command-line aesthetic
- Monospace typography
- High-contrast green-on-black
- Asymmetric grid layout
- Technical/hacker vibe
- Memorable and specific to audience
---
## More Examples
For additional examples and techniques, see:
- [REFERENCE.md](REFERENCE.md#advanced-techniques) - Deep-dive patterns
- [NEW-PROJECT-DESIGN.md](NEW-PROJECT-DESIGN.md) - Aesthetic philosophy
- [EXISTING-CODEBASE-CHECKLIST.md](EXISTING-CODEBASE-CHECKLIST.md) - Consistency workflow