Refactoring UI fixes for your screens
Show Claude a screen that looks off and it fixes it by Adam Wathan and Steve Schoger's Refactoring UI.
See it work
You give it
Use refactoring-ui. The "today" card on the dashboard for my tiffin delivery kitchen in Pune looks amateur and I can't say why. Here it is:
<div class="bg-white p-[13px] shadow-2xl rounded-xl text-center">
<p class="text-[15px] font-bold text-black">TODAY'S ORDERS</p>
<p class="text-[22px] text-[#999]">186</p>
<p class="text-[15px] font-bold text-black">Revenue</p>
<p class="text-[22px] text-[#999]">₹27,900</p>
<p class="text-green-500 font-bold">+12% vs yesterday</p>
<button class="bg-red-500 text-white font-bold mt-[17px] px-[23px] py-[9px] w-full">Cancel pending orders</button>
</div>
You get back
Score: 1/10. One of the 8 diagnostic checks passes (round(1/8 × 10) = 1). The reason it looks amateur is mostly one thing: the card's hierarchy is upside down. The labels are bold and black, the numbers you actually opened the dashboard to see are light gray, and the loudest thing on the card is a red button you hope never to press.
Quick Diagnostic
Check · Result · What's happening
1 · Hierarchy reads when you squint (blur test) · Fail · Squint and you see two bold black labels and a red block. 186 and ₹27,900 vanish.
2 · Works in grayscale · Fail · Strip the color and the button is the darkest, heaviest shape, so it reads first. The green "+12%" turns into a pale smudge.
3 · Enough white space · Fail · 13px of padding and no gap between the two metrics, so orders and revenue run together as one list of five lines.
4 · Labels de-emphasized vs values · Fail · Reversed: labels are 15px bold black, values are 22px regular #999.
5 · Spacing follows a scale · Fail · 13, 17, 23 and 9px padding, 15 and 22px type. None of them is on the 4/8/16/24/32 spacing scale or the 12/14/16/18/20/24/30/36 type scale.
6 · Text width constrained · Pass · It's a small card, so no line gets long.
7 · Colors have enough contrast · Fail · #999 on white is 2.85:1, below 4.5:1 for normal text and below 3:1 even at 22px. Green-500 text on white is 2.28:1. White on red-500 is 3.76:1, under 4.5:1 for 16px button text.
8 · Shadow fits the elevation · Fail · shadow-2xl is past modal level (modals use shadow-xl). A card resting on the dashboard needs shadow-sm.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Builds hierarchy with size, weight and colour.
- Uses fixed scales for spacing and type.
- Scores the screen with an 8-point check.
What's inside
refactoring-ui/CREDITS.mdrefactoring-ui/LICENSErefactoring-ui/SKILL.mdrefactoring-ui/references/accessibility-depth.mdrefactoring-ui/references/advanced-patterns.mdrefactoring-ui/references/animation-microinteractions.mdrefactoring-ui/references/data-visualization.mdrefactoring-ui/references/theming-dark-mode.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 refactoring-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.