Skip to content

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 to wire the project yourself.

Add Tailwind CSS

Components are styled using Tailwind CSS. Install Tailwind CSS in your project first:

Follow the Tailwind CSS installation instructions.

Add dependencies

Add the dependencies used by Shark UI components:

Configure import aliases

Choose one of the following alias setups.

Option A: tsconfig.json paths

tsconfig.json

Option B: package.json#imports

package.json
tsconfig.json

The @ alias is a preference. You can use other aliases if needed. If you use package.json#imports, keep the matching alias roots in components.json.

Configure styles

Create a file styles/globals.css and follow Styling to configure the theme.

Add a cn helper

lib/utils.ts

Create a components.json file

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

components.json

If you're using package.json#imports, use the corresponding #... aliases instead:

components.json

Adding components

You can add components with the CLI or copy them manually from the component docs:

  • CLI: Run npx shadcn@latest add @shark/<component> (e.g. button, dialog).
  • Manual: Copy component source from Manual tab in the component docs.

You can also install every component at once: