Getting started with Xerobi Icons
Pick the setup that matches your project. Every option uses the same 70,000+ icons and six weights, so you can mix platforms freely.
1. Choose your platform
React icons
Typed, tree-shakeable components with an IconContext for defaults.
npm i @xerobi/icons-reactReact Native icons
Typed components for React Native and Expo, drawn with react-native-svg.
npm i @xerobi/icons-react-native react-native-svgVue icons
Vue 3 components with provide/inject defaults.
npm i @xerobi/icons-vueWeb components
An <xerobi-icons> element for plain HTML, Angular, Svelte, Astro and WordPress.
npm i @xerobi/icons-webIcon font
OTF and WOFF2 fonts with CSS classes in five weights; duotone needs two tones, so it is SVG and components only.
npm i @xerobi/icons-fontSVG icons
Raw SVG files, sprites, metadata and a toSvg() helper.
npm i @xerobi/icons-coreFlutter icons
IconData constants backed by bundled fonts.
flutter pub add xerobi_iconsSwiftUI icons
A Swift package with vector assets for SwiftUI and UIKit.
Swift Package ManagerAndroid icons
Jetpack Compose ImageVectors and XML VectorDrawables.
Gradle, via JitPack2. No build step? Link a file
The web component and the icon font load from a CDN, and every icon is also a standalone SVG:
<script src="https://cdn.jsdelivr.net/npm/@xerobi/[email protected]"></script>
<xerobi-icons name="house"></xerobi-icons>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xerobi/[email protected]/dist/index.css">
<i class="im im-house"></i>
<img src="https://xerobi-icons.pages.dev/svg/bold/heart-bold.svg" alt="" width="24" height="24">
3. Pick a weight
Thin, light, regular and bold are outlines with 8, 12, 16 and 24-unit strokes on a 256-unit grid. Fill is solid and duotone layers the outline over a 20% tint. Regular is the default; use bold for small sizes and fill for selected states.
4. Find icons
Search all 70,000+ icons by name or tag in the icon browser, or explore 31 categories. Each icon has its own page with every weight, downloads and code for each platform.