Quick UI clean-up for React
Point Claude at a Tailwind and React screen and it fixes spacing, hierarchy and type, rule by rule.
See it work
You give it
Use baseline-ui on this. It's the bookings panel in the admin for my bike repair shop in Portland (Next.js, Tailwind, Radix). Review it:
<div className="h-screen bg-gradient-to-r from-purple-500 to-pink-500 p-6">
<h2 className="text-2xl font-bold tracking-wide">Today's repairs</h2>
{jobs.map(j => (
<div key={j.id} className="flex hover:w-[105%] transition-all duration-500">
<span>{j.bike}</span>
<span>${j.price}</span>
<button className="w-8 h-8"><TrashIcon /></button>
</div>
))}
<div className="fixed bottom-0 z-[999] w-full">
<button onClick={() => confirm('Delete all?') && clearAll()}>Clear day</button>
</div>
</div>
You get back
Violations
1. className="h-screen ..."
Why: h-screen is 100vh, which runs under the browser bars on phones.
Fix: h-dvh.
2. bg-gradient-to-r from-purple-500 to-pink-500
Why: the baseline allows no gradients unless asked for, and never a purple or multicolor one.
Fix: a flat surface from your theme, e.g. bg-background, or bg-white if you have no color tokens yet.
3. <h2 className="text-2xl font-bold tracking-wide">
Why: letter-spacing stays at the font's default unless you explicitly want it changed, and headings should balance their line breaks.
Fix: <h2 className="text-2xl font-bold text-balance">.
4. className="flex hover:w-[105%] transition-all duration-500"
Why: this animates width, a layout property, so every row reflows on hover; 500ms is well past the 200ms ceiling for interaction feedback; and it's animation nobody needs to manage a booking.
Fix: drop the motion. If you want a hover cue, use a plain color change with no transition: flex items-center gap-3 hover:bg-muted.
5. <span>{j.bike}</span>
Why: this is a dense row, so a long bike description will push the price and the delete button off the line.
Fix: <span className="min-w-0 flex-1 truncate">{j.bike}</span>.
6. <span>${j.price}</span>
Why: prices stacked in a column jitter when digits have different widths.
Fix: <span className="tabular-nums">${j.price}</span>.
Part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Quotes each rule break with a one-line reason.
- Suggests a code fix for every problem.
- Uses the project's own components first.
What's inside
baseline-ui/CREDITS.mdbaseline-ui/LICENSEbaseline-ui/SKILL.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use baseline-ui".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.