Installation
Get started with Zarasana UI in a few simple steps. Our library is built on top of shadcn/ui, making it easy to integrate into your existing projects.
Prerequisites
Before you begin, ensure you have a React project set up with Tailwind CSS. If you're using Next.js, you're likely already good to go.
Step 1: Install Utilities
Zarasana UI relies on motion for animations and standard utility libraries for class merging. Install them using your preferred package manager:
npm install motion clsx tailwind-mergeStep 2: Setup shadcn/ui
If you haven't initialized shadcn/ui in your project yet, run the init command. This sets up the base accessible primitives we use.
npx shadcn@latest initStep 3: Configure Shadcn CLI (Recommended)
With Shadcn CLI 3.0+, you can configure namespaced registries to make installation easier. Update your components.json to include the Zarasana registry alias.
{
"registries": {
"@zarasana": "https://ui.zarasana.com/r/{name}.json"
}
}Step 4: Add Components
Once configured, you can install any Zarasana UI component using the @zarasana alias.
CLI Installation
npx shadcn@latest add @zarasana/button-glassmorphicManual Installation (Legacy)
If you prefer not to use namespaces, you can still install components using the full URL:
npx shadcn@latest add https://ui.zarasana.com/r/button-glassmorphic.jsonThis will:
- Download the component code to your configured directory (e.g.
components/zarasana/...) - Install any required dependencies (like
motion,clsx, etc.) automatically - Update your project configuration
Available Styles
We categorize our components into three distinct design systems:
- Glassmorphic: Frosted glass effects, blurs, and translucency.
- Neo-Brutalism: Bold borders, hard shadows, and high contrast.
- Neo-SaaS: Clean, professional, and subtle gradients.
Check the documentation for each component to find the specific installation URL.