better-ui

Reviews and polishes UI code with exact values for radius, shadows, icons, and animations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Interfaces often feel subtly off because of small compounding details: mismatched nested border radii, geometrically centered icons that look unbalanced, theme switches that smear, and transitions that fire on every property. This Skill provides a concrete reference of exact values and recipes so reviews and fixes are precise rather than approximate. ## Core Features & Use Cases - Surface polish: Enforces concentric border radius (outer = inner + padding), layered transparent box-shadows instead of depth borders, and pure black/white 1px image outlines per color mode. - Motion recipes: Prescribes interruptible CSS transitions, scale(0.96) press feedback, staggered enter animations, subtle exits, and contextual icon cross-fades with exact spring and cubic-bezier values for Motion, Framer Motion, or dependency-free CSS. - Icon consistency: Matches icon stroke width to adjacent text weight, uses one currentColor SVG recolored per state, outline-by-default with fill for active state, and RTL flipping rules. - Use Case: When reviewing a React/Tailwind component, apply the checklist to catch transition: all, missing initial={false} on AnimatePresence, or a hairline icon beside semibold text, then report findings grouped by principle with severity. ## Quick Start Review the button and card components in my project for UI polish issues and report findings by severity.

Frequently Asked Questions about better-ui

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

FAQPage Schema
How do I fix mismatched border radius on nested elements?

Use concentric border radius: the outer radius must equal the inner radius plus the padding between them. For example, a card with 8px padding and a 12px inner radius needs a 20px outer radius. Past 24px of padding, treat layers as separate surfaces.

How to animate icon changes with Framer Motion?

Use AnimatePresence with a keyed motion.span, animating opacity 0 to 1, scale 0.25 to 1, and blur 4px to 0px. Set transition to type spring, duration 0.3, and bounce 0. Import from motion/react or framer-motion matching the installed package.

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

Use CSS transitions for interactive state changes like hover, toggle, and open/close because they can be interrupted and retargeted mid-animation. Reserve keyframe animations for staged one-shot sequences such as enter animations and loading states.

Why does my theme toggle animate the whole page?

A theme flip changes color, background, border, and shadow on every element, so all transitions fire together and smear. Inject a stylesheet disabling all transitions, force a reflow, then remove it on the next frame so the switch snaps instantly.

When should I use will-change in CSS?

Use will-change only for transform, opacity, and filter, which the GPU can composite, and only after observing first-frame stutter. Never use will-change: all or apply it preemptively, since each compositing layer costs memory.

What icon stroke width matches semibold text?

Use a 2px stroke width beside medium or semibold (500-600) text on a 24px grid. Regular 400-weight text pairs with 1.5px, and bold 700 pairs with 2.5px. Keep one stroke weight per icon set and one icon library per surface.