Skill library

Agent skill UI design

Better UI

Polish the small details that shape the interface, from optical alignment and nested radii to shadows and hover feedback.

  • UI polish
  • Icons
  • Microinteractions

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add jakubkrehel/skills --skill better-ui --agent claude-code --yes

Check this file in your project.claude/skills/better-ui/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add jakubkrehel/skills --skill better-ui

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Open the real card in both themes and find its shared surface, icon, and radius tokens.

View operation manual

What this skill helps with

  • Tune nested corner radii, image borders and elevation shadows.
  • Align icons by their visual weight and account for state changes.
  • Refine hover, press and enter or exit transitions.

Good for

  • Component polish
  • Refining cards and navigation
Skill name
better-ui
Workflow
Polish a nested surface and its icon states
Deliverable
A focused surface or icon refinement with theme and state evidence.
Skill name
better-ui

Keep the request tied to one real task

A broad request

Give all cards and icons the same radius and heavy shadow.

Evenly inset surfaces need coordinated radii. Divider and selection borders may be structural.

A checkable workflow

  1. Find the actual depth and icon inconsistency
  2. Apply the chosen radius or icon rule
  3. Compare both themes and control states

Better UI operation manual

Use existing design tokens to refine a cramped card inset or inconsistent action icon.

Replace the bracketed details with the component, route, or source you want to use.

  1. Find the actual depth and icon inconsistency

    Measure the nested inset and inspect the component’s intended states.

    Prompt · Step 1
    Use better-ui to review [card and action icon] on [preview route]. Inspect parent and child radii, inset, border purpose, and the current icon stroke and color for each state. Compare with a real shared component or token. Report one inconsistency that occurs in this actual surface and verify the base interaction works before polishing it.
  2. Apply the chosen radius or icon rule

    Use one project-consistent repair and preserve functional borders and control states.

    Prompt · Step 2
    Use better-ui to implement [approved polish finding] at [component path]. For a visibly even inset, account for the child radius, padding and border width using surfaces.md. If the layers are separate, keep their existing role tokens. For an inconsistent icon, use the shared asset and currentColor with the documented state treatment. Preserve structure, focus indicators, keyboard behavior, and correct touch behavior.
  3. Compare both themes and control states

    Recheck the exact surface and its existing interactions.

    • The refinement preserves the interaction and visible focus.
    • Light and dark states retain the intended visual purpose.
    Prompt · Step 3
    Use better-ui to verify [updated card or icon] in light and dark on [local preview]. Compare the same default, hover, focus, selected and disabled states where present. Check that a touch tap does not leave an inappropriate hover style, that essential borders remain, and that the icon action still works. If forced-colors affects the changed focus or border treatment, inspect it directly. Report actual comparison evidence and unverified states.

Find the relevant rule

Provide the actual target and point to the installed reference.

Rounded boxes feel out of alignmentReference
Command or reference
surfaces.md
Examples
Measure the even padding and account for the border when choosing a radius.
The icon copies use different colors in each stateReference
Command or reference
icons.md
Examples
Check the shared SVG and use currentColor for state-dependent coloring.

Better UI troubleshooting

Should every card have a shadow?

Use the project’s established surface treatment. Apply elevation where the surface needs it and keep borders that communicate structure.