Installation

Svgpack is primarily a CLI tool.
Install it as a dev dependency in your project:

npm install -D @artero/svgpack
# or
yarn add -D @artero/svgpack

⚠️ Previously published as @marsbased/svgpack.
The old package is deprecated and will no longer receive updates.


Runtime Usage (React components)

If you import SvgpackMask or SvgpackBackground directly in your React application, install it as a regular dependency:

npm install @artero/svgpack
# or
yarn add @artero/svgpack

Global CLI (Optional)

For one-off usage outside a project:

npm install -g @artero/svgpack
# or
yarn global add @artero/svgpack

svgpack - Convert SVG files into CSS variables and ready-to-use classes

This site uses Just the Docs, a documentation theme for Jekyll.