UNPKG

vite-awesome-svg-loader

Version:

A universal Vite SVG loader. Imports SVGs as source code, base64 and data URI. Preserves stroke width. Replaces colors with currentColor or custom colors. Creates SVG sprites. Optimizes SVGs.

8 lines (7 loc) 371 B
import { XastChild, XastElement } from 'svgo/lib/types'; import { ResolvedColorReplacements } from './types'; /** * Sets current color of a given node * @returns New value of `isFillSetOnRoot`. */ export declare function replaceColorsSvg(node: XastElement, isFillSetOnRoot: boolean, replacements: ResolvedColorReplacements, nodesWithOrigColors: XastChild[]): boolean;