Install
$ agentstack add skill-opkod-france-claude-skill-refactoring-ui-refactoring-ui ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Refactoring UI with Tailwind + shadcn/ui
Apply professional design principles using Tailwind's design system and shadcn/ui components.
Core Principles
- Start with functionality, not chrome - Design the feature first, not the shell
- Work in grayscale first - Add color only after hierarchy is established
- Use existing systems - Tailwind scale + shadcn components, don't reinvent
- Hierarchy is everything - Not all elements deserve equal emphasis
Topic References
- [shadcn.md](references/shadcn.md) - Component patterns, composition, customization
- [hierarchy.md](references/hierarchy.md) - Visual hierarchy, emphasis, contrast
- [spacing.md](references/spacing.md) - Layout, whitespace, sizing
- [typography.md](references/typography.md) - Type scales, fonts, line-height
- [color.md](references/color.md) - Palettes, shades, accessibility
- [depth.md](references/depth.md) - Shadows, elevation, layering
- [polish.md](references/polish.md) - Finishing touches, borders, backgrounds
Quick Start with shadcn/ui
Installation (Next.js)
npx shadcn@latest init
npx shadcn@latest add button card input label
Core Components to Know
| 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 |
Button Hierarchy (shadcn)
// Primary: one per section max
Save Changes
// Secondary: clear but not dominant
Cancel
// Outline: lighter touch
Edit
// Ghost: minimal, for toolbars/nav
Settings
// Destructive: dangerous actions (use sparingly)
Delete
// Link: text-only navigation
Learn more
Common Patterns
Card with Hierarchy
Account Settings
Manage your account preferences.
{/* Form fields */}
Cancel
Save
Form with Labels
Email
Password
Alert Messages
Note
Your session will expire in 5 minutes.
Error
Failed to save changes.
Anti-Patterns
- ❌ Multiple primary buttons in one view
- ❌
variant="destructive"for non-destructive actions - ❌ Skipping
Labelcomponents (accessibility) - ❌ Overriding shadcn styles instead of using variants
- ❌ Not using
space-y-*orgap-*for consistent spacing - ❌ Arbitrary Tailwind values like
w-[423px](use scale) - ❌ Grey text on colored backgrounds (use same-hue shades)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: opkod-france
- Source: opkod-france/claude-skill-refactoring-ui
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.