Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 472 Bytes

icons.md

File metadata and controls

12 lines (8 loc) · 472 Bytes

SVG Icons

SVG images are very expensive when rendered via React. Since SVG icons are typically small in size and can include many files, it makes sense to bundle all these icons into a single sprite file.

See https://benadam.me/thoughts/react-svg-sprites/

There is a script name scripts/build-icons.ts that will generate the sprite file in the app/components/ui folder.

Place new icons in the assets/icons folder and run the command: npm run build:icons