Material3.Avalonia 0.2.0-preview.1

This is a prerelease version of Material3.Avalonia.
dotnet add package Material3.Avalonia --version 0.2.0-preview.1
                    
NuGet\Install-Package Material3.Avalonia -Version 0.2.0-preview.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Material3.Avalonia" Version="0.2.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Material3.Avalonia" Version="0.2.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Material3.Avalonia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Material3.Avalonia --version 0.2.0-preview.1
                    
#r "nuget: Material3.Avalonia, 0.2.0-preview.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Material3.Avalonia@0.2.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Material3.Avalonia&version=0.2.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Material3.Avalonia&version=0.2.0-preview.1&prerelease
                    
Install as a Cake Tool

Material3.Avalonia

A standalone Material Design 3 theme and component library for Avalonia 12.1 on .NET 8 or later. It does not depend on FluentTheme or SimpleTheme and is designed for desktop, Android, iOS, WebAssembly, trimming, and NativeAOT.

Documentation | WASM gallery | Releases

Features

  • HCT/MCU dynamic color with light/dark schemes, contrast levels, and nine scheme variants.
  • Material 3 themes for 80+ built-in Avalonia controls.
  • Material-specific controls including chips, FAB menus, button groups, sheets, search, time picker, wavy progress, loading morphs, and range sliders.
  • 4,007 Google Material Symbols Rounded 400 icons, optically sized for 24dp, in regular and filled variants as cached Avalonia Geometry objects.
  • Pointer-centered ripples, state layers, elevation, expressive shape transitions, and responsive Gallery layouts.
  • Desktop Gallery tray integration with a compact native menu.
  • AOT/trim analyzers enabled in the library and shared Gallery UI.

Requirements

  • .NET 8 or later
  • Avalonia 12.1.1 or later

Install

Install the preview package:

dotnet add package Material3.Avalonia --version 0.2.0-preview.1

Or add an explicit package reference:

<PackageReference Include="Material3.Avalonia" Version="0.2.0-preview.1" />

Keep the Avalonia platform package used by your application, such as Avalonia.Desktop, Avalonia.Browser, Avalonia.Android, or Avalonia.iOS. Then replace FluentTheme with MaterialTheme:

<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:m3="using:Material3.Avalonia"
             x:Class="MyApp.App">
  <Application.Styles>
    <m3:MaterialTheme SeedColor="#6750A4" />
  </Application.Styles>
</Application>

Material-specific controls use xmlns:m3c="using:Material3.Avalonia.Controls". See the controls overview for chips, FABs, navigation, sheets, settings rows, progress indicators, and other components.

RangeSlider

RangeSlider exposes independently bindable lower and upper values, optional indicators, snapping, direction reversal, keyboard input, and change events:

<m3c:RangeSlider Minimum="-100"
                 Maximum="100"
                 LowerValue="-25"
                 UpperValue="40"
                 TickFrequency="5"
                 IsSnapToTickEnabled="True"
                 ValueIndicatorMode="Always"
                 ValueFormat="0" />

See the slider documentation for the complete API.

Material Symbols

Use the strongly typed regular or filled icon catalogs directly with PathIcon.Data or Path.Data:

<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:icons="using:Material3.Avalonia.Icons">
  <StackPanel Orientation="Horizontal" Spacing="12">
    <PathIcon Data="{x:Static icons:MaterialSymbols.Home}" />
    <PathIcon Data="{x:Static icons:MaterialSymbolsFilled.Favorite}" />
    <Path Data="{x:Static icons:MaterialSymbols.Search}"
          Fill="Black"
          Stretch="Uniform" />
  </StackPanel>
</UserControl>

The properties return lazily parsed, cached Avalonia Geometry instances, so unused icons have no parsing cost. See the icon documentation for C# usage and naming rules.

Run

dotnet run --project samples/Material3.Gallery
dotnet run --project samples/Material3.Gallery.Browser
dotnet run --project tests/Material3.Screenshots

NativeAOT

Tagged releases publish native artifacts for Windows x64, Linux x64, and macOS arm64. To publish locally:

dotnet publish samples/Material3.Gallery -c Release -r osx-arm64 --self-contained

Use win-x64 or linux-x64 for the other platforms.

License

Apache-2.0. Components whose APIs were modeled after m3fx retain attribution in source comments.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-preview.1 140 8/30/2026

First NuGet preview: net8.0+ support, documented Material controls, improved keyboard access, safer bindings and validated public properties.