SVG and sprites

For @devigner-ui/icons-svg, which jumps from 2.x to 3.5.0 to share one version with the other packages. Nothing in it breaks.

Old file names keep working

Until 4.0.0 every old file is still in the package, holding the renamed drawing, and every sprite keeps the old id beside the new one:

HTML
<img src="https://cdn.jsdelivr.net/npm/@devigner-ui/icons-svg@3.5.0/svg/outline/Bag2.svg" />      <!-- still works -->
<img src="https://cdn.jsdelivr.net/npm/@devigner-ui/icons-svg@3.5.0/svg/outline/BagStraps.svg" /> <!-- the new name -->

<svg><use href="/sprite/outline.svg#Bag2" /></svg>       <!-- still works -->
<svg><use href="/sprite/outline.svg#BagStraps" /></svg>  <!-- the new name -->

A file cannot warn you, so nothing tells you at runtime that a name is old. Update your paths with the codemod, which rewrites svg/<style>/<Name>.svg paths and #Name sprite references in HTML, CSS, templates and scripts:

Terminal
npx @devigner-ui/icons migrate --dry   # list what would change
npx @devigner-ui/icons migrate

The full list ships in the package as @devigner-ui/icons-svg/renames.json, and on the All renames page.

A CDN link without a version, such as …/npm/@devigner-ui/icons-svg/svg/…, follows the newest release. Old file names keep resolving until 4.0.0 and then return 404. Pin a version in the URL, or move to the new names before 4.0.

Case-only renames

Twenty-seven renames change only capitalisation, such as Additem.svg to AddItem.svg. On Windows and macOS two files whose names differ only in case are one file, so the package keeps the new file and the old sprite id but not a second file. The old file path still resolves on case-insensitive systems, and returns 404 on Linux servers and most CDNs. Use the new spelling.

Documentation

Browse all 12,480 icons