/superpowers-optimized:frontend-designfrom superpowers-optimized
Drives distinctive, subject-specific visual design for frontend/UI work with a render-and-critique loop. Ensures accessibility, responsive layout, performance, and proper UI states.
Ships in superpowers-optimized. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Work like the design lead of a studio whose clients pay for a point of view. Generic output is the failure mode: a UI that is technically correct but could belong to any product after a find-and-replace on the logo. Every visual choice should trace back to this brief.
@theme blocks or tailwind.config.*, theme.ts, tokens.json, design-system/, a component library (shadcn, MUI, Chakra, Radix themes).
Identify: the concrete subject, the audience, and the page's primary job (scan, convert, explore, act). If the brief doesn't say, propose one specific answer and confirm it.
Distinctive choices come from the subject, not the product category. "Fintech dashboard" yields the category average; "a cash-flow tool for independent bakeries" suggests a palette, vocabulary, imagery and density of its own. Mine the subject's materials, artifacts, era, tools and language for the visual idea. Use real content from the brief throughout — never lorem ipsum.
style-reference.md lists style vocabulary and category conventions (what users of a category expect for trust and legibility). Read it to know the conventions — then decide deliberately which to keep and which to break. It is not a palette picker.
Output this before any code:
**Subject**: [specific subject] — for [audience] — primary job: [scan/convert/explore/act]
**Signature**: [the ONE memorable element — a type treatment, layout move, motif, or interaction]
**Color**: 4–6 named tokens with values (e.g. Kiln oklch(0.62 0.14 45) — primary actions)
**Type**: [face(s)] — roles — scale ratio — source (Google Fonts / Fontshare / Fontsource / system)
**Layout**: one-sentence concept + ASCII wireframe of the key view; alignment (left/center/justified) and why
**Density**: compact / balanced / spacious — and why
**Motion**: the one orchestrated moment (if any) + what responds to user actions
**Avoid**: the generic defaults this brief would most tempt you into
Ask: "If I got a similar brief for a different subject, would I produce roughly this?" For every part where the answer is yes — palette, fonts, hero treatment, layout, motion — revise it toward the subject, and state in one line what you changed and why. Only then build.
Follow the revised plan. Spend boldness in one place (the Signature); keep everything around it quiet and disciplined. Before finishing, remove one decorative element that doesn't serve the brief.
Keep CSS specificity flat and predictable — section-level and component-level selectors that both set padding/margin silently cancel each other. Prefer @layer and single-class selectors.
You cannot judge a design you have not seen. After the first build and after each significant visual change:
npx playwright screenshot --viewport-size "375, 812" --full-page <url> mobile.png, or a built-in preview.If no rendering tool is available, say so explicitly in the final report and list what was not visually verified. Never claim a UI "looks good" without having viewed it. Stop any dev server you started once screenshots are done.
These are not wrong in themselves — they are what models produce regardless of subject, so they read as AI-generated. Use one only when the brief or subject genuinely calls for it.
Palettes and surfaces
#6366F1, #8B5CF6) or purple-to-blue gradientsLayout and components
Typographic chrome
A · B · C), labels in a spaced em-dash pattern (WORD — fragment)→ appended to every button and link; monospace for small data labels by reflexMotion and copy
Structural devices (borders, numbering, labels, dividers) should encode information about the content, not decorate it.
What fills the visuals: the user's own images first, then screenshots of the real product, then licensed photographs with a credit line (only if you can actually obtain them); otherwise drawn graphics and typography.
id, test hook (data-testid), analytics call, and every factual claim in the copy.Typography carries most of the personality. Choose it before color.
system-ui as the display face unless that is a deliberate, stated choice. One family used with intent beats two mismatched ones; if you pair, make the two clearly distinct.clamp() for fluid sizes. Headline type can be an active visual element — size, weight, width, tracking — not just a container for words.text-wrap: balance on headings, text-wrap: pretty on paragraphsmax-width: 65ch is a good body default); serif body text gets slightly more line-height than sansfont-variant-numeric: tabular-nums for tables, prices, timersfont-optical-sizing: autosize-adjust, ascent-override in @font-face) to avoid layout shift on font swapoklch(L C H).--color-surface, --color-text-muted, --color-action, --color-danger) — no raw hex/oklch in component code.color-mix(in oklch, var(--color-action), black 12%) rather than hand-picking hover colors.color-scheme: light dark, light-dark() or per-theme token blocks, lighter/desaturated tonal variants (never inversion), elevation via lighter surfaces instead of shadows, and a pre-paint inline script for the stored preference to avoid a flash.transform/opacity; 150–300ms for micro-interactions, ≤400ms for larger transitions; guard everything with prefers-reduced-motion.Prefer native platform features over JS libraries. Baseline-available (safe to use):
@container, cqi units) for components that adapt to their slot, not the viewport:has() for parent/sibling-aware styling; subgrid for aligned nested content; native CSS nesting; @layer for cascade control<dialog> and the popover attribute for modals, menus and tooltips (focus handling and top-layer for free)@starting-style + transition-behavior: allow-discrete for entry/exit animations of dialogs and popoversoklch(), color-mix(), light-dark(); dvh/svh viewport units; text-wrap: balanceProgressive enhancement (check current Baseline/caniuse status; wrap in @supports with a working fallback):
@view-transition less so)animation-timeline: scroll() / view())field-sizing: content; interpolate-size for animating to height: autoCopy is design material; generic copy makes a distinctive design feel templated.
Full rules and rationale: quality-standards.md. Read it for greenfield builds, forms, dashboards, or anything with backend data.
:focus-visible styles not hidden by sticky headers; keyboard operable throughout; semantic HTML and one h1 with no skipped levels; aria-label on icon-only controls; never color alone; skip link; targets ≥24×24px (aim for 44×44px on touch); anything that moves automatically for more than 5s can be paused; nothing flashes more than 3×/s; content stays visible without JavaScript (scope reveal-on-scroll opacity: 0 under a .js class).min-h-dvh instead of 100vh.width/height or aspect-ratio on media; lazy-load below-fold images; WebP/AVIF with srcset; font-display: swap; preload only critical fonts; reserve space for async content (CLS < 0.1); virtualize long lists.Every data-dependent view handles all six states:
| State | Show |
|---|---|
| Loading | Skeleton matching the final layout (not a lone spinner) |
| Empty | What this space is for + the action to fill it |
| Error | What went wrong + how to fix it + retry |
| Success | The content, fully interactive |
| Partial / degraded | Available data + what's missing or stale ("Updated 5m ago") |
| Pending | Inline progress on the triggering control; prevent double-submit; revert on failure |
package.json and CSS entry files. Use what is there. Never silently upgrade.Tailwind: read tailwind-v4.md before any Tailwind setup or utility work on greenfield or version-unknown projects — training data is biased toward v3 syntax (including dark mode, which works differently in v4).
Stack (greenfield, when unspecified): plain HTML + CSS for simple pages; Vite + React/Vue/Svelte + Tailwind v4 for apps; Next.js/Nuxt/SvelteKit/Astro when routing, SSR or content collections are needed. Prefer accessible primitives (Radix, React Aria, Ark UI, shadcn/ui) over hand-rolled widgets for menus, dialogs, comboboxes.
executing-plans or subagent-driven-development whenever a task produces visible UIverification-before-completionquality-standards.md — full accessibility (WCAG 2.2), touch, performance, layout, forms, navigation, dark mode, tokens, charts, and frontend-backend integration rulesstyle-reference.md — style vocabulary, category conventions (know them, don't copy them), and common page structurestailwind-v4.md — Tailwind v4 install, @theme, dark-mode variant, directives, v3→v4 renames, v4.1 additionsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub repozy/superpowers-optimized --plugin superpowers-optimized24 skills in this plugin
/brainstormingUse when the user wants new features, behavior changes, refactoring with new capabilities, or architecture decisions and no approved design exists yet. Produces a design before any code is written — in the conversation for small changes, as an approved spec document for larger work. Triggers on: "build this", "add a feature", "I want to change", "how should we", "design", "architect", "new project", "refactor", "we need to add/build/create", "implement a new". Routed by using-superpowers, or invoke directly via /brainstorming.
/claude-md-creatorCreates minimal, high-signal CLAUDE.md and AGENTS.md context files based on empirical best practices. Invoke on /init command, "create CLAUDE.md", "update CLAUDE.md", "write AGENTS.md", or "set up Claude Code for this project". Also invoked by brainstorming when repo lacks a context file. tools: Read, Glob, Grep, Bash, Edit
/context-managementUse in long or noisy sessions to persist durable state across session boundaries via state.md. Also generates project-map.md when asked to map the project. Triggers on: user explicitly asks to "save state", "compress context", "map this project", "generate project map", "create project map", cross-session handoff needed, or repeated failures indicate context is getting stale.
/deliberationUse BEFORE brainstorming when facing a complex architectural, technology, or design decision where the options are not yet well-defined or the problem itself may need reframing. Assembles named stakeholder perspectives that each speak once without debate, then surfaces where they converge and where real tension remains — without forcing a premature choice. Triggers on: "should we use X or Y", "not sure which approach", "evaluate these options", "what are the trade-offs between", "help me think through this decision", "architecture decision", "technology choice". Routed by using-superpowers before brainstorming when the decision space is unclear.
/dependency-managementUse when updating, migrating, or auditing project dependencies: upgrading packages, fixing security vulnerabilities (CVEs), resolving breaking changes, migrating to new major versions, or auditing outdated dependencies. Enforces incremental updates with verification at each step. Distinct from systematic-debugging (which fixes application bugs) and refactoring (which restructures application code). Triggers on: "update dependencies", "upgrade packages", "npm update", "pip upgrade", "outdated", "vulnerability", "CVE", "security advisory", "breaking change", "migration guide", "dependency conflict", "peer dependency", "update to latest", "audit dependencies", "npm audit", "dependabot". Routed by using-superpowers, or invoke directly via /dependency-management.
/dispatching-parallel-agentsUse when 2+ tasks are independent and can run concurrently without file or state conflicts or sequential dependencies. Triggers on: "run these in parallel", "do these at the same time", plans with independent tasks, when subagent-driven-development identifies parallelizable work.
Other plugins' skills for the same job