Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tailwind-ui-refactor

БесплатноБез исполняемых скриптовНе проверен

Refactoring UI design patterns for Tailwind CSS applications. This skill should be used when writing, reviewing, or refactoring HTML with Tailwind utility…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

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)

Полный SKILL.md на GitHub

Установить tailwind-ui-refactor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/color-accessible-contrast.mdreferences/color-dark-gray-not-black.mdreferences/color-define-palette-upfront.mdreferences/color-grayscale-first.mdreferences/color-light-backgrounds-dark-text.mdreferences/color-saturated-grays.mdreferences/depth-interactive-elevation.mdreferences/depth-light-closer-dark-recedes.mdreferences/depth-overlap-layers.mdreferences/depth-shadow-scale.mdreferences/depth-shadow-vertical-offset.mdreferences/hier-button-hierarchy.mdreferences/hier-color-hierarchy-on-dark.mdreferences/hier-deemphasize-secondary.mdreferences/hier-icon-sizing.mdreferences/hier-label-value-pairs.mdreferences/hier-semantic-vs-visual.mdreferences/hier-size-weight-color.mdreferences/img-control-user-content.mdreferences/img-dont-scale-up-icons.mdreferences/img-empty-states.mdreferences/img-text-overlay.mdreferences/intent-audit-before-styling.mdreferences/intent-content-drives-layout.mdreferences/intent-match-context-fidelity.mdreferences/intent-match-existing-patterns.mdreferences/intent-progressive-disclosure.mdreferences/intent-reduce-cognitive-load.mdreferences/intent-remove-before-decorating.mdreferences/intent-simplify-over-decorate.mdreferences/polish-accent-borders.mdreferences/polish-border-radius-personality.mdreferences/polish-custom-bullets.mdreferences/polish-gradient-close-hues.mdreferences/polish-inner-shadow-images.mdreferences/sep-background-color-separation.mdreferences/sep-card-radio-buttons.md

FAQ

Что делает скилл tailwind-ui-refactor?

Refactoring UI design patterns for Tailwind CSS applications. This skill should be used when writing, reviewing, or refactoring HTML with Tailwind utility classes to improve visual hierarchy, spacing, typography, color, depth, and polish. Triggers on tasks involving UI cleanup, design review, Tailwind refactoring, component styling, or visual improvements.

Как установить скилл tailwind-ui-refactor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tailwind-ui-refactor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tailwind-ui-refactor с