---
name: ecc-frontend-design-direction
description: Set a frontend design direction for production UI work — websites, dashboards, apps, landing pages. Activates product-specific design judgment.
---

# Frontend Design Direction

Sets design direction for production frontend work.

## When to Use
- Building new UI components or pages
- Reviewing design decisions in a PR
- When the UI feels inconsistent or "off"
- Starting a new frontend project

## Design Principles
1. **Clarity over cleverness** — users should understand the UI immediately
2. **Consistency** — use design tokens, not ad-hoc values
3. **Accessibility** — contrast ≥ 4.5:1, focus states, semantic HTML
4. **Progressive enhancement** — works without JS, better with it
5. **Performance** — lazy load images, code-split routes

## Visual Hierarchy
- h1: large bold for page titles
- h2: smaller bold for section headers
- Body: readable size (16px), good line-height (1.5)
- Caption: smaller for metadata, secondary info

## Design Tokens
```css
:root {
  --color-primary: #2563eb;
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --radius: 8px;
}
```
