
Tailwind Ui Refactor
This is the Refactoring UI book systematized into 52 prioritized rules for Tailwind CSS. It's built for refactoring existing components or writing new ones when you don't have a designer. The rules span nine categories from critical (design intent, hierarchy, spacing) down to polish details, all with Tailwind v4 syntax and fallbacks for v3. What's smart here is the "think first, style second" approach: it forces you to audit what elements actually communicate before touching CSS. If you've read Refactoring UI, this codifies those principles into something Claude can apply consistently. If you haven't, it's a crash course in visual hierarchy through utility classes.
- skills.sh installs
- 467
- GitHub stars
- 222
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pproenca/dot-skills --skill tailwind-ui-refactor --agent claude-codeInstalls into .claude/skills of the current project.
Files
Refactoring UI Tailwind CSS Best Practices
Comprehensive UI refactoring guide based on Refactoring UI by Adam Wathan & Steve Schoger, implemented with Tailwind CSS utility classes. Contains 52 rules across 9 categories, prioritized by design impact to guide automated refactoring and code generation. Uses Tailwind CSS v4 syntax (v3 notes provided where syntax differs).
Important: Think first, style second. Before applying any visual rule, understand the UI's purpose, identify what matters to the user, and remove unnecessary elements. The Design Intent category (priority 1) must be considered before any styling changes. A simpler component with fewer elements always beats a decorated component with unnecessary markup.
When to Apply
Reference these guidelines when:
- Refactoring existing Tailwind CSS components
- Writing new UI with Tailwind utility classes
- Reviewing code for visual hierarchy and spacing issues
- Improving design quality without a designer
- Fixing accessibility contrast problems
Rule Categories by Priority
Sponsors
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Frontend Development, Git & Pull Requests, Documentation, Code Review & Quality, Design & UI/UX
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Zustand453
- Debug444
- Ios Design436
- Feature Spec431
- Feature Arch423
- React Testing Library418
- Jscodeshift416
- Expo React Native Coder415
- Tdd415
- Humanize409
- React Optimise403
- Knip Deadcode390
- Rails Hotwire380
- Ts Google378
- Nginx C Module Design369
- Vite367
- Nginx C Modules365
- Ios Animations355
- Dockerfile Optimise351
- Uniwind348
- 37signals Rails340
- Ast Grep340
- Audio Voice Recovery340
- Orval338