AgentStack
SKILL verified MIT Self-run

Refactoring Ui

skill-opkod-france-claude-skill-refactoring-ui-refactoring-ui · by opkod-france

Professional UI design principles using Tailwind CSS and shadcn/ui. Use this skill when creating web interfaces, React components, HTML layouts, landing pages, dashboards, or any visual UI work. Applies Refactoring UI principles via Tailwind utilities and shadcn components for polished, professional designs. Triggers when building UI components, styling interfaces, creating layouts, designing for…

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-opkod-france-claude-skill-refactoring-ui-refactoring-ui

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

Are you the author of Refactoring Ui? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Refactoring UI with Tailwind + shadcn/ui

Apply professional design principles using Tailwind's design system and shadcn/ui components.

Core Principles

  1. Start with functionality, not chrome - Design the feature first, not the shell
  2. Work in grayscale first - Add color only after hierarchy is established
  3. Use existing systems - Tailwind scale + shadcn components, don't reinvent
  4. 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 Label components (accessibility)
  • ❌ Overriding shadcn styles instead of using variants
  • ❌ Not using space-y-* or gap-* 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.