Install shadcncraft Blocks for JSON Render

Install @shadcncraft/json-render-pro from the shadcncraft npm registry with your license key, for npm, pnpm and Yarn.
PreviousNext

@shadcncraft/json-render-pro installs from the shadcncraft npm registry with your Pro React or Pro Figma + React license key. You need React 19.

1. Pick your style

Each style is its own package, so you only download the one you use. The name is <base>-<style>:

  • Base: radix or base (Base UI), matching your shadcn project.
  • Style: vega, nova, maia, lyra, mira, luma, sera or rhea.

For example, base-nova. Use one style for your whole app.

2. Add the registry

Add these two lines to the .npmrc next to your package.json, and commit it. The key itself stays in your environment:

@shadcncraft:registry=https://shadcncraft.com/api/npm/
//shadcncraft.com/api/npm/:_authToken=${SHADCNCRAFT_LICENSE_KEY}

pnpm 10 and later don't read environment variables in a project's .npmrc credentials. Keep the first line in the project, and put the second in your user ~/.npmrc (on CI, append it there before installing).

Yarn 2 and later use .yarnrc.yml instead:

npmScopes:
  shadcncraft:
    npmRegistryServer: "https://shadcncraft.com/api/npm/"
    npmAuthToken: "${SHADCNCRAFT_LICENSE_KEY}"

Your free @shadcncraft/json-render package keeps installing as before: the registry passes other @shadcncraft packages through from public npm.

3. Set your license key

Set SHADCNCRAFT_LICENSE_KEY to your license key, the one in your purchase email and at shadcncraft.com/licenses. Set it locally, as a secret in CI and in your host's build settings, such as Vercel or Netlify.

The npm registry doesn't use activations or instance names, so installs on CI and build servers don't use up a seat.

Check the setup without installing anything:

npm whoami --registry https://shadcncraft.com/api/npm/

4. Install

Install the package under the name @shadcncraft/json-render-pro, so your imports stay the same whichever style you pick, along with JSON Render, React and zod:

$ pnpm add @shadcncraft/json-render-pro@npm:@shadcncraft/json-render-pro-base-nova \
$   @json-render/core@0.21.3 @json-render/react@0.21.3 react@19 react-dom@19 zod@4

Then print the install command for the blocks' own dependencies, such as Base UI or Radix, lucide-react and recharts, and run it:

$ pnpm dlx shadcncraft-json-render-pro deps base-nova

Add --pnpm or --yarn for that package manager's form. To install fewer dependencies, pass only the blocks you use, for example deps base-nova Hero5 Pricing1, and import those blocks one at a time (see the package README).

5. Add the styles

Import your style's stylesheet once, at the root of your app:

import "@shadcncraft/json-render-pro/base-nova/styles.css";

Its classes are prefixed, so it won't clash with your own Tailwind setup. The blocks use your shadcn theme variables. Without a shadcn theme, also import:

  • @shadcncraft/json-render-pro/theme.css: the theme the blocks are previewed in, with the Geist font (npm install @fontsource-variable/geist and import it).
  • @shadcncraft/json-render-pro/preflight.css, first, if your app doesn't use Tailwind at all.

Next, render your first page.

SBIOTJ

Join 16,000+ builders shipping with shadcncraft

Design and assemble full pages faster with production-ready blocks built for real products.
  • Production-ready blocks and components
  • Clean React and Tailwind parity
  • Built for SaaS, marketing, and ecommerce teams
Get the full library
Join Now CTA

Real support from the team behind shadcncraft

Get help within 24 hours from the people who build and maintain the system.
Email
Prefer a direct line? Send us a message and we'll get back to you as soon as possible.
Discord
Get quick support, share feedback, or connect with other builders.
Feedback
Got something to say about anything shadcncraft? We'd love to hear it.