better-ui
Design engineering principles for making interfaces feel polished. Use when building UI components, reviewing frontend code, implementing animations, hover states, shadows, borders, micro-interactions, enter/exit animations, or any visual detail work. Triggers on UI polish, design details, "make it feel better", "feels off", stagger animations, border radius, optical alignment, image outlines, box shadows.
Install
npx skills add https://github.com/jakubkrehel/skills --skill better-uiSurfaces
Recipes for concentric radius, optical alignment, shadow rings and image outlines.
Concentric border radius
Optical alignment
Buttons with text and an icon
Start the icon side at 2px less padding than the text side, then judge by eye.
Play button triangles
A triangle's geometric center sits left of its visual center, so shift it toward its point:
Asymmetric icons
Stars, arrows and carets carry uneven visual weight. Fix the viewBox or path in the SVG, so the component needs no extra offset. Where the asset cannot change, nudge its wrapper:
Shadow recipes
Light mode
Three layers. The first acts as a 1px ring, the second adds lift and the third ambient depth:
Dark mode
Depth shadows vanish on dark backgrounds, so dark mode keeps one white ring:
Usage
The transparent border keeps the box the same size as the border it replaces.
Image outlines
Never outline-slate-*, outline-zinc-*, outline-neutral-* or a palette near-black such as #111827.
Use outline rather than border because it never changes the image's size. At outline-offset: -1px it sits just inside the edge and follows the corner radius.