This skill helps you craft production-grade UI with consistent spacing, typography, color, and depth using Refactoring UI-inspired principles.
npx playbooks add skill anilcancakir/my-claude-code --skill web-design-mastery
Production-grade UI design principles from Refactoring UI by Adam Wathan & Steve Schoger.
---
Define these systems up front to eliminate decision fatigue:
Spacing Scale (px):
| Token | Size | Use Case |
|-------|------|----------|
| 1 | 4 | Micro gaps |
| 2 | 8 | Tight, within components |
| 3 | 12 | Related elements |
| 4 | 16 | Section padding |
| 6 | 24 | Between sections |
| 8 | 32 | Major separation |
| 12 | 48 | Large gaps |
| 16 | 64 | Hero spacing |
| 24 | 96 | Maximum separation |
Type Scale (px):
| Size | Use Case |
|------|----------|
| 12 | Labels, meta, fine print |
| 14 | Body text, default |
| 16 | Emphasis, subheadings |
| 18 | Section headings |
| 20 | Card titles |
| 24 | Page section titles |
| 30 | Page headings |
| 36 | Hero subheading |
| 48 | Hero heading |
| 60-72 | Display text |
Shadow Scale (5 levels):
| Level | Use Case |
|-------|----------|
| 1 | Buttons, subtle lift |
| 2 | Cards, inputs |
| 3 | Dropdowns, popovers |
| 4 | Sticky elements |
| 5 | Modals, dialogs |
Key principles:
---
Categories needed:
Process for defining shades:
Key rules:
---
NEVER do:
---
For detailed guidance on specific topics:
| Topic | File | When to Read |
|-------|------|--------------|
| Visual hierarchy, labels, emphasis | [hierarchy.md](references/hierarchy.md) | Balancing element importance |
| Spacing, white space, layout grids | [spacing-layout.md](references/spacing-layout.md) | Layout decisions |
| Typography, fonts, line-height | [typography.md](references/typography.md) | Text styling |
| HSL, shades, accessibility | [color.md](references/color.md) | Color palette creation |
| Shadows, elevation, layers | [depth.md](references/depth.md) | Adding depth to UI |
| Borders, backgrounds, empty states | [finishing-touches.md](references/finishing-touches.md) | Polishing design |
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.