Official presets and palettes to use tsParticles in minutes without starting from an empty configuration.
pnpm add @tsparticles/engine @tsparticles/slim @tsparticles/preset-stars
import { tsParticles } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim";
import { loadStarsPreset } from "@tsparticles/preset-stars";
await loadSlim(tsParticles);
await loadStarsPreset(tsParticles);
await tsParticles.load({
id: "tsparticles",
options: {
preset: "stars",
},
});
@tsparticles/engine plus one bundle (@tsparticles/slim recommended)tsParticles.load(...)@tsparticles/slim + one preset packagetsparticles and register only the presets you needIf you need a complete effect quickly, use a preset. If you already have a config and only want a color direction, use a palette.
Palettes are now maintained in a dedicated repository:
Use this repository for preset packages only.
Presets work with the core library and official wrappers (React, Vue, Angular, Svelte, etc.).
General guides:
tsParticles.load(...)id value in your HTML container and load callIf you need a new preset or want to contribute:
Official presets and palettes to use tsParticles in minutes without starting from an empty configuration.
pnpm add @tsparticles/engine @tsparticles/slim @tsparticles/preset-stars
import { tsParticles } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim";
import { loadStarsPreset } from "@tsparticles/preset-stars";
await loadSlim(tsParticles);
await loadStarsPreset(tsParticles);
await tsParticles.load({
id: "tsparticles",
options: {
preset: "stars",
},
});
@tsparticles/engine plus one bundle (@tsparticles/slim recommended)tsParticles.load(...)@tsparticles/slim + one preset packagetsparticles and register only the presets you needIf you need a complete effect quickly, use a preset. If you already have a config and only want a color direction, use a palette.
Palettes are now maintained in a dedicated repository:
Use this repository for preset packages only.
Presets work with the core library and official wrappers (React, Vue, Angular, Svelte, etc.).
General guides:
tsParticles.load(...)id value in your HTML container and load callIf you need a new preset or want to contribute: