/design-foundation:interface-polishfrom design-foundation
Design-engineering micro-detail pass for interfaces that work but feel flat. Applies concrete CSS/JS rules for hover/active/focus states, transition timing, easing, animations, shadows, border-radius, optical alignment, typography, and reduced-motion support. Use when a UI is functionally done but needs finishing touches.
Ships in design-foundation. 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.
None: SKILL.md is the whole skill.
The last 10% that separates "works" from "feels great". Apply these rules to an interface whose layout, palette, and structure are already decided. Do not change the design direction — refine its execution.
Work through the sections as a checklist against the actual code. Fix what's missing; leave what's already right.
Every interactive element needs four distinct states: rest, hover, active, focus-visible. Missing states are the #1 "feels unfinished" signal.
.button {
transition: background-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.button:hover { background-color: var(--accent-hover); }
.button:active { transform: scale(0.98); transition-duration: 50ms; } /* press responds FASTER than hover */
.button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px; /* never outline: none without a replacement */
}
Rules:
:active should feel physically pressed: scale 0.97–0.98 or translateY(1px), with a shorter duration than hover.:focus-visible, not :focus, so mouse clicks don't paint rings but keyboards do.background-color shift only; don't move them.pointer-events: none or explicit rules).transition: all. List properties explicitly; all causes accidental animation of layout properties and jank.ease-out for things appearing/responding to the user (start fast, settle). ease-in or ease-in-out for things leaving. cubic-bezier(0.16, 1, 0.3, 1) (expo-out) makes entrances feel expensive. Bounce/overshoot only if the design system is playful — and subtle (≤8% past target).transform, opacity. Animating width/height/top/left/margin causes layout jank; if unavoidable, keep the element small or use transform tricks. Never animate box-shadow directly on large surfaces — crossfade a pseudo-element's opacity instead:.card::after {
content: ""; position: absolute; inset: 0; border-radius: inherit;
box-shadow: var(--shadow-lg); opacity: 0; transition: opacity 200ms ease;
pointer-events: none;
}
.card:hover::after { opacity: 1; }
Elements should arrive from somewhere, not pop into existence.
transform-origin: top left or as appropriate), toasts slide from the edge they live on, modals scale from center.@starting-style + transition-behavior: allow-discrete (modern) or toggle a class and remove on transitionend. In React, use a presence utility or a two-step state (closing → closed).dialog {
opacity: 1; transform: scale(1);
transition: opacity 200ms ease-out, transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
overlay 200ms allow-discrete, display 200ms allow-discrete;
}
@starting-style { dialog[open] { opacity: 0; transform: scale(0.97); } }
dialog:not([open]) { opacity: 0; transform: scale(0.98); }
grid-template-rows: 0fr → 1fr on a grid wrapper with min-height: 0 on the child — smooth without measuring heights.Lists that animate in as one block feel cheap; a small cascade feels orchestrated.
min(index, 8) * 40ms)..list > * { animation: item-in 350ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.list > :nth-child(1) { animation-delay: 0ms; }
.list > :nth-child(2) { animation-delay: 40ms; }
/* or dynamically: */
document.querySelectorAll(".list > *").forEach((el, i) => {
el.style.animationDelay = `${Math.min(i, 8) * 40}ms`;
});
@keyframes item-in { from { opacity: 0; transform: translateY(10px); } }
animation-fill-mode: backwards prevents the pre-delay flash of the final state.
--shadow-md: 0 1px 2px rgba(16, 24, 40, 0.06), /* contact: small blur, small offset */
0 8px 24px rgba(16, 24, 40, 0.10); /* ambient: large blur, large offset */
rgba(16,24,40,…) on cool UIs, warm equivalents on warm UIs. Pure black shadows look dirty on colored backgrounds.--shadow-xs). Floating ephemerals (menus, popovers, modals, drag previews) → shadow, plus a hairline border so edges survive on white-on-white. Shadow communicates "above the page"; if it doesn't float, it shouldn't cast much.box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) (dark UIs) as an extra layer.Concentric corners: inner radius = outer radius − padding. A 16px-radius card with 8px padding needs 8px-radius children; giving them 16px too makes corners visibly clash.
.card { border-radius: 16px; padding: 8px; }
.card > .thumb { border-radius: calc(16px - 8px); } /* = 8px */
overflow: hidden on the parent or matching radius on the child, or corners will poke out.Mathematical centering is often visually wrong; trust the eye and nudge.
translateY(-0.5px – 1px) or flexbox align-items: center plus a nudge.padding-bottom: 1px less than top, or line-height tuning, makes labels look centered.margin-left: -0.05em to flush-align it with body text below.font-variant-numeric: tabular-nums; — otherwise columns wobble and timers jitter.-0.01em to -0.03em above ~32px); small ALL-CAPS labels need positive tracking (0.04em–0.08em). Body text: none.text-wrap: balance on headings (≤4 lines); text-wrap: pretty on paragraphs to prevent orphan words.-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; slims it. Apply globally on dark UIs; use judgment on light ones.text-overflow: ellipsis; white-space: nowrap; overflow: hidden;; multi-line -webkit-line-clamp. Always add title or a tooltip for truncated content.overflow-wrap: anywhere on user-generated strings so long tokens can't blow layouts.font-variation-settings/weight rather than swapping weights on hover (weight-swap causes width jump; if you must, reserve width with a bold hidden twin)..img-frame { position: relative; }
.img-frame::after {
content: ""; position: absolute; inset: 0; border-radius: inherit;
box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
pointer-events: none;
}
width/height attributes or aspect-ratio on the container; object-fit: cover for fills.background: var(--surface-2)) behind every image so slow loads show a designed surface, not a void.overflow: hidden frame: image scales 1→1.03–1.05, frame stays put.loading="lazy" below the fold; never on the LCP/hero image.scroll-margin-top on anchor targets so sticky headers don't cover them: [id] { scroll-margin-top: calc(var(--header-h) + 16px); }scroll-behavior: smooth for in-page anchors — gate it behind reduced-motion (see §11).scroll-snap-type: x mandatory + scroll-snap-align: start, hide scrollbar only if arrows/affordances exist, add overscroll-behavior-x: contain.overflow: hidden on body or overscroll-behavior: contain on the panel) — background scroll bleed feels broken.scrollbar-width: thin; scrollbar-color: var(--border) transparent); never remove scrollbars from long content.const io = new IntersectionObserver((entries) => {
for (const e of entries) if (e.isIntersecting) { e.target.classList.add("in"); io.unobserve(e.target); }
}, { threshold: 0.2 });
document.querySelectorAll("[data-reveal]").forEach((el) => io.observe(el));
Non-negotiable. Every animation added by this pass must respect prefers-reduced-motion.
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
matchMedia("(prefers-reduced-motion: reduce)").matches before starting loops, parallax, or auto-playing sequences.transition: all; all durations ≤300ms in-app; exits faster than entrances.prefers-reduced-motion handled globally and in JS.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/awesome-design-mdReference library of 74 real-world brand design systems as DESIGN.md files (colors, typography, spacing, components, motion). Use when the user wants to match, borrow from, or take inspiration from a specific brand's visual language — "make it look like Linear/Vercel/Stripe/Apple", "give me a Notion-style dashboard", "use a Supabase-like dark theme" — or asks for a curated design token set to seed a new project. Pulls one brand's DESIGN.md as ground-truth reference for building visually consistent UI./impeccableUse when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks; GSAP/scroll animation implementation belongs to gsap-suite (motion-3d)./redesignUpgrades an EXISTING website or app to premium visual quality without breaking functionality. Audit-first workflow - inventories current pages and components, identifies generic-AI and template patterns (centered-everything, purple gradients, uniform card grids, emoji icons), produces a prioritized redesign plan, then applies changes in safe increments that preserve markup semantics, routes, and JS behavior, ending with a before/after verification checklist. Framework-agnostic (Tailwind, vanilla CSS, CSS-in-JS). Use when the user says "redesign", "make this site look premium", "upgrade the design", "this looks AI-generated", "modernize the UI", or "improve the design without breaking it". NOT for greenfield builds - for new projects use taste (creative direction) plus style-systems (visual system); NOT for micro-detail passes on already-good UIs (use interface-polish)./style-systemsCommits a project to ONE named visual style system and applies it consistently at token level. Use when deciding a visual direction for a build — "which style should this be", "pick a visual direction", "style system", "minimalist design", "brutalist site", "soft UI", "clean product UI" — or when a codebase mixes styles and needs to be pulled onto a single coherent system. Contains four complete standalone style specs (minimalist-editorial, brutalist-industrial, soft-depth, product-modern) with palettes, type scales, spacing, shadows, components, and motion. NOT a searchable style/palette database (use ui-ux-pro-max for that), not a workflow command (impeccable), and not creative direction from a brief (taste) — this skill enforces one coherent system end-to-end once a direction is chosen./tasteAnti-generic design direction for landing pages, portfolios, and marketing sites. Use when a build brief needs a distinctive creative direction so the result does not look templated or AI-generated — reads the brief, infers the right direction, enforces a strict pre-flight check. Complements ui-ux-pro-max (style/palette/font database) and impeccable (command-driven design workflow); use taste when the question is "what should this look like so it feels designed, not generated". A legacy v1 ruleset is preserved in references/taste-v1-legacy.md./ui-ux-pro-maxUI/UX design intelligence for web and mobile. Searchable local database with 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.npx claudepluginhub gekkos-tech/agency-os --plugin design-foundationOther plugins' skills for the same job