freya-icons

Thousands of icons ready to be used in Freya. 🌹

OTHER License

Stars
3

freya-icons 🌹

⚠️ WORK IN PROGRESS

Easily use icons in your Freya apps. Forked from dioxus-free-icons.

Example

use freya::prelude::*;

use freya_icons::icons::bs_icons::BsAlarm;
use freya_icons::Icon;

fn main() {
    launch(app);
}

fn app() -> Element {
    rsx! (
        Icon {
            width: 200,
            height: 200,
            fill: "#007FFF",
            icon: BsAlarm,
        }
    )
}

Why a fork instead of adding support to dioxus-free-icons?

Adding support for freya in dioxus-free-icons would have required to duplicate all the codegen as Freya and HTML Dioxus renderers have different APIs for SVG. This would have been a pain in the ass to work with.

Supported features

The following features are available. Please see react-icons site to check the icon name and icon design.

License

This project is licensed under the MIT license.

Icon

Icon Library License Version
Bootstrap Icons MIT License 1.8.3
Feather MIT License 4.29.0
Font Awesome CC BY 4.0 License 6.1.1
Heroicons MIT License 1.0.6
Ionicons MIT License 6.0.2
Lucide ISC License 0.265.0
Material Design icons Apache License 2.0 4.0.0
Octicons MIT License 17.3.0

Development

// generate icon files
cd crates/codegen
cargo run --release

Preview

cargo run --example demo

Update icons

  1. checkout a new tag in the icon resource submodule
  2. create new icon files
  3. Update README.md and check the LICENSE
Badges
Extracted from project README
Discord Server Github Sponsors