pproenca avatar

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-code

Installs 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
1sergiodxa avatarfrontend-tailwind-best-practicessergiodxa/agent-skillsTailwind CSS patterns and conventions for frontend apps. Use when writing component styles, layouts, or working with CSS classes.465skills.sh installs
2manutej avatartailwind-cssmanutej/luxor-claude-marketplaceUtility-first CSS framework for rapid UI development with responsive design, component patterns, and production optimization. Master core utilities, dark mode, 463skills.sh installs
3majesteitbart avatarshadcn-ui-expertmajesteitbart/talentmatcherDevelop high-quality, accessible React components using shadcn-ui, Tailwind CSS, and Radix UI. Use when building forms, layouts, dialogs, tables, or any UI comp445skills.sh installs
4secondsky avatarnuxt-ui-v4secondsky/claude-skillsNuxt UI v4 component library for building Nuxt v4 applications. 125+ accessible components with Tailwind v4, Reka UI, dark mode, theming. Use for dashboards, fo421skills.sh installs
5julianromli avatarfrontend-ui-animatorjulianromli/ai-skillsAnalyze and implement purposeful UI animations for Next.js + Tailwind + React projects. Use when user asks to add animations, enhance UI motion, animate pages/c342skills.sh installs
6ovachiever avatarnextjs-shadcn-builderovachiever/droid-tingsBuild new Next.js applications or migrate existing frontends (React, Vue, Angular, vanilla JS, etc.) to Next.js + shadcn/ui with systematic analysis and convers263skills.sh installs