tailwind-ui-refactor

📁 pproenca/dot-skills 📅 2 days ago
43
总安装量
3
周安装量
#8987
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill tailwind-ui-refactor

Agent 安装分布

amp 3
gemini-cli 3
claude-code 3
github-copilot 3
codex 3
kimi-cli 3

Skill 文档

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 44 rules across 8 categories, prioritized by visual impact to guide automated refactoring and code generation.

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 Visual Hierarchy CRITICAL hier-
2 Layout & Spacing CRITICAL space-
3 Typography HIGH type-
4 Color Systems HIGH color-
5 Depth & Shadows MEDIUM depth-
6 Borders & Separation MEDIUM sep-
7 Images & Content LOW-MEDIUM img-
8 Polish & Details LOW polish-

Quick Reference

1. Visual Hierarchy (CRITICAL)

2. Layout & Spacing (CRITICAL)

3. Typography (HIGH)

4. Color Systems (HIGH)

5. Depth & Shadows (MEDIUM)

6. Borders & Separation (MEDIUM)

7. Images & Content (LOW-MEDIUM)

8. Polish & Details (LOW)

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