Icon System
The project supports two types of icons: Iconify (remote/offline SVG icon sets) and local SVG icons.
Iconify Icons
Iconify provides 100,000+ icons from popular icon sets. Icons are loaded as SVG, rendered inline.
Browse icons at icones.js.org.
Local SVG Icons
Custom SVG icons stored in src/assets/svg-icon/ are bundled with the project and available offline.
How It Works
- unplugin-icons: Auto-imports Iconify icons as Vue components
- vite-plugin-svg-icons: Bundles local SVGs into a sprite
- @iconify/vue: Provides the
<Icon>component for dynamic rendering
Prefix Configuration
VITE_ICON_PREFIX=icon # Iconify icon prefix
VITE_ICON_LOCAL_PREFIX=icon-local # Local icon prefix