A collection of evcc icons for vehicles, meters, and chargers. Available as web components with SVG registry for direct access.
npm install @evcc/icons
import '@evcc/icons';
<!-- Simple usage -->
<evcc-icon type="vehicle" name="kia-niro-ev"></evcc-icon>
<!-- With custom colors and size -->
<evcc-icon
type="charger"
name="tesla-wallconnector"
size="48"
accent-color="#ff6b35">
</evcc-icon>
import { registry } from '@evcc/icons';
// Load an icon manually
const iconLoader = registry['vehicle/kia-niro-ev'];
if (iconLoader) {
const iconModule = await iconLoader();
const svgString = iconModule.default;
document.getElementById('my-icon').innerHTML = svgString;
}
- 🎨 Customizable colors - Accent and outline colors via CSS custom properties
- 📱 Web Components - Native custom elements with lazy loading
- 🔗 Direct access - SVG registry for custom implementations
- 🚀 Performance - Lazy loading and caching built-in
- 💪 TypeScript - Full type definitions included
The <evcc-icon>
web component supports the following attributes:
type
- Icon category:vehicle
,charger
, ormeter
name
- Specific icon name (e.g.,kia-niro-ev
)size
- Icon size in pixels or CSS unitsaccent-color
- Custom accent color (default:#4eb84b
)outline-color
- Custom outline color (default:#000
)
Example with all options:
<evcc-icon
type="vehicle"
name="bmw-i3"
size="64px"
accent-color="#1976d2"
outline-color="#333">
</evcc-icon>
import { registry } from '@evcc/icons';
// Get all available icons
const availableIcons = Object.keys(registry);
// Load an icon
const iconLoader = registry['charger/tesla-wallconnector'];
const iconModule = await iconLoader();
const svgString = iconModule.default;
Icons use CSS custom properties for theming:
evcc-icon {
--evcc-accent-color: #ff6b35;
--evcc-outline-color: #333;
}
Icons are organized by category:
- Vehicles (
vehicle/
): Car models and EV brands - Chargers (
charger/
): Charging stations and wallboxes - Meters (
meter/
): Energy meters and monitoring devices
See the full icon gallery for all available icons.
git clone https://github.com/evcc-io/evcc-icons.git
cd evcc-icons
npm install
npm run build
npm run dev # Serves docs at http://localhost:3000
This project is licensed under the CC-BY-NC-SA-4.0 license.