This guide shows how to add Thulite SVG to your Thulite project.

Already installed?

If your Thulite template already includes the Thulite SVG integration, skip installation and continue to Configuration.

Add Thulite SVG

Add Thulite SVG to your site by running the following command in your project’s root directory:

This installs the required package.

Add icon set(s)

Add one or more icon sets, for example Tabler Icons (recommended, included in the Doks template) and Lucide.

This installs the required package(s).

Update mounts

Add mounts to ./config/_default/module.toml:

module.toml
## layouts
[[mounts]]
  source = "layouts"
  target = "layouts"

[[mounts]]
  source = "node_modules/@thulite/inline-svg/layouts"
  target = "layouts"

## assets
[[mounts]]
  source = "node_modules/@tabler/icons/icons/outline"
  target = "assets/svgs/tabler-icons"

[[mounts]]
  source = "node_modules/lucide-static/icons"
  target = "assets/svgs/lucide"

[[mounts]]
  source = "assets"
  target = "assets"

Configure Thulite SVG

Configure Thulite SVG

Update your project's parameters.