Installation

How to install and use Vritti UI components

Installation

Vritti UI components can be installed using the shadcn CLI or copied manually.

Prerequisites

Make sure you have the following installed:

  • Node.js 18+
  • Next.js 14+ (Next.js 16 recommended)
  • Tailwind CSS v4
  • React 19+

Install any component with the shadcn CLI by passing the full registry URL:

pnpm dlx shadcn@latest add "https://vritti.thesatyajit.com/r/[component-name]"

For example, to add the blur-fade component:

pnpm dlx shadcn@latest add "https://vritti.thesatyajit.com/r/blur-fade"

Manual Installation

You can also copy components manually:

  1. Browse to the component you want on the components page
  2. Copy the component code
  3. Create a new file in your project (e.g., components/ui/blur-fade.tsx)
  4. Paste the code
  5. Install any required dependencies listed on the component page

Dependencies

Most components require the following base dependencies:

pnpm add motion tailwind-merge clsx class-variance-authority

Additional dependencies vary by component and are listed on each component's page.

Configuration

Tailwind CSS

Make sure your tailwind.config.ts includes:

import type { Config } from 'tailwindcss';
 
const config: Config = {
  content: [
    './src/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
};
 
export default config;

CSS Variables

Add the Vritti UI CSS variables to your globals.css:

@import "tailwindcss";
 
@theme {
  --color-background: oklch(1 0 0);
  --color-foreground: oklch(0.145 0 0);
}
 
@theme dark {
  --color-background: oklch(0.145 0 0);
  --color-foreground: oklch(0.985 0 0);
}

Next Steps