Skip to content
pproenca avatar

Tailwind Ui Refactor

Structured guide that refactors Tailwind CSS interfaces across 52 design rules, ordered from design intent through polish.

CCM score
53 of 100
skills.sh installs
480
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 9 prioritized categories: design intent, visual hierarchy, layout and spacing, typography, color, depth, borders, images, and polish
  • Includes a quick-reference index linking each rule to its reference file, using Tailwind CSS v4 syntax with v3 notes where they differ
  • Enforces an audit-before-styling order, so removing unnecessary elements is considered before any visual changes are applied
  • Designed for refactoring or reviewing Tailwind components when working without a dedicated designer

Install

$ npx -y skills add pproenca/dot-skills --skill tailwind-ui-refactor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/pproenca/dot-skills
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jun 3, 2026

Questions

What does the tailwind-ui-refactor skill do?

tailwind-ui-refactor guides refactoring of HTML written with Tailwind CSS utility classes to improve visual hierarchy, spacing, typography, color, depth and polish. It is based on the Refactoring UI book by Adam Wathan and Steve Schoger and covers 52 rules across 9 categories, starting with design intent before any styling changes.

How do I install the tailwind-ui-refactor skill?

Run npx -y skills add pproenca/dot-skills --skill tailwind-ui-refactor -y in your project to install it. Once added, tailwind-ui-refactor helps the agent review and refactor Tailwind components with a design-first approach.

Who should use tailwind-ui-refactor?

tailwind-ui-refactor suits developers who write or review Tailwind CSS markup and want better visual results without a designer. It triggers on UI cleanup, design review, Tailwind refactoring, component styling and visual improvement tasks.

Where does tailwind-ui-refactor sit in its category?

tailwind-ui-refactor is listed in the Frontend & UI Code category on Claude Marketplaces. Its sibling skills there include web-design-guidelines and design-taste-frontend, and tailwind-ui-refactor focuses specifically on Tailwind utility class markup.

Does tailwind-ui-refactor require Tailwind CSS v4?

tailwind-ui-refactor uses Tailwind CSS v4 syntax and provides v3 notes where the syntax differs. It works on HTML with Tailwind utility classes, so your project needs to use Tailwind.

More from pproenca/dot-skills

All 100

Similar to Tailwind Ui Refactor

More Frontend & UI Code