Agent skill

Better UI Skill: Exact Radius, Shadow and Motion Values

The better-ui skill polishes surfaces, icons and motion with exact values for nested border radius, shadows, press scale, enter and exit timing and icon cross-fades.

Install
git clone https://github.com/jakubkrehel/skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the better-ui skill?

The better-ui skill carries the visual polish for surfaces, icons and motion, each with an exact value. A pressed button scales to 0.96 over 150ms, outer radius equals inner radius plus padding, and exits run shorter than enters. It applies after the interaction itself is sound.

Better-ui is where the small numbers live. It says a press scales to 0.96 and not 0.95, and that one easing curve is not interchangeable with another. Most values are exact, with optical nudges as the exception.

It also respects your project. A deliberate, consistent convention, such as a design with no shadows, is a preference. The same detail done two different ways inside one project is the finding.

Surfaces and icons

  • Nested radius: outer equals inner plus padding plus border width, until padding passes 24px.
  • Shadows give elevation and borders give structure. Keep a transparent border under a shadow ring for forced colors mode.
  • Content images get a 1px outline at 10 percent black in light mode and 10 percent white in dark mode.
  • Icons use currentColor, match stroke to text weight and mirror under RTL only when meaning follows reading direction.

Motion rules

Interactive state uses transitions, not keyframes, because transitions retarget when the user reverses mid flight. Entrances stagger by 100ms, exits run 150ms, and every movement sits behind the reduced-motion preference.

Where it fits

Best for

  • Reviewing components that feel slightly off but pass every functional test.
  • Replacing transition: all and hand-tuned bounce with named properties and fixed curves.
  • Keeping hover effects from latching on touch screens.

Not for

  • Hit areas, keyboard support and the reduced-motion requirement itself, which belong to better-accessibility.
  • Spacing, breakpoints and color tokens, which sit with better-layout and better-colors. Related: emil-animate and improve-animations.

Use it with UiChemy

Tune surfaces and motion on the coded prototype your agent produced, then bring the page into WordPress through UiChemy AI to WordPress, which routes AI builds via Figma, Composer or MCP before converting. Get Started on uichemy.com.