README.md

October 31, 2025 · View on GitHub


IconPacks.Avalonia

IconPacks.Avalonia

Really awesome icon packs for Avalonia in one library

Supporting a wide range of platforms such as Windows, macOS, Linux, iOS, Android and WebAssembly.

Bluesky X (formerly Twitter) Follow Mastodon Follow Discord
AppVeyor Build (with branch) GitHub Actions Workflow Status

The IconPacks packages contains controls, markup extensions and converters to use these awesome icons with your Avalonia applications in a simple way.

The same icons are also available for WPF and UWP with the MahApps.Metro.IconPacks packages which makes your WPF and UWP applications nicer.

Icon collectionVersionNuGet
Complete IconPacks collection with all Icons in one package69328
Bootstrap Icons1.13.12078
Boxicons v22.1.41634
Boxicons v33.0.03584
Circum Icons Free2.0.2288
Codicons0.0.41499
Coolicons4.1442
Entypo+411
Eva Icons1.1.3490
Feather Icons4.29.1287
File Icons2.1.47920
Fontaudio1.1.0155
Font Awesome Free v55.15.41611
Font Awesome Free v66.7.22060
Font Awesome Free v77.1.02089
Fontisto3.0.4616
Fork Awesome1.2.0794
Game IconsMay 4, 20254170
Ionicons4.6.4.1696
Jam Icons3.1.0940
Keyrune Icons3.17.1404
Lucide Icons0.552.01640
Material Design Icons7.4.477447
Material Design Icons Light0.2.63257
Material Icons (Google)0.14.158413
Memory Icons1.5.0651
Microns1.1.4164
MingCute Icon2.9.63098
Modern UI IconsFeb 12, 20151260
MynaUI Icons0.3.92544
Primer Octicons (GitHub)19.19.0670
Phosphor Icons2.1.17560
PICOL Icons1.1.0549
Pixelarticons1.8.1486
Radix Icons1.3.0324
Remix Icon4.7.03135
RPG Awesome0.2.0495
Simple Icons15.18.03369
Typicons2.1.2336
Unicons4.2.01610
Vaadin Icons24.8.4636
Weather Icons2.0.12219
ZondiconsJuly 12, 2017297

Let's get started

Install

IconPacks.Avalonia is delivered via NuGet package manager. You can find the packages here:

All Icons in one package

Separate Icon packages

Use these commands in the Package Manager console to install packages manually:

Install-Package IconPacks.Avalonia

or one of these

Install-Package IconPacks.Avalonia.BootstrapIcons
Install-Package IconPacks.Avalonia.BoxIcons2
Install-Package IconPacks.Avalonia.BoxIcons
Install-Package IconPacks.Avalonia.CircumIcons
Install-Package IconPacks.Avalonia.Codicons
Install-Package IconPacks.Avalonia.Coolicons
Install-Package IconPacks.Avalonia.Entypo
Install-Package IconPacks.Avalonia.EvaIcons
Install-Package IconPacks.Avalonia.FeatherIcons
Install-Package IconPacks.Avalonia.FileIcons
Install-Package IconPacks.Avalonia.Fontaudio
Install-Package IconPacks.Avalonia.FontAwesome5
Install-Package IconPacks.Avalonia.FontAwesome6
Install-Package IconPacks.Avalonia.FontAwesome
Install-Package IconPacks.Avalonia.Fontisto
Install-Package IconPacks.Avalonia.ForkAwesome
Install-Package IconPacks.Avalonia.GameIcons
Install-Package IconPacks.Avalonia.Ionicons
Install-Package IconPacks.Avalonia.JamIcons
Install-Package IconPacks.Avalonia.KeyruneIcons
Install-Package IconPacks.Avalonia.Lucide
Install-Package IconPacks.Avalonia.Material
Install-Package IconPacks.Avalonia.MaterialLight
Install-Package IconPacks.Avalonia.MaterialDesign
Install-Package IconPacks.Avalonia.MemoryIcons
Install-Package IconPacks.Avalonia.Microns
Install-Package IconPacks.Avalonia.MingCuteIcons
Install-Package IconPacks.Avalonia.Modern
Install-Package IconPacks.Avalonia.MynaUIIcons
Install-Package IconPacks.Avalonia.Octicons
Install-Package IconPacks.Avalonia.PhosphorIcons
Install-Package IconPacks.Avalonia.PicolIcons
Install-Package IconPacks.Avalonia.PixelartIcons
Install-Package IconPacks.Avalonia.RadixIcons
Install-Package IconPacks.Avalonia.RemixIcon
Install-Package IconPacks.Avalonia.RPGAwesome
Install-Package IconPacks.Avalonia.SimpleIcons
Install-Package IconPacks.Avalonia.Typicons
Install-Package IconPacks.Avalonia.Unicons
Install-Package IconPacks.Avalonia.VaadinIcons
Install-Package IconPacks.Avalonia.WeatherIcons
Install-Package IconPacks.Avalonia.Zondicons

Usage

Use this axaml/xaml namespace for all IconPacks:

xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"

Add the styles to the Applications styles

    <Application.Styles>
        <FluentTheme />

        <StyleInclude Source="avares://IconPacks.Avalonia/Icons.axaml" />
    </Application.Styles>

The resource avares://IconPacks.Avalonia/Icons.axaml should be used when using the main IconPacks.Avalonia NuGet package which contains all icons.

All other has the naming scheme avares://IconPacks.Avalonia.<PACKAGENAME>/<PACKAGENAME>.axaml

    <Application.Styles>
        <FluentTheme />

        <StyleInclude Source="avares://IconPacks.Avalonia.<PACKAGENAME>/<PACKAGENAME>.axaml" />
    </Application.Styles>

The PackIcon controls

The PackIcon controls are the main featured controls to use an icon from an IconPack in a simple way.

Each package has there own control with this name scheme: PackIcon<PACKAGENAME>

<iconPacks:PackIconBoxIcons Kind="RegularAlarm"
                            Width="24"
                            Height="24" />

or

<iconPacks:PackIconCodicons Kind="SaveAll"
                            Width="24"
                            Height="24" />

The PackIconControl

The PackIconControl is a control which can be used for any kind of available IconPacks.

This control is only available with the main IconPacks.Avalonia NuGet package.

<iconPacks:PackIconControl Kind="{x:Static iconPacks:PackIconBoxIconsKind.RegularAlarm}"
                           Width="24"
                           Height="24" />

or

<iconPacks:PackIconControl Kind="{x:Static iconPacks:PackIconCodiconsKind.SaveAll}"
                           Width="24"
                           Height="24" />

The PackIcon MarkupExtensions

A faster way to get an Icon for any ContentControl is to use the PackIcon MarkupExtension.

If you want e.g. a Button with an Icon from the Codicons then you can do this:

<Button Content="{iconPacks:Codicons SaveAll}" />

<!-- or -->

<Button Content="{iconPacks:Codicons Kind=SaveAll}" />

It's also possible to use some properties of the MarkupExtension like this:

<Button Content="{iconPacks:Codicons SaveAll, Width=32, Height=32}" />

There is also a general (generic) MarkupExtension available. With this MarkupExtension you can use any IconPack enumeration.

This MarkupExtension is only available with the main IconPacks.Avalonia NuGet package.

<Button Content="{iconPacks:PackIcon {x:Static iconPacks:PackIconCodiconsKind.SaveAll}, Width=32, Height=32}" />

The PackIcon Image MarkupExtensions

It's possible to use all icons as an Image with the PackIcon image MarkupExtension.

<Image Source="{iconPacks:BoxIconsImage Kind=RegularAtom, Brush=Brown}"
       Width="24" Height="24"
       HorizontalAlignment="Left" Margin="10" />

In addition, there is also a general (generic) MarkupExtension available.

This MarkupExtension is only available with the main IconPacks.Avalonia NuGet package.

<Image Source="{iconPacks:PackIconImage Kind={x:Static iconPacks:PackIconBoxIconsKind.RegularAlarm}, Brush=GreenYellow}"
       Width="24" Height="24"
       HorizontalAlignment="Left" Margin="10" />

The PackIcon ImageConverter

The PackIcon image converters can be used to convert a PackIcon to an Image.

<Image Source="{Binding #BoxIconsKindCombobox.SelectedItem, Mode=OneWay, Converter={iconPacks:PackIconBoxIconsKindToImageConverter Brush=Goldenrod}}"
       Width="24" Height="24"
       HorizontalAlignment="Left" Margin="10" />

In addition, there is also a general (generic) PackIconKindToImageConverter available.

This PackIconKindToImageConverter is only available with the main IconPacks.Avalonia NuGet package.

<Image Source="{Binding #BoxIconsKindCombobox.SelectedItem, Mode=OneWay, Converter={iconPacks:PackIconKindToImageConverter Brush=Goldenrod}}"
       Width="24" Height="24"
       HorizontalAlignment="Left" Margin="10" />

Want to say thanks?

This library is free and can be used in open source and commercial applications.

It's tested, contributed and used by me and many other people... So mainly hit the :star: button, that's all. :heart: :chipmunk: ( :dollar: or :euro: or :coffee: or :beer: or some other gifts are also being accepted...).

Icons

Please don't forget to give also a :star: to all used icon repositories!!!

IconPacks Browser

A Browser for all available Icon packages can be found here.

iconbrowserfinal