Communitygithub.com

shadcnspace/shadcnspace

Production UI component library with MCP server integration, 100+ blocks, templates, and dashboard layouts. Use this skill when building modern React and Next.js UI, designing landing pages, selecting dashboard layouts, creating marketing sections, or replacing generic shadcn/ui components with production-grade ShadcnSpace blocks.

What is shadcnspace?

shadcnspace is a Claude Code agent skill that production UI component library with MCP server integration, 100+ blocks, templates, and dashboard layouts. Use this skill when building modern React and Next.js UI, designing landing pages, selecting dashboard layouts, creating marketing sections, or replacing generic shadcn/ui components with production-grade ShadcnSpace blocks.

Works with✓Claude Code~Codex CLI✓Cursor✓Windsurf
npx skills add https://github.com/shadcnspace/shadcnspace/tree/HEAD/public

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

ShadcnSpace — AI Agent Skill & Developer Guide

ShadcnSpace is the premier open-source distribution and registry of 100+ production-ready Shadcn UI blocks, full-page templates, dashboard systems, marketing sections, and animated micro-interactions built with React, Next.js App Router, Tailwind CSS v4, Base UI, and Radix UI.


Quick Start — How to Use ShadcnSpace

Follow these 4 simple steps to start using ShadcnSpace in any Next.js or React project:

Step 1: Initialize Shadcn in Your Project

If your project doesn't have Shadcn UI configured yet:

# Initialize shadcn UI
npx shadcn@latest init

Tip: For a pre-configured setup with Base UI and Tailwind CSS v4, use the visual project creator at https://ui.shadcn.com/create.


Step 2: Configure the Registry in components.json

Add the official @shadcn-space registry to your project's components.json file:

For Free Blocks & Components:

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "base-nova",
  "registries": {
    "@shadcn-space": "https://shadcnspace.com/r/{name}.json"
  }
}

For Pro Users (With License Key):

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "base-nova",
  "registries": {
    "@shadcn-space": {
      "url": "https://shadcnspace.com/r/{name}.json",
      "params": {
        "email": "${EMAIL}",
        "license_key": "${LICENSE_KEY}"
      }
    }
  }
}

Add [email protected] and LICENSE_KEY=your-key into your .env or .env.local file.


Step 3: Install Blocks & Components

Run the installation command using your package manager for either Base UI or Radix UI:

# Base UI (Recommended default)
npx shadcn@latest add @shadcn-space/hero-01

# Radix UI
npx shadcn@latest add @shadcn-space/radix/hero-01

Step 4: Import and Use in Your Code

Components are copied directly into your src/components/shadcn-space/ folder with complete source code ownership:

import Hero01 from "@/components/shadcn-space/hero-01";

export default function LandingPage() {
  return (
    <main>
      <Hero01 />
    </main>
  );
}

Base UI vs Radix UI — Complete Commands Guide

ShadcnSpace provides dual-variant support: every block, component, and full page is maintained in both Base UI and Radix UI primitives.

Understanding the Difference

  • Base UI (Recommended): The modern foundation for shadcn UI. Uses a unified @base-ui/react package, explicit render props instead of Slot, and a separate Positioner component.
  • Radix UI: The classic headless foundation. Uses individual @radix-ui/react-* packages and the asChild prop with Slot.

1. Base UI Commands

Via Registry Namespace (Recommended — Shadcn CLI v3)

# Blocks & Components
npx shadcn@latest add @shadcn-space/<item-name>

# Examples:
npx shadcn@latest add @shadcn-space/hero-01
npx shadcn@latest add @shadcn-space/bento-grid-01
npx shadcn@latest add @shadcn-space/button-06
npx shadcn@latest add @shadcn-space/pricing-01
npx shadcn@latest add @shadcn-space/sidebar-01

# Full Pages:
npx shadcn@latest add @shadcn-space/pages/<page-name>
# Example:
npx shadcn@latest add @shadcn-space/pages/landing-page-01

Via Direct URL (Shadcn CLI v2 / Fallback)

# Blocks & Components
npx shadcn@latest add https://shadcnspace.com/r/<item-name>.json

# Pages
npx shadcn@latest add https://shadcnspace.com/r/pages/<page-name>.json

2. Radix UI Commands

Via Registry Namespace (Recommended — Shadcn CLI v3)

# Blocks & Components
npx shadcn@latest add @shadcn-space/radix/<item-name>

# Examples:
npx shadcn@latest add @shadcn-space/radix/hero-01
npx shadcn@latest add @shadcn-space/radix/bento-grid-01
npx shadcn@latest add @shadcn-space/radix/button-06
npx shadcn@latest add @shadcn-space/radix/pricing-01
npx shadcn@latest add @shadcn-space/radix/sidebar-01

# Full Pages:
npx shadcn@latest add @shadcn-space/pages/radix/<page-name>
# Example:
npx shadcn@latest add @shadcn-space/pages/radix/landing-page-01

Via Direct URL (Shadcn CLI v2 / Fallback)

# Blocks & Components
npx shadcn@latest add https://shadcnspace.com/r/radix/<item-name>.json

# Pages
npx shadcn@latest add https://shadcnspace.com/r/pages/radix/<page-name>.json

3. Package Manager Syntax

You can run any ShadcnSpace install command across all major package runners:

Package ManagerCommand Syntax
npmnpx shadcn@latest add @shadcn-space/<name>
pnpmpnpm dlx shadcn@latest add @shadcn-space/<name>
bunbunx --bun shadcn@latest add @shadcn-space/<name>
yarnyarn dlx shadcn@latest add @shadcn-space/<name>

4. Advanced CLI Commands

# Install multiple blocks in one command:
npx shadcn@latest add @shadcn-space/navbar-01 @shadcn-space/hero-01 @shadcn-space/footer-01

# Force overwrite existing files without confirmation prompts:
npx shadcn@latest add @shadcn-space/hero-01 --overwrite

Troubleshooting & Problem Solving

If you encounter issues when installing or using ShadcnSpace, use these fixes:

1. Problem: "Block / Component Not Found"

  • Cause: The component slug is mistyped, or @shadcn-space registry is missing in components.json.
  • Solution:
    1. Verify the exact block name at https://shadcnspace.com/blocks.
    2. Confirm your components.json has:
      "registries": {
        "@shadcn-space": "https://shadcnspace.com/r/{name}.json"
      }
      
    3. If installing a Radix UI component, make sure you prefix with radix/: npx shadcn@latest add @shadcn-space/radix/<name>.
    4. If installing a page, ensure the prefix is pages/: npx shadcn@latest add @shadcn-space/pages/<name>.

2. Problem: "Access Denied / 401 Unauthorized / Missing Credentials"

  • Cause: Trying to install a Pro block without authentication.
  • Solution:
    1. Add your credentials to your project's .env or .env.local:
      [email protected]
      LICENSE_KEY=your-license-key
      
    2. Ensure your components.json specifies params for @shadcn-space:
      "registries": {
        "@shadcn-space": {
          "url": "https://shadcnspace.com/r/{name}.json",
          "params": {
            "email": "${EMAIL}",
            "license_key": "${LICENSE_KEY}"
          }
        }
      }
      
    3. Re-run your terminal or command prompt so the environment variables take effect.

3. Problem: Primitives / TypeScript Type Mismatch (Base UI vs Radix UI)

  • Cause: Using a Radix UI block in a project that only has Base UI installed, or vice-versa.
  • Symptoms: Module not found: Can't resolve '@radix-ui/react-...' or Cannot find module '@base-ui/react'.
  • Solution:
    • If your project uses Base UI: install the standard Base UI variant (@shadcn-space/<name>). Ensure @base-ui/react is installed (pnpm add @base-ui/react).
    • If your project uses Radix UI: install the Radix variant (@shadcn-space/radix/<name>). Ensure required @radix-ui/react-* packages are present.
    • To migrate an existing project from Radix to Base UI, follow the Migration Guide.

4. Problem: "File already exists" prompt or conflict

  • Cause: The component or an underlying dependency file was already installed.
  • Solution: Pass the --overwrite flag:
    npx shadcn@latest add @shadcn-space/hero-01 --overwrite
    

5. Problem: Broken Styling or Missing Colors

  • Cause: Missing semantic color tokens (--background, --foreground, --primary, --border, etc.) in globals.css.
  • Solution: ShadcnSpace utilizes standard CSS variable tokens. Make sure your globals.css or Tailwind CSS v4 @theme includes semantic design tokens. Do not hardcode arbitrary hex codes.

6. Problem: components.json Not Found

  • Cause: The project hasn't been initialized with shadcn CLI yet.
  • Solution: Run npx shadcn@latest init first in the root of your project.

Documentation & Help Directory

When you need detailed documentation, guides, or assistance, visit these official documentation pages:

Guide / ResourceURLWhat You'll Find
Getting Started Introductionhttps://shadcnspace.com/docs/getting-started/introductionOverview, philosophy, and repository introduction
CLI Installation Guidehttps://shadcnspace.com/docs/getting-started/how-to-use-shadcn-cliComplete CLI walkthrough, v3 vs v2, video guide, and troubleshooting
Radix UI to Base UI Migrationhttps://shadcnspace.com/docs/getting-started/migrate-to-baseuiStep-by-step guide to migrate code from asChild to render and Positioner
MCP Server Setup Guidehttps://shadcnspace.com/docs/getting-started/mcp-server-docsConfiguring Cursor, Windsurf, Claude Code, and other AI IDEs
Component Usage Guidehttps://shadcnspace.com/docs/getting-started/componentUI primitives, buttons, dropdowns, dialogs, inputs
Blocks Guidehttps://shadcnspace.com/docs/getting-started/blocksMarketing, hero, pricing, testimonials, bento grids, and dashboards
AI Prompting Guidehttps://shadcnspace.com/docs/getting-started/copy-promptPrompts for single-pass landing pages and dashboard composition
Interactive CLI Builderhttps://shadcnspace.com/cliCustom visual command builder for styles, themes, and icons
Open in v0 Guidehttps://shadcnspace.com/docs/getting-started/open-v0Opening and customizing ShadcnSpace blocks inside v0
Interactive Blocks Galleryhttps://shadcnspace.com/blocksVisual live preview and copy code for all 100+ blocks
Components Cataloghttps://shadcnspace.com/componentsMicro-interactions, animated text, dock, marquee
Full Page Templateshttps://shadcnspace.com/templatesComplete production-ready page templates
GitHub Issues & Communityhttps://github.com/shadcnspace/shadcnspace/issuesBug reports, feature requests, and community discussions

ShadcnSpace MCP Server Integration

Connect the official ShadcnSpace MCP server to your AI IDE (Cursor, Windsurf, Claude Code, Lovable, Bolt, or v0) to inspect, search, and install UI blocks directly inside your chat session.

Cursor Setup (~/.cursor/mcp.json)

{
  "mcpServers": {
    "shadcnspace": {
      "url": "https://mcp.shadcnspace.com/mcp",
      "headers": {
        "Authorization": "Bearer [email protected]:your-license-key"
      }
    }
  }
}

(Free tier users can omit the headers field; free blocks install without authentication).

Windsurf Setup

In Windsurf Settings → MCP Servers, add:

  • Server URL: https://mcp.shadcnspace.com/mcp
  • Authorization: Bearer [email protected]:your-license-key

Claude Code Setup

claude mcp add shadcnspace https://mcp.shadcnspace.com/mcp

Lovable & Bolt Setup

  • Server URL: https://mcp.shadcnspace.com/mcp
  • Transport: HTTP
  • Auth: Bearer token [email protected]:your-license-key

Available MCP Tools

ToolPurpose
searchBlocksSearch blocks by keywords (e.g. hero, pricing, stats, sidebar)
listBlocksList all available blocks in ShadcnSpace
getBlockInstallReturns the exact CLI command to install a block (Base UI or Radix UI)
searchPagesSearch full-page templates
getPageInstallReturns the install command for a complete page
listInstalledBlocksInspect blocks already installed in the current project
get_audit_checklistReturns accessibility, theming, and responsive design checklist

Agent Usage Patterns & Prompts

When prompting an AI agent in Cursor, Claude Code, or Windsurf, use these structured patterns:

Single Block Generation

Add a high-converting hero section for my SaaS using ShadcnSpace Hero 01 (Base UI).
Create a pricing section with monthly and annual toggle using ShadcnSpace Radix UI Pricing 01.
Add an admin sidebar and stats cards using ShadcnSpace Dashboard blocks.

Full Landing Page Composition (One-Pass)

Build a complete SaaS landing page using ShadcnSpace blocks:
- Navbar: Sticky glassmorphic navbar from ShadcnSpace
- Hero: Hero 01 with interactive badge and video preview
- Features: Bento Grid 01 with micro-animations
- Social Proof: Testimonial Marquee from ShadcnSpace
- Pricing: Pricing 01 with 3 tiers and billing toggle
- CTA: CTA 01 with email capture form
- Footer: Multi-column footer with site links and newsletter signup

Block & Component Taxonomy

Explore the full interactive gallery at https://shadcnspace.com/blocks:

1. Marketing & SaaS Landing Pages

  • Hero Sections: Conversational, media-split, video-embed, and badge-accented heroes.
  • Bento Grids: Asymmetric feature grids with interactive cards, badges, and counters.
  • Feature Sections: Tabbed showcases, sticky scroll-stacking cards, and icon lists.
  • Pricing Sections: Tier comparisons, annual discount toggles, and feature checklists.
  • Testimonials: Infinite review marquees, avatar groups, and quotes.
  • Navbar & Headers: Sticky glassmorphism navbars, desktop drop-menus, mobile sheets.
  • Footers: Multi-column sitemaps, newsletter forms, social badges.
  • CTAs: Gradient cards, newsletter signups, quick trial buttons.
  • Logo Clouds: Infinite partner tickers and social proof badges.
  • FAQs: Accessible accordion FAQs with category filtering.

2. Dashboard UI & Admin Systems

  • Dashboard Shells: Responsive master-detail shells with sidebars and sticky headers.
  • Sidebars: Collapsible multi-tier navigation with team switchers and user profiles.
  • Statistics & Metric Cards: KPI cards with delta trends and sparklines.
  • Charts: Recharts and ApexCharts line, area, bar, and donut charts.
  • Data Tables: TanStack Table with fuzzy search, column sorting, pagination, and bulk actions.
  • Forms: React Hook Form + Zod with clean validation states.

3. Application Interfaces

  • Chat & AI Interfaces: Message scrollers, streaming text bubbles, input prompt bars with attachments.
  • Kanban Boards: Drag-and-drop task workflows with status tags.
  • Notes & Documents: Document tree sidebar with distraction-free editor layouts.
  • Calendars & Scheduling: Date range pickers and timeline views.

4. Authentication Flows

  • Login: OAuth buttons, email/password validation, remembered sessions.
  • Register: Step-by-step signup, password strength meters.
  • Forgot Password: Password recovery with OTP input blocks.

5. Animated Interactive Components


Design System & Anti-Slop Rules

  1. Semantic Design Tokens: Use CSS variables and semantic Tailwind classes: bg-background, bg-card, text-foreground, text-muted-foreground, border-border, bg-primary text-primary-foreground. Never use arbitrary hardcoded hex codes (bg-[#0a0a0a]).
  2. Dual-Theme Parity: All blocks must look polished in both Light and Dark mode without contrast issues.
  3. Primitives Compatibility: Supports both Base UI (render prop) and Radix UI (asChild prop).
  4. Motion Restraint: Use purposeful spring micro-interactions (motion/react). Always respect prefers-reduced-motion.
  5. Interactive Link Polish: Every <a> element must feature an explicit hover state (hover:underline, hover:text-primary). Never nest <button> inside <a> or vice-versa.

Related Skills