AvaloniaCommunity/Material.Avalonia
Material design in AvaloniaUI
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the month
Material.Avalonia
Customizable Material Design implementation for AvaloniaUI framework.

- More screenshots
- Live demo in your browser
Currently, in the alpha stage, many things can be broken.
Overview
This library is a collection of styles and controls to help you customize your Avalonia application with Material Design theme.
- Material Design styles for almost all Avalonia controls
- Additional controls to support the Snackbars, side sheets, floating buttons, cards, dialogs and more
- Easy configuration of palette (at design and runtime), according to Material Guidelines guidelines
- Full Material Design Icons icon pack support (must be installed separately, in favor of small library size)
- Demo applications included in the source project
Getting started
Check out the getting started wiki page. Or follow these instructions:
-
Add Material.Avalonia nuget package to your project:
dotnet add package Material.Avalonia -
Edit
App.xamlfile:<Application ... xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles" ...> <Application.Styles> <themes:MaterialTheme BaseTheme="Dark" PrimaryColor="Purple" SecondaryColor="Lime" /> </Application.Styles> </Application> -
Installing additional packages:
All styles will be included automatically if you using
MaterialTheme-
If you want to use
DataGridcontrol, add Material.Avalonia.DataGrid package:dotnet add package Material.Avalonia.DataGrid -
If you want to use
TreeDataGridcontrol, add Material.Avalonia.TreeDataGrid package:dotnet add package Material.Avalonia.TreeDataGrid -
If you want to use dialogs provided from Material.Avalonia, add Material.Avalonia.Dialogs package:
dotnet add package Material.Avalonia.Dialogs
-
-
Done! Now your app is styled! You can use the Demo app to view how different styles look.
Every control has the ShowMeTheXaml button in the right bottom corner which will show you a markup needed to recreate it.
Useful links
- Advanced theming wiki page
- Nightly packages wiki page
- Material Design Icons icon pack support
- DialogHost.Avalonia that provides a simple way to display a dialog
Similar Projects
Discover other similar projects and AI models.
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI
Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
Google's Material Design in XAML & WPF, for C# & VB.Net.
Control library focused on fluent design and bringing more WinUI controls into Avalonia
A recreation of the classic Visual Basic 6 IDE and language in C# with Avalonia
Ursa is an enterprise level UI library for building cross-platform applications with Avalonia UI.