feat: инициализировать пакет генерации SVG-спрайтов

- создан NPM-пакет @gromlab/svg-sprites (ESM, TypeScript)
- реализован CLI через citty и программный API
- добавлена компиляция SVG в спрайты (stack/symbol) через svg-sprite
- добавлена генерация TypeScript union-типов имён иконок
- реализованы SVG-трансформации: замена цветов на CSS-переменные,
  удаление width/height, добавление transition к элементам с цветом
- добавлен генератор HTML-превью с color picker-ами, авто-темой,
  синхронизацией currentColor с темой и поиском по иконкам
- добавлены тестовые SVG-файлы (icons, logos)
This commit is contained in:
2026-04-21 23:07:34 +03:00
commit aad1c97f50
24 changed files with 3888 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M33.0001 25.8001C33.0001 27.1501 32.6251 28.425 31.9501 29.505C30.7051 31.59 28.4251 33.0001 25.8001 33.0001C23.1751 33.0001 20.8801 31.59 19.6501 29.505C18.9901 28.425 18.6001 27.1501 18.6001 25.8001C18.6001 21.8251 21.8251 18.6001 25.8001 18.6001C29.7751 18.6001 33.0001 21.8251 33.0001 25.8001Z" stroke="#A93133" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M22.9951 25.8L24.7651 27.57L28.6051 24.03" stroke="#A93133" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M33 13.0349C33 15.9899 32.235 18.5999 31.035 20.8649C29.715 19.4699 27.855 18.6 25.8 18.6C21.825 18.6 18.6 21.825 18.6 25.8C18.6 27.645 19.305 29.325 20.445 30.6C19.89 30.855 19.38 31.0649 18.93 31.2149C18.42 31.3949 17.58 31.3949 17.07 31.2149C12.72 29.7299 3 23.5349 3 13.0349C3 8.39994 6.735 4.6499 11.34 4.6499C14.055 4.6499 16.485 5.96996 18 7.99496C19.515 5.96996 21.945 4.6499 24.66 4.6499C29.265 4.6499 33 8.39994 33 13.0349Z" stroke="#A93133" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB