@sargamicons/static
v1.6.7
Published
Sargam Icons as optimized standalone SVGs, an SVG sprite, and a manifest (Line, Duotone, Fill).
Maintainers
Readme
@sargamicons/static
Sargam Icons as framework-agnostic assets in three
styles (Line, Duotone, Fill): standalone SVGs, an SVG sprite, and a manifest.
Every icon uses currentColor, so it inherits text color.
Install
bun add @sargamicons/static
# or: npm install @sargamicons/static
# or: pnpm add @sargamicons/static
# or: yarn add @sargamicons/staticContents
icons/<variant>/<slug>.svg: one themeable SVG per icon per variant.sprite.svg: every icon as a<symbol id="si-<variant>-<slug>">.manifest.json:{ "SiName": { base, slug, viewBox, variants } }.
Usage
Standalone file:
<img src="node_modules/@sargamicons/static/icons/line/heart.svg" width="24" />Inline with the sprite (themeable via color):
<svg width="24" height="24" style="color: tomato">
<use href="node_modules/@sargamicons/static/sprite.svg#si-fill-heart" />
</svg>License
MIT © @planetabhi
