Polishes UI from fine to exceptional by fixing invisible details: states, hit areas, contrast, layout shift, type, and motion. Use when a screen works but feels off or unfinished.
Ships in design. 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; scripts run unread.
Most work stops at level 3 of 10, because it works and it's easy to stop. The difference between fine and great is rarely the idea; it's how far the idea gets pushed. Most "something feels off" problems are one wrong note, so look, measure and name it before changing anything.
If you were asked to review and not to change anything, stop before step 8 and report the score, the weakest thing, and each finding as critique.md writes it. High means a state is broken or a promise the screen makes isn't kept. Medium means people notice. Low means only a designer does.
| Score | It means |
|---|---|
| 3 | It works, and looks like everything else |
| 5 | Designed at rest, but unhappy states or motion are default |
| 7 | Every state is designed and motion is correct; nothing is memorable yet |
| 8 | One thing people would screenshot, no visible defect at the viewing size |
| 9 | That thing holds up in every state and input path, and a rival would copy it |
| 10 | Don't award this to your own work |
Think in levels. Early levels fix what's broken, and you can see what to do. Later levels are invention, and you can't, so use a move:
| Stuck because | Move |
|---|---|
| You don't know what better is | Zoom in. Take one element at 3×. What if this were the only thing on screen? |
| It's busy | Remove something. Did you actually need it? |
| It feels off | Name it in one sentence, even before you know the fix |
| It's fine but plain | Reference the best. Find the world-class version and list what it does that yours doesn't |
| You keep tweaking one idea | Generate more. Make three genuinely different versions, compare at real size, keep one |
| You can't see it anymore | Critique. Hand the captures to a fresh critic (the critic), or re-read your own work as a rival would |
Rules for climbing:
Absence is what gets noticed, so run all of these. If you're short on time, start with form behavior, hit area, contrast and layout shift, because those are the ones people feel. Express them in the project's own styling system.
| Check | Rule | Why |
|---|---|---|
| Fonts | -webkit-font-smoothing: antialiased; subset files | Crisper text, nothing unused shipped |
| Field and button | A resting button and a field never share one fill. The field stays the brightest; a waiting button sits one tone down | Two identical white slabs hide which one you type in |
| Cast light | Window shadows and light patterns stop at an object's edge | Bars running unbroken from the table across paper read as seeing through the paper |
| Dynamic numbers | tabular-nums | Digits that change width make neighbors jiggle |
| Weight | Never change font-weight on hover or selection; use color | It reflows text |
| Layout shift | Fixed dimensions or aspect-ratio for skeletons, images, async content; reserve space for messages | Jumping content reads as broken |
| Typography | … ’ “ ”; text-wrap: balance on headings, pretty on body; 45–75ch measure; body leading 1.4–1.6, display ~1.1 | Punctuation and rag are where care shows |
| Tracking | Caps at any size +0.08em. Other text: none below 28px, −0.01em at 28–47px, −0.022em from 48px | Large type wants tighter, caps want air |
| Sizes | At most 5 type sizes, one vertical grid | Fewer things |
| Alignment | At most 2–3 dominant vertical lines; icons on a center spine, text on a left edge | Stray lines are what "off" usually is |
| Optical | Icon side of a button −2 to −3 px padding; play triangles 2 px toward the point; fix asymmetric icons in the SVG | Equal numbers often look unequal, so eyes win |
| Radius | Inner = outer − border − padding, never below half the outer, back to its own radius once the gap is twice the outer; one radius family | Mismatched nesting is visible |
| Borders | Transparent rings: box-shadow: 0 0 0 1px rgb(0 0 0/.08); where translucent cells touch, one cell draws the shared edge | They adapt to any surface, and two 8% lines on one edge read as one 16% line |
| Images | A 1px inner outline at 10%: outline: 1px solid rgb(0 0 0/.1); outline-offset: -1px, white in dark mode | A light photo has no edge without it |
| Style | One icon style, one material, one neutral temperature | The odd one out reads as a bug |
| Color fit | Success and error marks are hues from the page's palette, or adjusted toward it. Real-world meanings stay (a delayed flight may be amber) | A stock green check on an ink page reads as borrowed |
| Contrast | Body and labels ≥4.5:1, large text and icons ≥3:1, measured over the real background. Nothing people must read under 12 px at the viewing size | "Legible" isn't a judgment call |
| Press | scale(0.97) on :active, never below 0.95, on a 150ms ease-out transition. Surfaces wider than 200px (cards, rows) change their background instead, and dense controls used all day (toolbars, editor chrome) darken with no transition | Tactile without exaggeration, and letting go halfway returns smoothly; 3% of a wide surface is a jump |
| Hover | A color or surface step on named properties, 150ms on ease, only inside @media (hover: hover) and (pointer: fine), with no layout change. Anything that lifts or scales is a child under a parent that holds still | transition: all animates things you didn't choose; a tap fires hover and can leave it stuck; an element that moves itself slides off the cursor and flickers |
| Focus | Never remove it. A 2px ring at 3:1 or more against the surface it sits on and against the unfocused state; neutral (a text-role color) when that passes, otherwise the color that reaches 3:1 | Keyboard users lose their place without it (WCAG 1.4.11 and 2.4.13 ask for 3:1). Brand-colored rings often clash, so neutral comes first, but a grey ring on grey is invisible |
| Hit area | ≥44×44pt on iOS, ≥48×48dp on Android, ≥40×40px on desktop, via a pseudo-element; never overlapping; make whole surfaces the target | Small targets miss (Fitts's law), and each platform sets its own minimum |
| Stacking | isolation: isolate (always, on a component that uses mix-blend-mode) or a fixed z-index scale | 9999 means nobody knows, and an unisolated blend mixes with whatever sits behind the component |
| Fades | Overlapping things fade as one group (opacity on the parent) or each gets an opaque, dimmed colour. A swap in place fades only the top layer over an opaque bottom; if the bottom has see-through parts (an icon, a cut-out), both fade on plus-lighter at a and 1 − a, alone in an isolated wrapper with no background | Faded siblings show through each other, and two 50% fades cover only 75%, so the background shows mid-swap |
| Scrims | Ease the stops (a smoothstep sampled into about 15); fade content into the page with mask-image, not a coloured overlay | Straight stops leave a horizon line, and an overlay matches only one background |
| Decoration | pointer-events: none, user-select: none | It can't steal clicks |
| First paint | The first frame shows the real state, never a default that flips once storage or data loads | Prevents flashes |
| Forms | 16px inputs, real labels, autocomplete, Enter submits, errors keep what was typed | Don't punish; prevent |
| Overlap | When one element grows into another, fade the neighbor out and back | Collisions look like bugs |
Shadows on light surfaces are stacks of black layers at 5%, each offset equal to its blur and double the last: 0 1px 1px to 0 8px 8px for a raised card or control, 0 2px 2px to 0 32px 32px for anything floating. One big blur reads as a smudge. On a coloured ground, tint them toward its hue. On dark surfaces depth comes from lighter raised surfaces, softer text and calmer accents; pure black with neon is inversion, not design.
What starts it, and how often?
├── The keyboard (arrow keys, shortcuts, Tab, focus moving), or 100+ times a day
│ → no animation, hover highlights included. Speed beats smoothness.
│ (Feedback while typing is allowed if it never delays a character.)
├── A few times a session (menu, popover, modal, drawer, toast) → animate, inside the How long? table.
└── Rare or once (success, reveal, onboarding) → may be choreographed: up to 500ms a move, 2.5s in all.
Then: does it answer a question (where did this come from? did that register? what caused this?)
├── No → cut it.
└── Yes → continue.
Follows a finger, or can be thrown or → spring: duration 0.5, bounce 0.
redirected mid-gesture (drag, swipe, Bounce 0.1–0.3 only for physical, playful things; never more.
sheet, slider, carousel)?
Entering or leaving the screen? → ease-out: cubic-bezier(0.32, 0.72, 0, 1), in and out.
It covers most of the distance in the first
frames, so it reads as an instant answer.
Staying on screen while it moves → ease-in-out: cubic-bezier(0.77, 0, 0.175, 1).
or resizes?
Hover or color? → ease, 150ms.
Constant, where the motion is time itself → linear.
(spinner, marquee, hold-to-confirm ring)?
ease-in → never in product UI; the slow start reads as lag.
Use these two curves, never the ease-out and ease-in-out keywords, which are too gentle to read as a decision.
| What | Duration |
|---|---|
| Hover, press, color | 100–150ms |
| Tooltip | 125ms; once one is open, its neighbors show at once |
| Dropdown, popover, select | 150–250ms |
| Modal, drawer, sheet, toast | 200–300ms |
| Moving or resizing in place (a progress fill, a reorder, an expander) | 200–300ms |
| Page transition, shared-element move, something flying to a new place | 300–400ms |
| Rare, choreographed moment | up to 500ms a move and 2.5s in all, with no stretch standing still |
| Holding on words to be read | 250ms per word, at least 1.5s; never counts as dead time |
Within a range, bigger elements and longer distances take the longer end. Exits are 20–30% shorter than their entrance and quieter: a fade with at most an 8–16px nudge toward where it's going, except a drawer or a swiped card, which leaves the way it came. If it feels slow, shorten it before touching the curve.
transform and opacity (color and stroke-dashoffset are fine too), and keep blur under 20px. Never animate width, height, top, left or margin: collapse a removed row with FLIP (measure, then animate the transform), and open an expander with grid rows (0fr → 1fr). An element that jumps a pixel at the start or end of a move gets will-change: transform, and nothing else does.d px further moves it 64 × d / (d + 150) px, nearing 64px without reaching it, and it springs back on release.scale(0.95), tooltips and modals at scale(0.97), always from opacity: 0; never from scale(0), because real objects always have a shape.transform-origin at it (Radix and Base UI hand you that point in a CSS variable). A modal has no trigger beside it, so it scales from its center. Paired elements (modal and overlay, drawer and backdrop) share duration and easing.tabular-nums cells with no overflow clip (a hard edge cuts the blurred digit in half). Typed values, and counts that change with every keystroke, update at once. Each changed digit travels 0.6em over 340ms on cubic-bezier(0.33, 1, 0.68, 1), the leaving one blurring to 0.1em and gone by 70% of the roll, the arriving one sharpening from 0.1em; a gained or lost digit rolls in from or out to empty while the other cells glide to their places over 220ms on the same curve. Under reduced motion the changed digits cross-fade in place over 150ms.layoutId or view-transition-name) on a 0.35s spring with no bounce. Its content moves with it instead of stretching, arriving through a 4px blur over 200ms from 100ms into the morph, and both states have real radii: 999px balloons into an oval mid-morph. Decide what becomes what before laying out the second state.prefers-reduced-motion: same information, no movement. Fades and color changes stay (a roll or a morph becomes a cross-fade in place), loops stop on their best frame, nothing autoplays, and only an indicator of work in progress (a spinner, a progress bar) keeps moving, because a frozen one looks like a hang. In Motion, <MotionConfig reducedMotion="user"> wraps the app, because its default is "never".Honor the metaphor: if it's paper, it doesn't fade and doesn't pass through things. Then layer:
scale(0.95), over 80–120ms. Never before anything people do often, because the wind-up adds latency.Layer simple parts rather than one clever effect: a value mapped to a range and eased, a wave with a phase offset, a gradient + noise + mask (simple parts).
Add them only to rare or physical moments. Every sound has a visible cause on that same frame (multimodal feedback only works in sync). Nothing on resets or passive state changes, and no key clicks by default; soft, short and consistent beats clever.
Choose each sound from the product's own world by naming the real object that makes it: a travel app has a cabin's switch, chime and air; a pottery shop has paper and a ceramic tink. If it could be a game's pickup sound, replace it, because bright UI-kit tones make a premium screen feel like a toy.
Motion you haven't looked at frame by frame isn't verified: an eye on a running page misses the one-frame pops that make it feel off. The scripts in <skill>/scripts capture and count for you. Install them once with npm install --prefix <skill>/scripts.
node <skill>/scripts/web-frames.mjs <url or file.html> --motion 1200 --trigger click:<selector> --widths 390,1440 writes one PNG per frame at 60 fps and a contact sheet labelled in ms. Time is faked and stepped exactly, so every run gives the same frames, where a real-time recording drops and doubles them. Triggers are load, click:, hover:, scroll:<y> and js:<code>; --clip x,y,w,h zooms in, and --reduced-motion and --scheme dark cover the other paths. Without --motion it captures stills at every width. Every run writes console.txt, which must be empty.node <skill>/scripts/frame-diff.mjs <frames folder> plots how much each frame changes from the last. A pop, a flash or a swap is a red spike with still frames around it, and a dead stretch between two moves is shaded grey. Read the frames it names first, then the whole contact sheet. Hundreds of frames are too many to eyeball; the plot tells you where to look.<skill>/scripts/sim.sh start out.mp4, do the interaction, sim.sh stop out.mp4, then node <skill>/scripts/sheet.mjs out.mp4 sheet.png --auto --keep frames/ and frame-diff.mjs frames/.node <skill>/scripts/edges.mjs <capture.png> --rows y0-y1 --scale 2 prints each element's edges and the gaps between them in points, for the alignment, hit area and spacing rows of the details table.Run one capture at a time, because screenshots time out on a busy machine. Check:
Then check at the final viewing size: the smallest important text is legible, and the change you're proud of is visible there. If it's only visible at full size, move the camera or redesign it.
Final read: what's the weakest thing on screen now? If fixing it would change the score, you aren't done. If it wouldn't, stop.
README.md (opens in a new tab)evals/no-trigger-ai-look/graders/not-fired.md (opens in a new tab)evals/no-trigger-ai-look/prompt.md (opens in a new tab)evals/outcome-review/case.yaml (opens in a new tab)evals/outcome-review/fixtures/card.css (opens in a new tab)evals/outcome-review/fixtures/card.html (opens in a new tab)evals/outcome-review/graders/findings.md (opens in a new tab)evals/outcome-review/graders/tabular.md (opens in a new tab)evals/outcome-review/prompt.md (opens in a new tab)evals/trigger-drawer-frames/graders/fired.md (opens in a new tab)evals/trigger-drawer-frames/prompt.md (opens in a new tab)evals/trigger-modal-off/graders/fired.md (opens in a new tab)evals/trigger-modal-off/prompt.md (opens in a new tab)references/critique.md (opens in a new tab)references/storyboard.md (opens in a new tab)scripts/edges.mjs (opens in a new tab)scripts/frame-diff.mjs (opens in a new tab)scripts/lib.mjs (opens in a new tab)scripts/package-lock.json (opens in a new tab)scripts/package.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-polish, motion-review, state-design, ui-critique, animation-tuning
8 skills in this plugin
/charles-color-analysisCritiques the colour of a visual or palette with measurements: routes by what it's for (graphic, landing page, app, palette), measures area, lightness, hue gaps, chroma, temperature and contrast, and ranks fixes in exact OKLCH and hex with before/after previews. Use when colours clash or feel muddy, garish or off, when asked whether a palette or accent works, or to check someone's colour critique./charles-create-graphicsMakes posters and stamps that look printed, from real plates and photographs with live type: botanical, space age (NASA photos), Japanese Swiss (a red sun), neo-Swiss (grotesk, grain), sports micrographics (a giant number, tiny technical marks) or two looks fused, with foil or chrome on request. Use for a botanical, space, Japanese, Swiss, brutalist or sports poster, two styles in one poster, or a stamp. Not for a one-idea brand poster, a logo or a screen./charles-design-principles/design:charles-polishfrom design
npx claudepluginhub lemonface0309/charles-skills --plugin designOther plugins' skills for the same job