Refactoring UI Skill — Design skill for Claude Code
A Claude Code skill that applies the concrete design rules from the book Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, hierarchy through weight and color, and depth.
How to install Refactoring UI Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open s0xDk/refactoring-ui-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Refactoring UI Skill does
A Claude Code skill that applies the concrete design rules from the book Refactoring UI (Wathan & Schoger) — constrained spacing/type/color/shadow scales, hierarchy through weight and color, and depth through emulated light — to building and fixing interfaces.
Alternatives in Design
- Theme Factory — Style artifacts with professional themes including 10 pre-set color/font combinations 94.1k ★
- Theme Swap — Recolour an extracted site's design around a new brand primary 3.6k ★
- Taste Skill — Claude Code skill — reverse-engineer any website's design taste: concrete tokens + opinionated trade-offs (WHY 320 ★
README
Refactoring UI (Claude Code skill)
A [Claude Code](https://claude.com/claude-code) skill that teaches Claude the concrete, mechanical rules from the book *[Refactoring UI](https://www.refactoringui.com/)* by Adam Wathan and Steve Schoger — constrained spacing/type/color/shadow scales, visual hierarchy through weight and color rather than size, and depth through emulated light.
Every rule and CSS value in this skill was cross-checked page-by-page against the book. It's not a summary — it's the book's decisions, made once, ready to apply.
What it does
Load this skill and Claude will, when styling or reviewing UI:
- Pick spacing, type sizes, weights, colors, shadows and radii from fixed scales instead of ad hoc values
- Build hierarchy through weight/color rather than piling on font-size
- Diagnose vague complaints ("looks off", "feels cheap") into specific, mechanical fixes
- Apply concrete techniques for depth, contrast, images, and breaking generic component shapes
It does **not** include the book itself — see [Credits](#credits).
Repo structure
SKILL.md the skill: systems, procedure, hierarchy, hard rules
references/
systems.md building a color palette from scratch (HSL, saturation, hue rotation)
diagnose.md symptom -> fix table, for improving existing UI
techniques.md depth/light simulation, typefaces, grids, images
assets/
tokens.css a complete, contrast-verified starter token set
Installation
Claude Code loads skills from a folder containing a `SKILL.md`. Clone this repo into one of the skill directories below — **use the folder name `refactoring-ui`** so it matches the skill's declared name.
Personal skill (available in every project)
git clone https://github.com//refactoring-ui-skill.git ~/.claude/skills/refactoring-ui
Project skill (checked into a specific repo, shared with your team)
git clone https://github.com/
Related Skills
Design Critique
UX heuristic review of Figma screens — evaluates against Nielsen's 10 heuristics, visual design quality, spaci
Tokenize
Stand up design system foundations — tokens, type scale, color, and spacing with adaptive-interface checks.
Color Scales
Claude skill that turns a brand palette into consistent color scales for design systems: places each color by
UX Directives Skill
Claude skill that applies The Blue Book of UX Directives: 550 numbered directives in 9 chapters. Audits design
Writing Review
Comprehensive writing review — auto-detects document type and runs appropriate clarity, humanization, and styl
Twin Sparrow Japanese Design
Two retained surface principles for Twin-Sparrow product/UI work: a minimal-spacing hierarchy (hairlines and m
Related Agents
Mj Typographer
Typographer with a style-book mind — typeface selection, pairing, hierarchy, spacing systems, and typographic
Design Auditor
Retrospective 7-pillar audit (copy, visual hierarchy, color, typography, layout/spacing, experience, micro-pol
Engineering Design Specialist
Expert design engineer specializing in visual judgment, typography, spacing, color hierarchy, motion polish, a