polish-ui-details
Use when asked to polish the UI, make it feel better, make buttons feel nicer, fix small details or micro-interactions, or run a final pass on a component that feels cheap. Finds and applies targeted last-10% fixes for hit areas, tabular digits, named interruptible transitions, f
Install
npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/polish-ui-details
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
git clone https://github.com/Heyvhuang/copybook-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Polish UI details without moving the layout
Small interaction and rendering defects make a finished component feel cheap. Fix only the concrete rules the component actually breaks, in the project's existing styling system, while keeping colour, font, and spacing tokens and desktop layout boxes intact.
1. Measure the baseline
Before editing, identify how the component is styled (plain CSS, Tailwind, or CSS-in-JS) and capture a baseline in a browser at 1280px and 390px wide:
- Take before screenshots at
1280pxand390px. - Record
getBoundingClientRect()(x,y,width,height) for the component root and its visible child elements at1280px.
If no browser is available, note that box measurements and screenshots are unrun rather than guessing.
2. Audit against the seven rules
Read the component source and write findings only for elements that break one of these rules, with file:line for each finding:
| Rule | Broken when | Fix |
|---|---|---|
| Hit area | An interactive control is under 44x44px on a coarse pointer | Expand the target to at least 44x44px under @media (pointer: coarse) with a centered transparent ::after pseudo-element that does not shift layout or overlap neighbours |
| Tabular digits | Changing numbers (counters, timers, live totals) use proportional figures | Add font-variant-numeric: tabular-nums (or Tailwind tabular-nums) |
| Named transitions | An element uses transition: all or a one-shot keyframe for interactive hover, focus, or press states |
Replace with CSS transitions on exact properties such as opacity or transform so motion stays interruptible |
| First-load motion | Content runs an enter animation automatically on initial page load | Skip animation on first render (for example initial={false} on AnimatePresence or gating mount animations) |
| Reduced motion | Animated or transitioning elements ignore prefers-reduced-motion: reduce |
Add @media (prefers-reduced-motion: reduce) (or Tailwind motion-reduce:) to disable or shorten motion |
| Heading balance | A multi-line heading wraps unevenly with an orphan word | Add text-wrap: balance (or Tailwind text-balance) on the heading |
| Image outlines | Content images sit flat against light or dark surfaces with no edge separation | Add a 1px pure neutral outline: oklch(0 0 0 / 0.1) in light mode, oklch(1 0 0 / 0.1) in dark mode |
Leave colour, font, and spacing tokens, border radii, shadows, optical alignment, and icon strokes unchanged. Those belong to the project's design system.
3. Apply only the listed fixes
Edit only the lines flagged in step 2, expressed in the project's existing styling conventions. Keep changes narrow so untouched elements stay put and expanded hit areas do not change visible icon sizes or flow spacing.
4. Verify boxes and screenshots
Re-measure and re-capture after editing instead of comparing screenshots alone:
- Compare
1280pxbounding boxes against step 1. Every visible element box must stay within1pxof its baselinex,y,width, andheight, except an expanded hit area. - Take after screenshots at
1280pxand390pxand check for overlap, clipping, or broken wrapping. - Check hover, focus, active, initial load, and
prefers-reduced-motion: reducebehaviour.
5. Report changes and checks
List only the elements that needed a fix, with file:line, the broken rule, and the change made. Include the 1280px bounding-box delta summary and the 1280px and 390px screenshot results, marking any unrun browser check as unrun.
Based on jakubkrehel/make-interfaces-feel-better (MIT), rewritten by Copybook.
Files (copybook-skills)
-
CHANGES.md 402 B
Loading… -
example.md 1.1 KB
Loading… -
LICENSE 1 KB · in bundle
-
SKILL.md 4.1 KB
--- name: polish-ui-details description: "Use when asked to polish the UI, make it feel better, make buttons feel nicer, fix small details or micro-interactions, or run a final pass on a component that feels cheap. Finds and applies targeted last-10% fixes for hit areas, tabular digits, named interruptible transitions, first-load motion, reduced motion, balanced headings, and image outlines without changing project tokens or desktop layout. Not for a ranked code review that changes nothing (review-ui-code)." license: MIT (see LICENSE) --- # Polish UI details without moving the layout Small interaction and rendering defects make a finished component feel cheap. Fix only the concrete rules the component actually breaks, in the project's existing styling system, while keeping colour, font, and spacing tokens and desktop layout boxes intact. ## 1. Measure the baseline Before editing, identify how the component is styled (plain CSS, Tailwind, or CSS-in-JS) and capture a baseline in a browser at `1280px` and `390px` wide: - Take before screenshots at `1280px` and `390px`. - Record `getBoundingClientRect()` (`x`, `y`, `width`, `height`) for the component root and its visible child elements at `1280px`. If no browser is available, note that box measurements and screenshots are unrun rather than guessing. ## 2. Audit against the seven rules Read the component source and write findings only for elements that break one of these rules, with `file:line` for each finding: | Rule | Broken when | Fix | |---|---|---| | Hit area | An interactive control is under 44x44px on a coarse pointer | Expand the target to at least 44x44px under `@media (pointer: coarse)` with a centered transparent `::after` pseudo-element that does not shift layout or overlap neighbours | | Tabular digits | Changing numbers (counters, timers, live totals) use proportional figures | Add `font-variant-numeric: tabular-nums` (or Tailwind `tabular-nums`) | | Named transitions | An element uses `transition: all` or a one-shot keyframe for interactive hover, focus, or press states | Replace with CSS transitions on exact properties such as `opacity` or `transform` so motion stays interruptible | | First-load motion | Content runs an enter animation automatically on initial page load | Skip animation on first render (for example `initial={false}` on `AnimatePresence` or gating mount animations) | | Reduced motion | Animated or transitioning elements ignore `prefers-reduced-motion: reduce` | Add `@media (prefers-reduced-motion: reduce)` (or Tailwind `motion-reduce:`) to disable or shorten motion | | Heading balance | A multi-line heading wraps unevenly with an orphan word | Add `text-wrap: balance` (or Tailwind `text-balance`) on the heading | | Image outlines | Content images sit flat against light or dark surfaces with no edge separation | Add a 1px pure neutral outline: `oklch(0 0 0 / 0.1)` in light mode, `oklch(1 0 0 / 0.1)` in dark mode | Leave colour, font, and spacing tokens, border radii, shadows, optical alignment, and icon strokes unchanged. Those belong to the project's design system. ## 3. Apply only the listed fixes Edit only the lines flagged in step 2, expressed in the project's existing styling conventions. Keep changes narrow so untouched elements stay put and expanded hit areas do not change visible icon sizes or flow spacing. ## 4. Verify boxes and screenshots Re-measure and re-capture after editing instead of comparing screenshots alone: - Compare `1280px` bounding boxes against step 1. Every visible element box must stay within `1px` of its baseline `x`, `y`, `width`, and `height`, except an expanded hit area. - Take after screenshots at `1280px` and `390px` and check for overlap, clipping, or broken wrapping. - Check hover, focus, active, initial load, and `prefers-reduced-motion: reduce` behaviour. ## 5. Report changes and checks List only the elements that needed a fix, with `file:line`, the broken rule, and the change made. Include the `1280px` bounding-box delta summary and the `1280px` and `390px` screenshot results, marking any unrun browser check as unrun. Based on jakubkrehel/make-interfaces-feel-better (MIT), rewritten by Copybook.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.