Skip to main content

Prerequisites

SVAR Svelte Gantt 2.x requires Svelte 5. If you are on Svelte 4, see the Svelte 4 note below.

Install the package

Svelte 4

There are two published versions of SVAR Svelte Gantt: To use the Svelte 4 version:
This documentation covers 2.x (Svelte 5). If you are on Svelte 4, use wx-svelte-gantt@1.2.0.

What is included

The package exports the following components and utilities:

Theme setup

SVAR Svelte Gantt ships with three themes: Willow (light), WillowDark (dark), and Material. Each theme is a Svelte component that wraps your Gantt instance and injects the required CSS custom properties. Wrap your <Gantt> component in a theme wrapper:
To use a different theme, swap the wrapper:
You can also apply a theme using CSS class names directly on a container element if you prefer not to use the wrapper components. See Theming for details.

Next steps

Quickstart

Build a working Gantt chart in minutes with a step-by-step guide.

Tasks and links

Learn the data structures for tasks, links, and milestones.