
Magic Ui
- 447 installs
- 21.5k repo stars
- Updated July 2, 2026
- magicuidesign/magicui
Magic UI is an agent skill that helps developers add, customize, and troubleshoot Magic UI animated components in React and Next.js projects via the shadcn @magicui registry.
About
Magic UI is an agent skill for selecting, installing, and integrating Magic UI components into React and Next.js projects that already use Tailwind CSS and shadcn. It starts by defining the UI outcome: section type, tone, motion intensity, and responsive behavior, then confirms shadcn is initialized before running npx shadcn@latest add @magicui/<component-slug>. Components land under the project alias path, typically @/components/ui/<component-slug>, and the skill prefers prop and className customization over rewriting internals. Reference docs load on demand for component catalogs and section recipes, while heuristics map use cases to marquee and avatar-circles for social proof, globe and warp-background for hero impact, blur-fade and text-animate for typography motion, and shiny-button variants for CTAs. Quality checks cover semantic HTML, keyboard access, mobile overflow, performance from animation stacking, and maintainability against existing conventions. Troubleshooting paths address components.json init errors, @/ alias mismatches, missing global CSS keyframes, and undeclared package dependencies listed in manual install steps.
- Installs @magicui/* components via npx shadcn@latest add registry entries
- Maps section goals to marquee, globe, blur-fade, shiny-button, and pattern components
- Requires shadcn init and Tailwind CSS before adding registry components
- Validates accessibility, responsiveness, performance, and maintainability after integration
- Troubleshoots alias paths, missing keyframes, and dependency gaps from component docs
Magic Ui by the numbers
- 447 all-time installs (skills.sh)
- Ranked #559 of 1,895 Design & UI/UX skills by installs in the Skillselion catalog
- Data as of Jul 11, 2026 (Skillselion catalog sync)
magic-ui capabilities & compatibility
- Capabilities
- define section type, tone, motion intensity, and · install @magicui components through npx shadcn@l · import from @/components/ui paths with prop and · load references/components.md and references/rec · diagnose components.json init, alias, keyframe,
What magic-ui says it does
Use this skill when users want to add, customize, or troubleshoot Magic UI components in React/Next.js projects.
npx shadcn@latest add @magicui/<component-slug>
Start with 1 core component + 1 supporting effect, then expand only if needed.
npx skills add https://github.com/magicuidesign/magicui --skill magic-uiAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 447 |
|---|---|
| repo stars | ★ 21.5k |
| Last updated | July 2, 2026 |
| Repository | magicuidesign/magicui ↗ |
How do you add polished animated UI sections without rewriting custom motion code or breaking shadcn registry installs?
Add, customize, and troubleshoot Magic UI animated React components installed through the shadcn @magicui registry in Next.js and Tailwind projects.
Who is it for?
Developers shipping React or Next.js sites with Tailwind and shadcn who want animated heroes, CTAs, marquees, and text effects from the Magic UI registry.
Skip if: Skip for non-React stacks, projects without Tailwind and shadcn initialized, or tasks that only need plain unstyled HTML.
When should I use this skill?
Use when the user asks to add a Magic UI component, build an animated section, replace custom animation code, or debug @magicui install and import errors.
What you get
Installed @magicui components integrated into the target section with intentional motion, accessible markup, and fixes for registry, alias, and dependency issues.
- Installed @magicui component under the project components path
- Integrated section with validated accessibility and responsive behavior
By the numbers
- Component heuristics cover social proof, hero, text animation, CTA, and ambient background families
- Five-step workflow from outcome definition through install, integration, and quality validation
Files
Magic 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
1. 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.
2. Confirm project prerequisites.
- Project should be React/Next.js with Tailwind CSS.
- shadcn must be initialized before adding registry components:
npx shadcn@latest init3. Install the selected component(s).
npx shadcn@latest add @magicui/<component-slug>Example:
npx shadcn@latest add @magicui/magic-card4. 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.
5. 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 - For section-level implementation patterns:
- Read
references/recipes.md
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. - 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
Magic UI Component Reference
Purpose
Use this document to choose the right Magic UI component and avoid integration mistakes before implementation.
Install Contract
- Initialize shadcn once per project:
npx shadcn@latest init- Add components via registry:
npx shadcn@latest add @magicui/<component-slug>- Default import path is usually:
import { ComponentName } from "@/components/ui/<component-slug>"If the project does not use @/ aliases, adapt import paths to local conventions.
Families
Layout And Social Proof
marqueeavatar-circlesbento-grid
Use for logo rails, testimonial movement, and feature grids.
Hero And Visual Anchors
globewarp-backgroundanimated-grid-patternretro-grid
Use one primary visual anchor per hero to keep hierarchy clear.
Text Motion
blur-fadetext-animateword-rotatesparkles-texttyping-animation
Use when product messaging needs motion emphasis.
Buttons And CTA Emphasis
shiny-buttonshimmer-buttonrainbow-buttonripple-button
Keep CTA style consistent within one page section.
Ambient Effects
particlesflickering-griddot-patterngrid-patternlight-rays
Use these as supporting layers, not primary content.
Integration Notes
- Some components require additional dependencies (for example
cobe,motionforglobepatterns). - Some components require global CSS keyframes (for example
marqueevariants). - Prefer prop-level customization before editing generated source.
- If customization grows large, wrap the component in a local section component rather than editing registry output directly.
Quality Checks
- Accessibility: interactive controls remain keyboard-accessible.
- Readability: animated backgrounds do not reduce text contrast.
- Responsiveness: no horizontal overflow on small screens.
- Performance: avoid stacking multiple expensive animated backgrounds in one viewport.
Magic UI Recipes
Purpose
Use these recipes when the user asks for concrete UI sections rather than a single component.
Recipe 1: Hero With Visual Depth
Goal
Create a hero section with strong visual identity and clear CTA hierarchy.
Suggested Stack
- Primary visual:
warp-backgroundoranimated-grid-pattern - Heading entrance:
blur-fade - CTA:
shiny-button
Steps
1. Install components:
npx shadcn@latest add @magicui/warp-background @magicui/blur-fade @magicui/shiny-button2. Wrap hero content in the background component. 3. Animate heading and subheading with subtle stagger. 4. Keep one primary CTA and one secondary action.
Guardrails
- Keep animations under control: avoid combining more than two high-motion effects in hero.
- Preserve text contrast over animated backgrounds.
Recipe 2: Testimonial And Logo Trust Rail
Goal
Show social proof without static blocks.
Suggested Stack
marqueeavatar-circles(optional for compact profile clusters)
Steps
1. Install:
npx shadcn@latest add @magicui/marquee @magicui/avatar-circles2. Use horizontal marquee for desktop and reduced density on mobile. 3. If using avatar clusters, add concise labels and accessible alt text.
Guardrails
- Ensure auto-scrolling content can pause on hover/focus for usability.
- Do not overload with long testimonial paragraphs in moving rails.
Recipe 3: Feature Grid With Motion Highlights
Goal
Present product capabilities in an interactive but readable grid.
Suggested Stack
bento-grid- One text motion component per card group (
text-animateorword-rotate)
Steps
1. Install:
npx shadcn@latest add @magicui/bento-grid @magicui/text-animate2. Keep card copy short and scannable. 3. Use motion for emphasis on only 1-2 cards.
Guardrails
- Maintain consistent card heights where possible.
- Avoid running simultaneous animations in every card.
Final Validation Checklist
- Layout works at mobile and desktop breakpoints.
- Interactive elements are reachable with keyboard navigation.
- Motion supports content hierarchy instead of competing with it.
- Added components compile with the current path alias setup.
Related skills
How it compares
Pick magic-ui for prebuilt animated marketing sections; use raw Framer Motion when you need fully custom physics not covered by the registry.
FAQ
What must be set up before adding Magic UI components?
The project should be React or Next.js with Tailwind CSS, and shadcn must be initialized via npx shadcn@latest init before running npx shadcn@latest add @magicui/<component-slug>.
How should agents choose Magic UI components?
Pick one core component plus one supporting effect: marquee or avatar-circles for social proof, globe or warp-background for heroes, blur-fade or text-animate for typography, shiny-button variants for CTAs, and grid or particle patterns for ambient backgrounds.
What quality checks does the skill require before finishing?
Verify semantic HTML and keyboard access, mobile layout and overflow, avoid stacking heavy client-only animations, and keep imports consistent with the project alias and required global CSS keyframes.