Installation
Install Sivir UI into your project.
Prerequisites
- Svelte 5 or SvelteKit
- Tailwind CSS v4
Option A: Package import
Install the library and import components from @sivir-ui/svelte.
Import the stylesheet once (for example in src/app.css):
Use a component:
Compound components use a namespace export (for example Modal with Modal.Root, Modal.Content, …).
Option B: CLI source copy
The CLI copies source into your project. The package name is @sivir-ui/svelte; the binary is sivir.
1. Create a project (optional)
2. Add Tailwind v4
3. Initialize Sivir
Creates src/lib/sivir/ (tokens +
utilities) and sivir.json.
4. Import the stylesheet
5. Add components
6. Use them
Notes
- Tailwind v3 is not supported. Sivir needs v4
@themeandcolor-mix. - Dark mode uses a
.darkclass on<html>. - Built-in theme presets install with
bunx --package @sivir-ui/svelte sivir add theme <slug>(for exampledefault).
bun add @sivir-ui/svelte # npm i @sivir-ui/svelte # pnpm add @sivir-ui/svelte