Setup

How to install and set up Kibo Svelte components in your project

Installing Kibo Svelte is straightforward and can be via the standard shadcn-svelte CLI if you’ve already adopted shadcn-sveltes’s workflow.

This guide will walk you through the prerequisites and the installation steps, complete with example commands. By the end, you’ll have Kibo Svelte components ready to use in your project.

Prerequisites

Before installing Kibo Svelte, make sure your environment meets the following requirements:

  • Node.js, version 18 or later
  • A Svelte project, version 18 or later
  • shadcn-svelte installed in your project. In practice, this means you have already initialized shadcn in your project (for example by running npx shadcn-svelte@latest init and configuring Tailwind CSS). Kibo Svelte currently supports only the CSS Variables mode of shadcn-svelte for theming.
Note: If you haven’t installed shadcn-svelte yet, you should do that first. Follow the official shadcn-svelte setup instructions to configure Tailwind CSS and the base components. Kibo Svelte builds on that foundation, so having shadcn in place is required.
Kibo Svelte currently only supports the CSS Variables version of shadcn-svelte

Installing Components

You can install Kibo Svelte components using the shadcn-svelte CLI. It will add the selected component’s code and any needed dependencies to your project. For example, to install the Gantt Chart component, you would run:

        npx shadcn-svelte@latest add http://adv76.github.io/kibo-svelte/r/gantt.json
    

The CLI will download the component’s code and integrate it into your project’s directory (usually under your components folder). By default, Kibo Svelte components are added to the $lib/components/ui/../kibo-ui/ directory (or whatever folder you’ve configured in your shadcn components settings). The kibo-ui will be a sibling directory to the rest of your shadcn-svelte components.

For instance, the command above will place the Gantt component files in $lib/components/kibo-ui/gantt/. The CLI also ensures that any required dependencies (for example, specific headless libraries a component might need) are installed automatically.

After running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.

⚡ Fast Installation: This method is very fast – typically taking only a few seconds. You don’t need to leave your editor or manually copy-paste any code. After the command finishes, everything is ready to go.