better-ui

Applies design engineering principles to polish UI components, animations, icons, and surfaces.

Updated Jul 30, 2026
One-click install
npx skills add https://github.com/mrestrepoj10/re-hear --skill better-ui-mrestrepoj10
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-ui
Source: https://github.com/mrestrepoj10/re-hear/tree/main/.agents/skills/better-ui
Command: npx skills add https://github.com/mrestrepoj10/re-hear --skill better-ui-mrestrepoj10

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Interfaces often feel subtly off due to small compounding details like mismatched border radii, jarring animations, or misaligned icons. This Skill provides concrete, opinionated rules for reviewing and building polished UI so those details are handled consistently. ## Core Features & Use Cases - Surface Polish: Enforces concentric border radius, optical alignment, layered box-shadows instead of decorative borders, and pure black/white image outlines. - Animation Guidance: Prescribes interruptible CSS transitions, staggered enter animations, subtle exits, exact contextual icon animation values, and motion restraint for high-frequency interactions. - Icon Consistency: Matches icon stroke weight to text weight, uses one currentColor SVG recolored per state, outline-by-default with fill for active states, and RTL flipping rules. - Structured Reviews: Produces severity-ranked findings tables with before/after fixes, verification steps, and an Approve/Needs changes/Block verdict. - Use Case: When a button press feels dead or a card looks off, apply the scale-on-press (0.96) rule and concentric radius formula to get an immediately more tactile, coherent result. ## Quick Start Review my Button and Card components for UI polish issues and suggest concrete fixes with before and after code.

Frequently Asked Questions about better-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make nested border radius look right in CSS?

Use the concentric radius formula: outer radius equals inner radius plus padding. For example, a card with 8px padding and a 12px inner radius needs a 20px outer radius. If padding exceeds 24px, treat the layers as separate surfaces instead.

How do I animate icon state changes with Framer Motion?

Use AnimatePresence with a keyed motion element, animating scale from 0.25 to 1, opacity 0 to 1, and blur 4px to 0px with transition type spring, duration 0.3, and bounce 0. Without a motion library, keep both icons in the DOM and cross-fade with CSS transitions.

Should I use CSS transitions or keyframe animations for interactive elements?

Use CSS transitions for interactive state changes because they are interruptible and retarget mid-animation. Reserve keyframe animations for one-shot staged sequences like enter animations, since keyframes restart from the beginning when interrupted.

When should I use box-shadow instead of border on cards?

Use layered transparent box-shadows for buttons, cards, and elevated containers where the border only creates depth, since shadows adapt to any background. Keep borders for structural purposes like dividers, table boundaries, and focus or selected states.

Why does transition: all cause animation problems?

transition: all forces the browser to watch every property, causing unintended animations on colors, padding, and shadows while blocking optimizations. Always name exact properties, such as transition-property: scale, opacity, or Tailwind's transition-transform for transform-only changes.

When should I avoid adding animations to UI interactions?

Skip custom animation on high-frequency interactions like keystrokes, row hovers, and repeated tab switches, since the attention cost repeats every trigger. Use instant feedback or a subtle opacity or color transition at 150ms or less, and never make motion the only feedback channel.