
Magic UI
FreeSeamlessly integrate and customize Magic UI components in React/Next.js.
Free · Opens the source repo
What Magic UI does
Magic UI is designed for developers and designers working with React and Next.js who want to enhance their projects with interactive UI components. This skill simplifies the process of adding, customizing, and troubleshooting various Magic UI components, enabling users to create visually appealing and functional interfaces. With a focus on accessibility and maintainability, Magic UI ensures that your applications not only look good but also perform well across different devices.
The workflow begins with defining the desired UI outcome, allowing you to identify the type of section, tone, and motion intensity needed for your project. It emphasizes the importance of intentional motion, guiding you to avoid overwhelming users with too many high-motion effects. Once the UI outcome is established, the skill helps confirm project prerequisites, ensuring that your React/Next.js project is set up correctly with Tailwind CSS and that the shadcn registry is initialized.
After confirming prerequisites, installing the selected Magic UI components is straightforward. The skill provides clear commands for adding components to your project, along with guidance on how to integrate them effectively. This includes maintaining component APIs and ensuring that any necessary dependencies or CSS keyframes are included. Quality validation is a crucial step, as the skill encourages checks for accessibility, responsiveness, performance, and maintainability before finalizing your implementation.
For users who may need additional information, the skill includes references for component selection and implementation patterns, making it easier to choose the right components for specific use cases. Whether you're building a hero section, a testimonial display, or a call-to-action feature, Magic UI provides the tools and guidance needed to create engaging user experiences.
When to use it
Use this skill when you need to add or troubleshoot Magic UI components, especially in interactive UI scenarios.
When not to use it
This skill may not be suitable for projects outside of React/Next.js or if you're not using Tailwind CSS, as it is specifically tailored for these technologies.
What you can build with it
Adding a Hero Section
Use Magic UI to quickly implement a visually striking hero section with animated backgrounds and engaging call-to-action buttons.
Integrating Testimonials
Enhance user trust by adding a testimonials section using Magic UI's sleek component designs and animations.
Troubleshooting Component Issues
Resolve common installation and import issues efficiently with the troubleshooting guidelines provided in the skill.
How to install Magic UI
View source1. Install with the skills CLI
npx skills add magicuidesign/magicui/magic-ui --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by magicuidesignMagic UI
Use this skill when the task involves Magic UI components, animated UI sections, or converting static sections into interactive UI using the Magic UI registry.
When To Apply
Apply this skill when users ask to:
- Add a Magic UI component (for example: marquee, globe, blur-fade, shiny-button)
- Build a section with Magic UI effects (hero, testimonials, CTA, feature grid)
- Replace custom animation code with Magic UI components
- Troubleshoot installation/import issues for
@magicui/*
Core Workflow
- Define the UI outcome first.
- Identify section type, tone, motion intensity, and responsive behavior.
- Keep motion intentional; avoid stacking many high-motion effects in one viewport.
- Confirm project prerequisites.
- Project should be React/Next.js with Tailwind CSS.
- shadcn must be initialized before adding registry components:
npx shadcn@latest init
- Install the selected component(s).
npx shadcn@latest add @magicui/<component-slug>
Example:
npx shadcn@latest add @magicui/magic-card
- Integrate into the target section.
- Import from the generated path (typically
@/components/ui/<component-slug>). - Keep component APIs intact; prefer prop/className customization over rewriting internals.
- If docs mention extra dependencies or CSS keyframes, add them during integration.
- Validate quality before finishing.
- Accessibility: semantic HTML, keyboard access, meaningful labels/text.
- Responsiveness: check mobile layout and overflow behavior.
- Performance: avoid unnecessary client-only wrappers and heavy animation stacking.
- Maintainability: keep new code modular and consistent with existing project conventions.
References To Load On Demand
- For component choice, install shape, and dependency expectations:
- Read
references/components.md
- Read
- For section-level implementation patterns:
- Read
references/recipes.md
- Read
Quick Component Selection Heuristics
- Social proof/logo rails:
marquee,avatar-circles - Hero visual impact:
globe,warp-background,animated-grid-pattern - Text animation:
blur-fade,text-animate,word-rotate,sparkles-text - CTA emphasis:
shiny-button,shimmer-button,rainbow-button - Ambient backgrounds:
grid-pattern,dot-pattern,particles,flickering-grid
Start with 1 core component + 1 supporting effect, then expand only if needed.
Troubleshooting
components.jsonor registry init error:- Run
npx shadcn@latest initin the project root.
- Run
- Import path mismatch (
@/alias not configured):- Use the project's alias style or relative imports.
- Visual mismatch after install:
- Check for required global CSS/keyframes listed in the component docs.
- Missing package errors:
- Install dependencies listed in the component's manual installation steps.
Reference Links
- Magic UI docs:
https://magicui.design/docs - Component docs:
https://magicui.design/docs/components - Installation:
https://magicui.design/docs/installation - MCP setup (optional, for AI IDE workflows):
https://magicui.design/docs/mcp
Frequently asked questions about Magic UI
Similar skills
Playwright Component Testing
Test React and Vue components in isolation with Playwright.
Fluent UI Blazor
Integrate Fluent UI components in Blazor applications effortlessly.
Build MCP App
Create interactive UI widgets for MCP servers.
Web Design Reviewer
Identify and fix design issues in websites efficiently.
Markstream Install
Seamlessly integrate Markstream for Markdown rendering.
GSAP & Framer Scroll Animation
Create advanced scroll animations effortlessly.
