LR

lovropodobnik/refactoring-ui-skill

Analytics & monitoring
51 stars 품질 40 트렌드 40

Claude Code skill for building better UIs using Refactoring UI principles

개요

A Claude Code skill that teaches AI to build better UIs using tactical design principles from Refactoring UI. AI can write functional code but often produces generic, poorly designed interfaces. This skill gives Claude Code a design system and tactical rules to follow, resulting in more professional UIs. 1. Copy the .claude folder to your project root 2. Ask Claude Code to build UI or use the skill directly: The skill enforces these tactical rules: - - Uses defined spacing scales (4, 8, 12, 16, 24, 32, 48, 64px) - - Not ratio-based (12, 14, 16, 18, 20, 24, 30, 36px) - - With proper saturation curves and hue rotation for shades - - Through weight and color, not just size - - Defined shadow levels for consistent depth The /design folder contains an example dashboard built using this skill: - index.html - Dashboard with sidebar, stats, charts, and data table - styles.css - Complete design system with CSS custom properties - script.

README

Refactoring UI - Claude Code Skill

A Claude Code skill that teaches AI to build better UIs using tactical design principles from Refactoring UI.

Why this matters: AI can write functional code but often produces generic, poorly designed interfaces. This skill gives Claude Code a design system and tactical rules to follow, resulting in more professional UIs.

What’s Inside

.claude/
├── skills/ui-refactor/
│   ├── SKILL.md              # Main skill definition
│   └── references/
│       ├── hierarchy.md      # Visual hierarchy tactics
│       ├── layout-spacing.md # Spacing systems & grids
│       ├── typography.md     # Type scales & fonts
│       ├── color.md          # HSL palettes & contrast
│       └── depth-and-polish.md # Shadows & finishing touches
│
└── commands/                 # Slash commands for quick fixes
    ├── ui-refactor.md
    ├── fix-hierarchy.md
    ├── fix-typography.md
    ├── fix-layout.md
    └── fix-colors.md

Usage

  1. Copy the .claude folder to your project root
  2. Ask Claude Code to build UI or use the skill directly:
/ui-refactor Create a dashboard with stats cards and a data table

Or just describe what you want:

"Build me a pricing page with three tiers"
"Make this form look more professional"
"Fix the visual hierarchy on this card component"

Key Principles

The skill enforces these tactical rules:

  • No arbitrary values - Uses defined spacing scales (4, 8, 12, 16, 24, 32, 48, 64px)
  • Hand-picked type scales - Not ratio-based (12, 14, 16, 18, 20, 24, 30, 36px)
  • HSL colors - With proper saturation curves and hue rotation for shades
  • Visual hierarchy - Through weight and color, not just size
  • Elevation system - Defined shadow levels for consistent depth

Example Output

The /design folder contains an example dashboard built using this skill:

  • index.html - Dashboard with sidebar, stats, charts, and data table
  • styles.css - Complete design system with CSS custom properties
  • script.js - Interactive functionality

Live Demo

Credits

Design principles from Refactoring UI by Adam Wathan & Steve Schoger. This skill is a distillation of their book into actionable rules for AI code generation.


Built with Claude Code

View this README on GitHub

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add lovropodobnik/refactoring-ui-skill