GitHub

Manual Installation

Instructions to install Shark UI in a project manually.

Add Tailwind CSS

Components are styled using Tailwind CSS. You need to install Tailwind CSS in your project.

Follow the Tailwind CSS installation instructions to get started.

Add dependencies

Add the following dependencies to your project:

Configure path aliases

Configure the path aliases in your tsconfig.json file.

tsconfig.json

The @ alias is a preference. You can use other aliases if you want.

Configure styles

Add the following to your globals.css file.

styles/globals.css

Add a cn helper

TypeScriptlib/utils.ts

Create a components.json file

Create a components.json file in the root of your project.

components.json

That's all!

Now you can start adding components to your project.