Setup

One-time project setup for installing Polaris 2.0 blocks with the shadcn CLI—no Tailwind CSS required.

Configure components.json

Save this in your Shopify app root, or add the highlighted registries block to an existing file. Empty Tailwind fields let shadcn install blocks without Tailwind CSS.

Registry configuration

Add your registry token

For paid blocks, issue a token in your account and save it in .env.local (keep it out of Git). Free blocks install without a token.

.env.local

Enable the Polaris 2.0 runtime

Point shopifyApp and AppProvider at the Polaris 2.0 bundle in your Shopify app template.

Polaris 2.0 runtime URL