tailwind-ui-refactor

pproenca/dot-skills · updated Apr 8, 2026

$npx skills add https://github.com/pproenca/dot-skills --skill tailwind-ui-refactor
0 commentsdiscussion
summary

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).

skill.md

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

Priority Category Impact Prefix
1 Design Intent CRITICAL intent-
2 Visual Hierarchy CRITICAL hier-
3 Layout & Spacing CRITICAL space-
4 Typography HIGH type-
5 Color Systems HIGH color-
6 Depth & Shadows MEDIUM depth-
7 Borders & Separation MEDIUM sep-
8 Images & Content LOW-MEDIUM img-
9 Polish & Details LOW polish-

Quick Reference

1. Design Intent (CRITICAL)

2. Visual Hierarchy (CRITICAL)

3. Layout & Spacing (CRITICAL)

4. Typography (HIGH)

5. Color Systems (HIGH)

6. Depth & Shadows (MEDIUM)

7. Borders & Separation (MEDIUM)

8. Images & Content (LOW-MEDIUM)

9. Polish & Details (LOW)

Scope & Limitations

This skill covers layout, hierarchy, spacing, color, and polish based on Refactoring UI principles. It does NOT cover:

  • Font selection & pairing — choosing distinctive typefaces, avoiding generic AI defaults (Inter, Arial, system-ui), or pairing display + body fonts
  • Animation & motion — meaningful transitions, micro-interactions, page load sequences, or scroll-triggered reveals
  • Creative direction — establishing an aesthetic vision, choosing a tone (minimal, maximalist, brutalist, etc.), or differentiating from generic "AI slop" aesthetics
  • Spatial composition — asymmetric layouts, grid-breaking elements, or unconventional visual flow

For these concerns, pair this skill with a design-thinking or frontend-design skill that covers creative direction and aesthetic execution.

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.648 reviews
  • Dhruvi Jain· Dec 24, 2024

    Solid pick for teams standardizing on skills: tailwind-ui-refactor is focused, and the summary matches what you get after install.

  • Daniel Haddad· Dec 24, 2024

    Registry listing for tailwind-ui-refactor matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Arya Haddad· Dec 20, 2024

    I recommend tailwind-ui-refactor for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Anika Chen· Dec 20, 2024

    Useful defaults in tailwind-ui-refactor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Anika Farah· Dec 4, 2024

    Keeps context tight: tailwind-ui-refactor is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Oshnikdeep· Nov 15, 2024

    We added tailwind-ui-refactor from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Jin Bansal· Nov 15, 2024

    Useful defaults in tailwind-ui-refactor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Amina Jain· Nov 11, 2024

    tailwind-ui-refactor reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Anaya Okafor· Nov 11, 2024

    Registry listing for tailwind-ui-refactor matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ganesh Mohane· Oct 6, 2024

    tailwind-ui-refactor fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

showing 1-10 of 48

1 / 5