# svgcombiner
**Repository Path**: mirrors_adobe/svgcombiner
## Basic Information
- **Project Name**: svgcombiner
- **Description**: Let your CSS classes choose which icon to display
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-24
- **Last Updated**: 2026-03-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# svgcombiner
> Let your CSS classes choose which icon to display
This utility combines multiple SVGs into a single SVG. Each source SVG is given a classname that can be used to toggle its visibility, such that icons can be swapped out by showing or hiding the respective CSS class.
For instance, the included test processes the following files:
* `test/medium/S_UICornerTriangle_5_N@1x.svg`
* `test/large/S_UICornerTriangle_6_N@1x.svg`
Given the following configuration:
```js
combine('CornerTriangle', {
'icon-medium': fs.readFileSync('test/medium/S_UICornerTriangle_5_N@1x.svg', 'utf8'),
'icon-large': fs.readFileSync('test/large/S_UICornerTriangle_6_N@1x.svg', 'utf8')
})
```
The result is:
```xml
```
If you embed this SVG in the page (or include it as part of a spritesheet and embed it with `