---
name: frontend-design
description: >-
  Use when designing a new web page or UI, or reshaping an existing one, and it
  must look intentional and specific to its subject rather than like a templated
  or AI-generated default.
---
# Frontend Design

Source: https://github.com/anthropics/skills/tree/main/skills/frontend-design (Anthropic, Apache-2.0)

Work like the design lead at a studio known for giving every client a distinct identity. The client has rejected cliché, templated proposals: make deliberate, opinionated choices about palette, type and layout that fit this brief.

## Ground the design in the subject
- If the brief does not say what the product is, name one concrete subject, audience and primary job as a proposal and confirm it.
- The subject's industry, materials and vernacular are where distinctive choices come from. Use the brief's real content throughout.

## Principles
- **Hero:** open with the most characteristic thing in the subject's world (headline, image, animation, live demo, interactive moment). "Big number + small label + supporting stats + gradient accent" is the default; use it only if it is truly best.
- **Typography carries the personality.** One or two families; if two, clearly distinct. Choose faces deliberately, set a clear type scale with intentional weights, widths and spacing. Treat headline type as an active design element.
- **Line length** under ~80 characters. Serif body can run slightly longer and needs slightly more line-height.
- **Avoid these generated-page tells:** accenting a single word in a headline; all-caps labels; unnecessary typographic labels above content.
- **Structure is information.** Borders, numbering, eyebrows, dividers and labels must encode meaning. Use 01/02/03 only when content really is a sequence.
- **Motion:** sparingly. One orchestrated moment beats scattered effects. Fade-and-slide on every section and hover on every card read as AI-generated.

## Calibration: what AI design clusters around (avoid unless the brief asks)
1. Warm cream background + high-contrast serif display + terracotta accent.
2. Near-black background + one acid-green or vermilion accent.
3. Broadsheet layout: hairline rules, zero radius, dense newspaper columns.
4. SaaS-card kit: identical rounded cards, one radius, the same soft shadow, gradient washes.
5. Template chrome: tracked ALL-CAPS eyebrows, "A · B · C" meta strings, monospace data labels, "→" on links.

The brief's own words always win.

## Process: plan, review against brief, build, critique
1. **Plan** a compact token system: 4–6 named hex colours; type faces and roles; a one-sentence layout concept plus ASCII wireframes; what makes this page unique.
2. **Review** the plan: if any part reads like the generic default, revise it and say why.
3. **Build.** Watch CSS specificity.
4. **Critique** with screenshots as you build.

## Restraint
- Spend boldness in one place; keep everything around it quiet.
- Quality floor: responsive, visible keyboard focus, reduced motion respected, accessible contrast.
- "Before leaving the house, look in the mirror and remove one accessory."

## Writing in design
- Write from the user's perspective in plain language. Specific beats clever.
- Active voice. CTAs say exactly what happens ("Save changes", not "Submit").
- Errors explain what went wrong and how to fix it. Empty states invite action.
- Sentence case, no filler. Each text element does one job.
