frontend-design
Create distinctive, production-grade frontend UI with a bold, intentional aesthetic direction, purposeful layouts, meaningful motion, and strong…
by vadimcomanescu★ 25 GitHub stars
Install frontend-design in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Frontend Design
Build memorable, functional interfaces with a clear point-of-view (no generic templates). Commit to one aesthetic direction, define tokens, ship accessible + responsive UI, and keep changes scoped.
Preferred Targets (choose the best fit)
- Next.js (TypeScript): preferred for production app/marketing routes and design system work.
- React (TypeScript): preferred for SPA/component libraries outside Next.js.
- Vanilla HTML/CSS/JS: great for static demos, prototypes, and standalone embeds.
Quick Start (do this first)
- Ask up to 4 questions:
- What user and job-to-be-done (what should feel “easy” after the change)?
- Where does it live (component/route) and what stack? Prefer Next.js/React; vanilla is fine for standalone pages or prototypes.
- In Next.js: assume App Router (
app/). Any server/client constraints? - Any hard constraints (brand tokens, light/dark, motion limits, must-keep UI parts, perf budgets)?
- Pick an aesthetic direction + one signature move. If vague, propose 2–3 options from
references/aesthetic-playbook.md. - Define tokens (type, palette, spacing, radius, shadows, motion). Keep accents to 1–2.
- Build structure first (semantic markup + layout), then motion, then polish + QA.
Guardrails (avoid footguns)
- Keep scope tight: redesign only what the user asked for.
- Reuse existing tokens/components if working in an existing repo; do not introduce a new global styling system unless requested.
- Match complexity to the vision: refined minimalism needs restraint; maximalism needs deliberate structure (not random decoration).
- Respect
prefers-reduced-motionfor all animations. - Avoid “AI slop” defaults. If the repo already uses a generic font, keep it unless the user explicitly wants new typography.
- Enforce token semantics: error/success/warning colors are for meaning, not decoration; keep contrast accessible in light/dark.
- Default to shipping code that is easy to maintain: small components, clear hierarchy, minimal dependencies.
- Don’t add new packages (animation libs, UI kits, icon sets) unless the user explicitly asks or the repo already uses them.
- Default to one primary CTA per view; demote the rest (secondary/tertiary) to avoid competing actions.
Workflow
1) Commit to a direction
- Declare: aesthetic direction, palette mood, type pairing, and the signature move.
- Write a 1–2 sentence design thesis that explains the hierarchy and vibe.
- Use
references/anti-patterns.mdto avoid predictable layouts and cliched palettes.
1b) Design system rules (strict vs flexible)
- Strict: semantic color meaning, readable type ramp, reduced motion, visible focus, and “human-in-control” for AI actions (undo/apply/confirm).
- Flexible: brand accent hue, surface “temperature” in dark mode, and density preset (compact vs comfy).
- When to read more: load
references/tokens-and-semantics.mdwhen defining tokens andreferences/ai-native-ui-patterns.mdwhen adding AI surfaces.
1a) React/Next.js coding guidance (read when implementing)
- React fundamentals: keep components pure; prefer event handlers over Effects for user-driven work; follow the Rules of Hooks.
- Next.js App Router: keep Client Components small; use Server Components by default; mark
"use client"only where you need state, effects, or browser APIs. - Data fetching: prefer server-side
fetchand explicit cache/revalidate controls; avoid unnecessary client-side effects for data. - When to read more: load
references/react-next-best-practices.mdbefore writing complex React logic or introducing new data fetching patterns.
2) Plan tokens and layout (before details)
- Define CSS variables (or a theme object) for:
- Color: background/surface/ink/muted/accent(+optional accent2)
- Type: display/body/mono, size scale, line-height
- Shape: radius scale and border rules
- Depth: shadow and outline rules
- Motion: durations + easing + reveal stagger step
- Lay out the page/component skeleton and content hierarchy.
- Reference
references/implementation-patterns.mdfor patterns and QA.
3) Implement (ship code, not moodboards)
- Start with semantic structure and accessible interactions (keyboard + focus states).
- Build macro layout with Grid; micro layout with Flexbox.
- For Next.js/React, keep components small and composable; prefer CSS Modules or the repo’s existing styling approach.
- Use “link for navigation, button for actions” to keep semantics and keyboard behavior correct.
- Apply the signature move sparingly but decisively (one memorable thing, not ten).
- Add motion as orchestration (one strong page-load + a few micro-interactions), not random flourishes.
3a) Next.js implementation notes (when applicable)
- App Router only: assume
app/routing (notpages/). - Server vs Client: default to Server Components; add
"use client"only for interactive islands. - Data + state: keep dat
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- LICENSE.txt
- assets/nextjs-app-router-starter/README.md
- assets/nextjs-app-router-starter/app/globals.css
- assets/nextjs-app-router-starter/app/layout.tsx
- assets/nextjs-app-router-starter/app/page.module.css
- assets/nextjs-app-router-starter/app/page.tsx
- assets/nextjs-app-router-starter/components/AssistantRail.module.css
- assets/nextjs-app-router-starter/components/AssistantRail.tsx
- assets/react-component-starter/DesignPanel.module.css
- assets/react-component-starter/DesignPanel.tsx
- assets/vanilla-starter/index.html
- assets/vanilla-starter/script.js
- assets/vanilla-starter/style.css
- references/aesthetic-playbook.md
- references/ai-native-ui-patterns.md
- references/anti-patterns.md
- references/implementation-patterns.md
- references/react-next-best-practices.md
- references/tokens-and-semantics.md
FAQ
What does the frontend-design skill do?
Create distinctive, production-grade frontend UI with a bold, intentional aesthetic direction, purposeful layouts, meaningful motion, and strong accessibility. Prefer React + Next.js (TypeScript), but support vanilla HTML/CSS/JS when appropriate.
How do I install the frontend-design skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the frontend-design skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…