Installation

xeerpe is published on npm and has no runtime dependencies. Install it with your package manager, then add the stylesheet if you plan to use animations.

Install the package

npm
npm install xeerpe
Yarn
yarn add xeerpe
pnpm
pnpm add xeerpe

Add the stylesheet

Gradients, patterns, effects and filters work without any extra setup. Animations are different: their keyframes live in animations.css, which you import once in your project.

Note: without the stylesheet the animation styles are still applied, but nothing moves and the browser reports no error. This also applies to presets that include an animation, such as northern-lights.

JavaScript or TypeScript entry file
import 'xeerpe/animations.css'
CSS
@import 'xeerpe/animations.css';
SCSS
@use 'xeerpe/animations.css';

In Angular, add node_modules/xeerpe/dist/animations.css to the styles array of your project in angular.json.

Next, see Usage to build your first background.