# Getting started (oxblade-icon-sets)

> This page adds an icon set crate to a Rust project and registers it with oxblade-icons.

- Package: oxblade-icon-sets (Rust, alpha), crates: `oxblade-heroicons`, `oxblade-lucide`, `oxblade-phosphor`, `oxblade-tabler`, `oxblade-bootstrap-icons`, `oxblade-feather`, `oxblade-fa`, `oxblade-lucide-lab`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); Release of oxblade-heroicons: 0.1.0; Release of oxblade-lucide: 0.1.0; Release of oxblade-phosphor: 0.1.0; Release of oxblade-tabler: 0.1.0; Release of oxblade-bootstrap-icons: 0.1.0; Release of oxblade-feather: 0.1.0; Release of oxblade-fa: 0.1.0; Release of oxblade-lucide-lab: 0.1.0; MSRV: Rust 1.99 or later; Licence: MIT (oxblade-lucide: MIT AND ISC, oxblade-fa: MIT AND CC-BY-4.0, oxblade-lucide-lab: MIT AND ISC)
- Links: [Repository](https://github.com/bowerbird-si/oxblade-icon-sets), [crates.io](https://crates.io/crates/oxblade-heroicons/0.1.0), [docs.rs](https://docs.rs/oxblade-heroicons/0.1.0), [Changelog](https://oss.bowerbird.si/oxblade-icon-sets/docs/changelog/), [Contributing](https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/SECURITY.md)
- Based on: [blade-ui-kit/blade-heroicons](https://github.com/driesvints/blade-heroicons): The PHP package that supplies the Heroicons SVGs and naming conventions.; [mallardduck/blade-lucide-icons](https://github.com/mallardduck/blade-lucide-icons): The PHP package that supplies the Lucide and Lucide Lab SVGs and naming conventions.; [Heroicons](https://github.com/tailwindlabs/heroicons): The original MIT-licensed artwork for the Heroicons set.; [Lucide](https://github.com/lucide-icons/lucide): The original artwork and attribution for Lucide and Lucide Lab.; [Feather](https://github.com/feathericons/feather): The original MIT-licensed artwork for the Feather-derived icons in Lucide.; [codeat3/blade-phosphor-icons](https://github.com/codeat3/blade-phosphor-icons): The PHP package that supplies the Phosphor SVGs and naming conventions.; [Phosphor](https://github.com/phosphor-icons/core): The original MIT-licensed Phosphor artwork in six weights.; [secondnetwork/blade-tabler-icons](https://github.com/secondnetwork/blade-tabler-icons): The PHP package that supplies the Tabler SVGs, including its legacy files and filled aliases.; [Tabler Icons](https://github.com/tabler/tabler-icons): The original MIT-licensed artwork for the Tabler set.; [davidhsianturi/blade-bootstrap-icons](https://github.com/davidhsianturi/blade-bootstrap-icons): The PHP package that supplies the Bootstrap SVGs and the bi prefix.; [Bootstrap Icons](https://github.com/twbs/icons): The original MIT-licensed Bootstrap artwork.; [brunocfalcao/blade-feather-icons](https://github.com/brunocfalcao/blade-feather-icons): The PHP package that supplies the Feather SVG files and feathericon prefix.; [owenvoke/blade-fontawesome](https://github.com/owenvoke/blade-fontawesome): The PHP package that supplies the free solid, regular and brand SVGs with their original attribution comments.; [Font Awesome Free](https://github.com/FortAwesome/Font-Awesome): The original CC BY 4.0 artwork credited in oxblade-fa.; [Lucide Lab archive](https://github.com/lucide-icons/lucide-lab): The original ISC-licensed artwork for 32 icons retained from the archived Lucide Lab repository.
- HTML version: https://oss.bowerbird.si/oxblade-icon-sets/docs/getting-started/
- Source: https://github.com/bowerbird-si/oxblade-icon-sets/blob/f3e3059dcb5585128e794402bedc0ddc17f4d2ab/docs/getting-started.md

This page adds an icon set crate to a Rust project and registers it with oxblade-icons.

## Install

Add the renderer and the set crates you want:

```toml
[dependencies]
oxblade-icons = "0.1"
oxblade-heroicons = "0.1"
oxblade-lucide = "0.1"
```

## Register

`icon_set!` takes one set crate and returns a registered set with the crate's name, prefix, source and
licence notice. Call `.set(...)` once per crate:

```rust
use oxblade_icons::{Attributes, Icons, icon_set};

fn main() -> oxblade_icons::Result<()> {
    let icons = Icons::builder()
        .set(icon_set!(oxblade_heroicons))
        .set(icon_set!(oxblade_lucide))
        .build()?;

    println!("{}", icons.svg("heroicon-o-home", "size-6", Attributes::new())?);
    println!("{}", icons.svg("lucide-map-pin", "w-4", Attributes::new())?);
    Ok(())
}
```

The macro checks the crate's data format at compile time, so a set crate and an oxblade-icons version
that don't match fail to build instead of failing at run time.

In oxblade templates the same names work in all four Blade Icons forms, for example
`<x-heroicon-o-home class="size-6" />`. See the oxblade-icons
[Blade templates](https://github.com/bowerbird-si/oxblade-icons/blob/main/docs/blade.md) page.

## Next

- [The sets](https://oss.bowerbird.si/oxblade-icon-sets/docs/sets/): name styles, versions and licences.
- The oxblade-icons [guide](https://github.com/bowerbird-si/oxblade-icons/blob/main/docs/index.md):
  classes, attributes, fallbacks and the Laravel provider.
