Applies professional UI design principles using Tailwind CSS and shadcn/ui. Covers visual hierarchy, spacing, typography, color, forms, and SaaS patterns for polished interfaces.
Ships in ui-polish. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Apply professional design principles using Tailwind's design system and shadcn/ui components.
Different contexts require different design approaches. Before applying patterns, identify your context:
| Aspect | Marketing/Landing | SaaS/Admin Dashboard |
|---|---|---|
| Goal | Convert visitors | Enable productivity |
| Users | First-time visitors | Repeated daily use |
| Forms | Minimal (2-4 fields) | Complex multi-field |
| Layout | Single-column only | Multi-column OK |
| Errors | Prevent abandonment | Offer undo/recovery |
Quick decision: Is the user here once or daily? Once → optimize for conversion. Daily → optimize for efficiency.
See saas-patterns.md for SaaS-specific patterns: modals vs sheets vs pages, confirmation dialogs, CRUD tables, empty states, and loading patterns.
npx shadcn@latest init
npx shadcn@latest add button card input label
| Component | Use for |
|---|---|
Button | Actions with built-in variants (default, secondary, outline, ghost, destructive) |
Card | Content containers with header, content, footer |
Input + Label | Form fields with consistent styling |
Dialog | Modals with accessible focus management |
DropdownMenu | Actions menus with keyboard navigation |
Select | Styled native-like selects |
Tabs | Content organization |
Badge | Status indicators, counts |
Alert | Feedback messages |
Skeleton | Loading states |
// Primary: one per section max
<Button>Save Changes</Button>
// Secondary: clear but not dominant
<Button variant="secondary">Cancel</Button>
// Outline: lighter touch
<Button variant="outline">Edit</Button>
// Ghost: minimal, for toolbars/nav
<Button variant="ghost">Settings</Button>
// Destructive: dangerous actions (use sparingly)
<Button variant="destructive">Delete</Button>
// Link: text-only navigation
<Button variant="link">Learn more</Button>
<Card>
<CardHeader>
<CardTitle>Account Settings</CardTitle>
<CardDescription>Manage your account preferences.</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
{/* Form fields */}
</CardContent>
<CardFooter className="flex justify-end gap-2">
<Button variant="outline">Cancel</Button>
<Button>Save</Button>
</CardFooter>
</Card>
// Single-column layout (always preferred)
<form className="space-y-6 max-w-md">
<div className="space-y-2">
<Label htmlFor="email">Email</Label>
<Input id="email" type="email" placeholder="[email protected]" />
</div>
<div className="space-y-2">
<Label htmlFor="password">Password</Label>
<Input id="password" type="password" />
<p className="text-sm text-muted-foreground">At least 8 characters</p>
</div>
<Button type="submit" className="w-full">Sign In</Button>
</form>
See forms.md for multi-step forms, validation, and mobile optimization.
<Alert>
<InfoIcon className="h-4 w-4" />
<AlertTitle>Note</AlertTitle>
<AlertDescription>Your session will expire in 5 minutes.</AlertDescription>
</Alert>
<Alert variant="destructive">
<AlertCircle className="h-4 w-4" />
<AlertTitle>Error</AlertTitle>
<AlertDescription>Failed to save changes.</AlertDescription>
</Alert>
variant="destructive" for non-destructive actionsLabel components (accessibility)space-y-* or gap-* for consistent spacingw-[423px] (use scale)Is this a confirmation/alert? → Modal
Need to reference background content? → Sheet/Drawer (but NOT for long forms)
Complex form (>5 fields)? → Full Page (NEVER sheet/drawer)
Form scrolls or has sections? → Full Page
Quick edit (1-3 fields)? → Inline or small Modal
Settings/filters panel? → Drawer
⚠️ Common mistake: Putting long forms in sheets/drawers. If the form scrolls, has >5 fields, or has multiple sections, use a full page instead.
Easily undone (archive, tag)? → Toast with undo
Moderate impact (delete draft)? → Simple modal
High impact (remove user)? → Modal with consequences
Irreversible (delete account)? → Type-to-confirm
See saas-patterns.md for full decision frameworks and code examples.
references/color.md (opens in a new tab)references/depth.md (opens in a new tab)references/forms.md (opens in a new tab)references/hierarchy.md (opens in a new tab)references/polish.md (opens in a new tab)references/saas-patterns.md (opens in a new tab)references/shadcn.md (opens in a new tab)references/spacing.md (opens in a new tab)references/typography.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ui-design, tailwind-css, shadcn-ui, refactoring-ui, design-principles
/ui-polish:refactoring-uifrom ui-polish
npx claudepluginhub opkod-france/opkod-claude-code-plugins --plugin ui-polishOther plugins' skills for the same job