Command Palette

Search for a command to run...

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

ui-design

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

Opinionated constraints for building better interfaces with agents. Use when building UI components, implementing animations, designing layouts, reviewing…

ckorhonenот ckorhonen★ 35 звёзд на GitHub4 установки в других каталогах

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

UI Design

Opinionated constraints for building better interfaces with agents.

When to Use

  • Building UI components with Tailwind CSS
  • Implementing animations or transitions
  • Adding interactive elements with keyboard/focus behavior
  • Reviewing frontend code for accessibility
  • Designing layouts with proper z-index and spacing
  • Working with loading states, error handling, or empty states

Stack

Requirement Rule
Tailwind CSS MUST use defaults (spacing, radius, shadows) before custom values
Animation library MUST use motion/react (formerly framer-motion) for JS animation
CSS animation SHOULD use tw-animate-css for entrance and micro-animations
Class logic MUST use cn utility (clsx + tailwind-merge)

Components

Requirement Rule
Interactive primitives MUST use accessible primitives (Base UI, React Aria, Radix) for keyboard/focus behavior
Existing components MUST use project's existing primitives first
Consistency NEVER mix primitive systems within the same interaction surface
New primitives SHOULD prefer Base UI if compatible with stack
Icon buttons MUST add aria-label to icon-only buttons
Custom behavior NEVER rebuild keyboard or focus behavior by hand unless explicitly requested

Interaction

Requirement Rule
Destructive actions MUST use AlertDialog for destructive or irreversible actions
Loading states SHOULD use structural skeletons
Viewport height NEVER use h-screen, use h-dvh
Fixed elements MUST respect safe-area-inset
Error display MUST show errors next to where the action happens
Input behavior NEVER block paste in input or textarea elements

Animation

Requirement Rule
Default NEVER add animation unless explicitly requested
Compositor props MUST animate only transform, opacity
Layout props NEVER animate width, height, top, left, margin, padding
Paint props SHOULD avoid background, color except for small, local UI (text, icons)
Entrance easing SHOULD use ease-out on entrance
Feedback timing NEVER exceed 200ms for interaction feedback
Looping MUST pause looping animations when off-screen
Accessibility MUST respect prefers-reduced-motion
Custom easing NEVER introduce custom easing curves unless explicitly requested
Large surfaces SHOULD avoid animating large images or full-screen surfaces

Typography

Requirement Rule
Headings MUST use text-balance
Body text MUST use text-pretty for paragraphs
Data MUST use tabular-nums
Dense UI SHOULD use truncate or line-clamp
Letter spacing NEVER modify letter-spacing (tracking-) unless explicitly requested

Layout

Requirement Rule
Z-index MUST use a fixed scale (no arbitrary z-x)
Square elements SHOULD use size-x instead of w-x + h-x

Performance

Requirement Rule
Blur effects NEVER animate large blur() or backdrop-filter surfaces
Will-change NEVER apply will-change outside an active animation
useEffect NEVER use for anything expressible as render logic

Design

Requirement Rule
Gradients NEVER use unless explicitly requested
Purple/multicolor gradients NEVER use
Glow effects NEVER use as primary affordances
Shadows SHOULD use Tailwind CSS default scale unless explicitly requested
Empty states MUST give one clear next action
Accent colors SHOULD limit to one per view
Color tokens SHOULD use existing theme or Tailwind CSS tokens before introducing new ones

Common Pitfalls

The most common UI design failures occur in spacing, color contrast, mobile responsiveness, state management, and visual hierarchy. These gotchas are discovered through repeated agent mistakes when building interfaces.

1. Inconsistent Spacing (Arbitrary Margins, No System)

Problem: Using an inconsistent mix of Tailwind spacing values without a deliberate system makes layouts feel incoherent.

// ❌ WRONG - arbitrary pixel values, no spacing system
<div className="ml-[13px] mr-[22px] pt-[7px]">Content</div>

// ✅ CORRECT - use system scales
<div className="ml-4 mr-4 pt-4">Content</div>

Why it fails:

  • Designs look accidental (some spacing is 2px, some is 16px, no pattern)
  • Mobile layouts break (spacing doesn't scale proportionally)
  • Alignment is impossible (gaps don't align to grid)

Fix:

  • ALWAYS use Tailwind spacing scale (0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, etc.)
  • Define spacing systems for common patterns:
    • Button padding: px-4 py-2
    • Card padding: p-6
    • Gap between sections
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Opinionated constraints for building better interfaces with agents. Use when building UI components, implementing animations, designing layouts, reviewing frontend accessibility, or working with Tailwind CSS, motion/react, or accessible primitives like Radix/Base UI.

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

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

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

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

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

Сравнить ui-design с