Manual Installation

Setup Selia manually by following the steps below.

Tailwind CSS

Before we start, make sure you have Tailwind CSS installed in your project. If you don't, you can follow the Tailwind CSS installation guide.

Dependencies

First, install the dependencies:

Tailwind Configuration

Your CSS should include the following:

app.css

Helper Function

Create a new helper function to merge class names:

lib/utils.ts

Portals

Base UI uses portals for components that render popups, such as Dialog and Popover. To make portaled components always appear on top of the entire page, add the following style to your application layout root:

root.tsx

Path Aliases

Add the baseUrl compiler option to your tsconfig.json file:

tsconfig.json

Selia Configuration

Create a new file selia.json in the root of your project:

selia.json

Components

Use the Selia CLI to add components to your project:

You can use any font you like, but Selia was designed with Inter and JetBrains Mono.

Add the following to your CSS file:

app.css

Icons (optional)

You don’t need to install a separate icon library. We embed icons as SVGs directly inside the components that need them. This way, you’re free to use any icon library you like, without worrying about breaking other components.