Skip to content
GitHub

Manual Installation

Install Shark UI without the shadcn CLI by copying config and files manually.

Manual setup gives you full control over every file. Use this when the CLI does not fit your setup or you prefer not to use it.

Add Tailwind CSS

Components are styled with Tailwind CSS. Install it first:

Follow the Tailwind CSS installation instructions.

Add dependencies

Install the packages Shark UI components use:

Configure path aliases

Configure the path aliases in your tsconfig.json file.

tsconfig.json

The @ alias is a convention; you can use a different alias if needed.

Configure styles

Create a file styles/globals.css with the following. This defines the design tokens (colors, radius, animations) that components depend on. See Styling and Colors for how the system fits together and a full variable reference.

styles/globals.css

Add a cn helper

TypeScriptlib/utils.ts

Create a components.json file

Create a components.json file in the project root so the shadcn CLI (if you use it later) knows where to write components.

components.json

Next steps

You can now add components manually from the component docs or use the CLI with pnpm dlx shadcn@latest add https://shark.vini.one/r/button.json to fetch and install them.