2.1.5 • Published 6 months ago
@honehealth/icons v2.1.5
@honehealth/icons
This package contains the SVG icons used across Hone Health's applications. The icons are processed and converted into React components using svgr and svgo.
Requirements for Adding New Icons
1. SVG File Requirements
- Add all new icons as SVG files in the
src/iconsdirectory. - Ensure SVG files:
- Use
fill="#0E0B20"orfill="#161919"for paths or shapes requiring customizable colors. These values will be replaced withcurrentColorduring the build process for dynamic color support. - Avoid hardcoding other
fillvalues unless necessary. - Are optimized for size and performance (e.g., no unnecessary metadata or attributes).
- Use
2. File Naming
- Name SVG files using kebab-case (e.g.,
icon-2.svg,user-profile.svg). - During the build process,
svgrconverts file names to PascalCase for the generated React components:- Example:
icon-2.svg→Icon2.jsuser-profile.svg→UserProfile.js
- Example:
- Avoid spaces or special characters in file names.