Public

From shadcnspace/shadcnspace · View interactive version

Public is an AI agent skill from the GitHub repository 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 prod

How to use this skill

Skill file

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=your@email.com 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

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 Manager | Command Syntax |

|---|---|

| npm | npx shadcn@latest add @shadcn-space/<name> |

| pnpm | pnpm dlx shadcn@latest add @shadcn-space/<name> |

| bun | bunx --bun shadcn@latest add @shadcn-space/<name> |

| yarn | yarn 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"

1. Verify the exact block name at https://shadcnspace.com/blocks.

2. Confirm your components.json has:

```json

"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"

1. Add your credentials to your project's .env or .env.local:

```env

EMAIL=your@email.com

LICENSE_KEY=your-license-key

```

2. Ensure your components.json specifies params for @shadcn-space:

```json

"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)

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

```bash

npx shadcn@latest add @shadcn-space/hero-01 --overwrite

```

5. Problem: Broken Styling or Missing Colors

6. Problem: `components.json` Not Found


Documentation & Help Directory

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

| Guide / Resource | URL | What You'll Find |

|---|---|---|

| Getting Started Introduction | https://shadcnspace.com/docs/getting-started/introduction | Overview, philosophy, and repository introduction |

| CLI Installation Guide | https://shadcnspace.com/docs/getting-started/how-to-use-shadcn-cli | Complete CLI walkthrough, v3 vs v2, video guide, and troubleshooting |

| Radix UI to Base UI Migration | https://shadcnspace.com/docs/getting-started/migrate-to-baseui | Step-by-step guide to migrate code from asChild to render and Positioner |

| MCP Server Setup Guide | https://shadcnspace.com/docs/getting-started/mcp-server-docs | Configuring Cursor, Windsurf, Claude Code, and other AI IDEs |

| Component Usage Guide | https://shadcnspace.com/docs/getting-started/component | UI primitives, buttons, dropdowns, dialogs, inputs |

| Blocks Guide | https://shadcnspace.com/docs/getting-started/blocks | Marketing, hero, pricing, testimonials, bento grids, and dashboards |

| AI Prompting Guide | https://shadcnspace.com/docs/getting-started/copy-prompt | Prompts for single-pass landing pages and dashboard composition |

| Interactive CLI Builder | https://shadcnspace.com/cli | Custom visual command builder for styles, themes, and icons |

| Open in v0 Guide | https://shadcnspace.com/docs/getting-started/open-v0 | Opening and customizing ShadcnSpace blocks inside v0 |

| Interactive Blocks Gallery | https://shadcnspace.com/blocks | Visual live preview and copy code for all 100+ blocks |

| Components Catalog | https://shadcnspace.com/components | Micro-interactions, animated text, dock, marquee |

| Full Page Templates | https://shadcnspace.com/templates | Complete production-ready page templates |

| GitHub Issues & Community | https://github.com/shadcnspace/shadcnspace/issues | Bug 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 your@email.com:your-license-key"
      }
    }
  }
}

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

Windsurf Setup

In Windsurf Settings → MCP Servers, add:

Claude Code Setup

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

Lovable & Bolt Setup

Available MCP Tools

| Tool | Purpose |

|---|---|

| searchBlocks | Search blocks by keywords (e.g. hero, pricing, stats, sidebar) |

| listBlocks | List all available blocks in ShadcnSpace |

| getBlockInstall | Returns the exact CLI command to install a block (Base UI or Radix UI) |

| searchPages | Search full-page templates |

| getPageInstall | Returns the install command for a complete page |

| listInstalledBlocks | Inspect blocks already installed in the current project |

| get_audit_checklist | Returns 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

2. Dashboard UI & Admin Systems

3. Application Interfaces

4. Authentication Flows

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]).

  1. Dual-Theme Parity:

All blocks must look polished in both Light and Dark mode without contrast issues.

  1. Primitives Compatibility:

Supports both Base UI (render prop) and Radix UI (asChild prop).

  1. Motion Restraint:

Use purposeful spring micro-interactions (motion/react). Always respect prefers-reduced-motion.

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.